Package fixes.
[shibboleth/xmltooling.git] / xmltooling.spec.in
index 4d17609..8cac0f4 100644 (file)
-Name:          xmltooling\r
-Summary:       Open source XMLTooling library\r
-Version:       @-VERSION-@\r
-Release:       1\r
-Group:         System Environment/Libraries\r
-Vendor:                Internet2\r
-License:       Apache 2.0\r
-URL:           http://www.opensaml.org/\r
-Source0:       http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz\r
-Source1:       http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz.asc\r
-BuildRoot:     %{_tmppath}/%{name}-%{version}-root\r
-\r
-BuildRequires: xerces-c-devel >= 2.6.1\r
-BuildRequires: xml-security-c-devel >= 1.3.0\r
-BuildRequires: log4cpp-devel >= 0.3.5, cxxtest \r
-\r
-%description\r
-The XMLTooling library contains generic XML parsing and processing\r
-classes based on the Xerces-C DOM. It adds more powerful facilities\r
-for declaring element- and type-specific API and implementation\r
-classes to add value around the DOM, as well as signing and encryption\r
-support.\r
-\r
-This package contains the xmltooling runtime library.\r
-\r
-%package devel\r
-Summary: XMLTooling development Headers\r
-Group: Development/Libraries\r
-Requires: %{name} = %{version}\r
-\r
-%description devel\r
-The XMLTooling library contains generic XML parsing and processing\r
-classes based on the Xerces-C DOM. It adds more powerful facilities\r
-for declaring element- and type-specific API and implementation\r
-classes to add value around the DOM, as well as signing and encryption\r
-support.\r
-\r
-This package contains the headers and other necessary files to build\r
-applications or libraries that use or extend the xmltooling library.\r
-\r
-%prep\r
-%setup -q\r
-\r
-%build\r
-%configure %{?xmltooling_options}\r
-make\r
-\r
-%install\r
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT\r
-rm -rf _docs\r
-\r
-make install DESTDIR=$RPM_BUILD_ROOT\r
-mv $RPM_BUILD_ROOT/usr/doc/xmltooling _docs\r
-\r
-%check || :\r
-make check\r
-\r
-%clean\r
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT\r
-\r
-%post\r
-/sbin/ldconfig\r
-\r
-%postun\r
-/sbin/ldconfig\r
-\r
-%files\r
-%defattr(-,root,root,-)\r
-#%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt\r
-%{_bindir}/xmltoolingtest\r
-%{_libdir}/libxmltooling.so.*\r
-%dir %{_datadir}/xml/xmltooling\r
-%{_datadir}/xml/xmltooling\r
-\r
-%files devel\r
-%defattr(-,root,root,-)\r
-%{_includedir}\r
-%{_libdir}/libxmltooling.so\r
-\r
-%changelog\r
-* Wed Apr 12 2006  Scott Cantor  <cantor.2@osu.edu>  - 1.0-1\r
-- First SPEC file based on various versions in existence.\r
+Name:          xmltooling
+Summary:       Open source XMLTooling library
+Version:       @-VERSION-@
+Release:       6
+Group:         System Environment/Libraries
+Vendor:                Internet2
+License:       Apache 2.0
+URL:           http://www.opensaml.org/
+Source0:       %{name}-%{version}.tar.gz
+BuildRoot:     %{_tmppath}/%{name}-%{version}-root
+BuildRequires:  xerces%{?xercesver}-c-devel >= 2.8.0
+BuildRequires: xml-security-c-devel >= 1.4.0
+BuildRequires: openssl-devel, curl-devel >= 7.10.6
+%{?_with_log4cpp:BuildRequires:        log4cpp-devel >= 1.0}
+%{!?_with_log4cpp:BuildRequires: log4shib-devel}
+
+%description
+The XMLTooling library contains generic XML parsing and processing
+classes based on the Xerces-C DOM. It adds more powerful facilities
+for declaring element- and type-specific API and implementation
+classes to add value around the DOM, as well as signing and encryption
+support.
+
+This package contains the xmltooling runtime library.
+
+%package devel
+Summary: XMLTooling development Headers
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+The XMLTooling library contains generic XML parsing and processing
+classes based on the Xerces-C DOM. It adds more powerful facilities
+for declaring element- and type-specific API and implementation
+classes to add value around the DOM, as well as signing and encryption
+support.
+
+This package contains the headers and other necessary files to build
+applications or libraries that use or extend the xmltooling library.
+
+%package docs
+Summary: XMLTooling API Documentation
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description docs
+XMLTooling Library API documentation generated by doxygen.
+
+%prep
+%setup -q
+
+%build
+%configure %{?xmltooling_options}
+%{__make}
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT/%{_bindir} -type f |
+  %{__sed} -e "s|$RPM_BUILD_ROOT||" | sort > rpm.binlist
+
+%check || :
+%{__make} check
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
+
+%ifnos solaris2.8 solaris2.9 solaris2.10 
+%post -p /sbin/ldconfig
+%endif
+
+%ifnos solaris2.8 solaris2.9 solaris2.10 
+%postun -p /sbin/ldconfig
+%endif
+
+%files -f rpm.binlist
+%defattr(-,root,root,-)
+%{_libdir}/libxmltooling.so.*
+%{_libdir}/libxmltooling-lite.so.*
+%dir %{_datadir}/xml/xmltooling
+%{_datadir}/xml/xmltooling
+%docdir %{_datadir}/doc/xmltooling
+%{_datadir}/doc/xmltooling/LICENSE.txt
+%{_datadir}/doc/xmltooling/NOTICE.txt
+%{_datadir}/doc/xmltooling/CURL.LICENSE
+%{_datadir}/doc/xmltooling/LOG4CPP.LICENSE
+%{_datadir}/doc/xmltooling/OPENSSL.LICENSE
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}
+%{_libdir}/libxmltooling.so
+%{_libdir}/libxmltooling-lite.so
+
+%files docs
+%defattr(644,root,root,755)
+%doc %{_datadir}/doc/xmltooling/api
+
+%changelog
+* Mon Mar 17 2008  Scott Cantor  <cantor.2@osu.edu>  - 1.0-6
+- Official release.
+
+* Fri Jan 18 2008  Scott Cantor  <cantor.2@osu.edu>  - 1.0-5
+- Release candidate 1.
+
+* Thu Nov 08 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-4
+- Second public beta.
+
+* Thu Aug 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-3
+- First public beta.
+
+* Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-2
+- Second alpha.
+
+* Wed Apr 12 2006  Scott Cantor  <cantor.2@osu.edu>  - 1.0-1
+- First SPEC file based on various versions in existence.