Author: glen Date: Mon Jan 3 20:12:06 2011 GMT Module: packages Tag: HEAD ---- Log message: - new, created from fc spec
---- Files affected: packages/xsd: xsd.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/xsd/xsd.spec diff -u /dev/null packages/xsd/xsd.spec:1.1 --- /dev/null Mon Jan 3 21:12:06 2011 +++ packages/xsd/xsd.spec Mon Jan 3 21:12:00 2011 @@ -0,0 +1,109 @@ +# $Revision$, $Date$ +Summary: W3C XML schema to C++ data binding compiler +Name: xsd +Version: 3.3.0 +Release: 1 +Group: Development/Tools +# Exceptions permit otherwise GPLv2 incompatible combination with ASL 2.0 +License: GPL v2 with exceptions and ASL 2.0 +URL: http://www.codesynthesis.com/products/xsd/ +Source0: http://www.codesynthesis.com/download/xsd/3.3/%{name}-%{version}+dep.tar.bz2 +# Source0-md5: 1bad45103f9111964b78d6f2327fbb15 +# Sent suggestion to upstream via e-mail 20090707 +Patch0: %{name}-3.3.0-xsdcxx-rename.patch +BuildRequires: boost-devel +BuildRequires: m4 +BuildRequires: xerces-c-devel +Requires: xerces-c-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to +C++ data binding compiler. Provided with an XML instance specification +(XML Schema), it generates C++ classes that represent the given +vocabulary as well as parsing and serialization code. You can then +access the data stored in XML using types and functions that +semantically correspond to your application domain rather than dealing +with intricacies of reading and writing XML. + +%package apidocs +Summary: API documentation files for %{name} +Group: Documentation + +%description apidocs +This package contains API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{version}+dep +cd xsd +%patch0 -p1 +cd .. + +%build +%{__make} \ + verbose=1 \ + CXXFLAGS="%{rpmcxxflags}" + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + install_prefix="$RPM_BUILD_ROOT%{_prefix}" + +# Split API documentation to -doc subpackage. +rm -rf apidocdir +install -d apidocdir +mv $RPM_BUILD_ROOT%{_datadir}/doc/xsd/*.{xhtml,css} apidocdir/ +mv $RPM_BUILD_ROOT%{_datadir}/doc/xsd/cxx/ apidocdir/ +mv $RPM_BUILD_ROOT%{_datadir}/doc/xsd/ docdir/ + +# Convert to utf-8. +for file in docdir/NEWS; do + mv $file timestamp + iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp + touch -r timestamp $file +done + +# Rename binary to xsdcxx to avoid conflicting with mono-web package. +# Sent suggestion to upstream via e-mail 20090707 +# they will consider renaming in 4.0.0 +mv $RPM_BUILD_ROOT%{_bindir}/xsd $RPM_BUILD_ROOT%{_bindir}/xsdcxx +mv $RPM_BUILD_ROOT%{_mandir}/man1/xsd.1 $RPM_BUILD_ROOT%{_mandir}/man1/xsdcxx.1 + +# Remove duplicate docs. +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxsd + +# Remove Microsoft Visual C++ compiler helper files. +rm -rf $RPM_BUILD_ROOT%{_includedir}/xsd/cxx/compilers + +# Remove redundant PostScript files that rpmlint grunts about not being UTF8 +# See: https://bugzilla.redhat.com/show_bug.cgi?id=502024#c27 +# for Boris Kolpackov's explanation about those +find apidocdir -name "*.ps" | xargs rm -f +# Remove other unwanted crap +find apidocdir -name "*.doxygen" \ + -o -name "makefile" \ + -o -name "*.html2ps" | xargs rm -f + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc docdir/* +%attr(755,root,root) %{_bindir}/xsdcxx +%{_includedir}/xsd +%{_mandir}/man1/xsdcxx.1* + +%files apidocs +%defattr(644,root,root,755) +%doc apidocdir/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/01/03 20:12:00 glen +- new, created from fc spec + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
