diff --git a/README.md b/README.md index 1a8eafc..6a04cac 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # xsd +CodeSynthesis XSD is a W3C XML Schema to C++ translator. It generates vocabulary-specific, statically-typed C++ mappings (also called bindings) from XML Schema definitions. XSD supports two C++ mappings: in-memory C++/Tree and event-driven C++/Parser. + diff --git a/xsd.spec b/xsd.spec new file mode 100644 index 0000000..550227f --- /dev/null +++ b/xsd.spec @@ -0,0 +1,82 @@ +%define minver %(echo %version | cut -d. -f4) +%define majver %(echo %version | cut -d. -f1-3) +%define majver2 %(echo %version | cut -d. -f1-2) +Name: xsd +Version: 3.3.0.2 +Release: 3mamba +Summary: A W3C XML Schema to C++ translator +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://codesynthesis.com/projects/xsd/ +Source: http://codesynthesis.com/download/xsd/%{majver2}/xsd-%{majver}%{?minver:-%minver}+dep.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libboost-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +BuildRequires: libxerces-c-devel +## AUTOBUILDREQ-END +BuildRequires: build +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +CodeSynthesis XSD is a W3C XML Schema to C++ translator. It generates vocabulary-specific, statically-typed C++ mappings (also called bindings) from XML Schema definitions. XSD supports two C++ mappings: in-memory C++/Tree and event-driven C++/Parser. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: libxsd-devel +Obsoletes: libxsd-devel + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n %{name}-%{majver}%{?minver:-%minver}+dep + +%build +# FIXME: make files building examples but we don't care at the time +make verbose=1 || true<< _EOF +_EOF + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall install_prefix=%{buildroot}%{_prefix} +# %{_bindir}/xsd is already provided by mono-web +mv %{buildroot}%{_bindir}/xsd %{buildroot}%{_bindir}/xsdcxx +mv %{buildroot}%{_mandir}/man1/xsd.1 %{buildroot}%{_mandir}/man1/xsdcxx.1 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/xsdcxx +%{_mandir}/man1/xsdcxx.1* +%doc xsd/LICENSE + +%files devel +%dir %{_includedir}/xsd +%{_includedir}/xsd/* +%defattr(-,root,root) +%dir %{_docdir}/xsd +%{_docdir}/xsd/* +%dir %{_docdir}/libxsd +%{_docdir}/libxsd/* +%doc xsd/NEWS xsd/README + +%changelog +* Wed Mar 06 2013 Silvan Calarco 3.3.0.2-3mamba +- rebuilt using package with internal deps because external libcult can't be build + +* Mon Dec 31 2012 Silvan Calarco 3.3.0.2-2mamba +- rebuilt with libboost 1.52 + +* Thu Aug 09 2012 Silvan Calarco 3.3.0.2-1mamba +- package created by autospec