xsd/xsd.spec

88 lines
2.7 KiB
RPMSpec

Name: xsd
Version: 4.1.0
Release: 2mamba
Summary: A W3C XML Schema to C++ translator
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.codesynthesis.com/products/xsd/
Source: https://codesynthesis.com/~boris/tmp/xsd/%{version}.a11/xsd-%{version}.a11+dep.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libxerces-c-devel
## AUTOBUILDREQ-END
BuildRequires: build
%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 < 4.1.0
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n xsd-%{version}.a11+dep
%build
# FIXME: make fixes building examples but we don't care at the time
%make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" 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
* Sat Apr 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.0-2mamba
- rebuilt with optflags
* Wed Mar 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.0-1mamba
- update to 4.1.0
* Thu Oct 09 2014 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba
- automatic version update by autodist
* Wed Mar 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.0.2-3mamba
- rebuilt using package with internal deps because external libcult can't be build
* Mon Dec 31 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.0.2-2mamba
- rebuilt with libboost 1.52
* Thu Aug 09 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.0.2-1mamba
- package created by autospec