X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=opensaml.spec.in;h=9d0df516fe7f110f4eb69dc8ce7436a79f8b01d5;hp=04d64e9eebf28d4428e7340e41270b5cde82f544;hb=07dbbcf3a8fc0aba6fefe741f1760442a0a6ea65;hpb=a01e3f87ebd87f3f3df92f17d8d0cda5825d5275 diff --git a/opensaml.spec.in b/opensaml.spec.in index 04d64e9..9d0df51 100644 --- a/opensaml.spec.in +++ b/opensaml.spec.in @@ -6,14 +6,17 @@ Group: System Environment/Libraries Vendor: Internet2 License: Apache 2.0 URL: http://www.opensaml.org/ -Source0: http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz -Source1: http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz.asc +Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root - -BuildRequires: xerces-c-devel >= 2.6.1 -BuildRequires: xml-security-c-devel >= 1.3.0 -BuildRequires: log4cpp-devel >= 0.3.5 -BuildRequires: xmltooling-devel, cxxtest, doxygen +%if 0%{?suse_version} > 1030 +BuildRequires: libXerces-c-devel >= 2.8.0 +%else +BuildRequires: xerces%{?xercesver}-c-devel >= 2.8.0 +%endif +BuildRequires: xml-security-c-devel >= 1.4.0 +BuildRequires: xmltooling-devel >= 1.2 +%{?_with_log4cpp:BuildRequires: log4cpp-devel >= 1.0} +%{!?_with_log4cpp:BuildRequires: log4shib-devel} %description OpenSAML is an open source implementation of the OASIS Security Assertion @@ -48,34 +51,38 @@ OpenSAML Library API documentation generated by doxygen. %build %configure %{?saml_options} -make +%{__make} %install -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT -rm -rf _docs - -make install DESTDIR=$RPM_BUILD_ROOT -#mv $RPM_BUILD_ROOT/usr/doc/%{name} _docs +[ "$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 +%check +%{__make} check %clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT -%post -/sbin/ldconfig +%ifnos solaris2.8 solaris2.9 solaris2.10 +%post -p /sbin/ldconfig +%endif -%postun -/sbin/ldconfig +%ifnos solaris2.8 solaris2.9 solaris2.10 +%postun -p /sbin/ldconfig +%endif -%files +%files -f rpm.binlist %defattr(-,root,root,-) -#%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt -%{_bindir}/samltest %{_libdir}/libsaml.so.* %dir %{_datadir}/xml/%{name} %{_datadir}/xml/%{name} +%docdir %{_datadir}/doc/%{name} +%{_datadir}/doc/%{name}/README.txt +%{_datadir}/doc/%{name}/LICENSE.txt +%{_datadir}/doc/%{name}/NOTICE.txt +%{_datadir}/doc/%{name}/LOG4CPP.LICENSE %files devel %defattr(-,root,root,-) @@ -84,8 +91,30 @@ make check %files docs %defattr(644,root,root,755) -%doc doc/api/* +%doc %{_datadir}/doc/%{name}/api %changelog -* Sun Apr 16 2006 Scott Cantor - 2.0-1 -- First SPEC file for 2.0 +* Wed Dec 3 2008 Scott Cantor - 2.2-1 +- Bumping for minor update. +- Fixing SUSE Xerces dependency name. + +* Tue Jul 1 2008 Scott Cantor - 2.1-1 +- Bumping for minor update. + +* Mon Mar 17 2008 Scott Cantor - 2.0-6 +- Official release. + +* Fri Jan 18 2008 Scott Cantor - 2.0-5 +- Release candidate 1. + +* Thu Nov 08 2007 Scott Cantor - 2.0-4 +- Second public beta. + +* Thu Aug 16 2007 Scott Cantor - 2.0-3 +- First public beta. + +* Fri Jul 13 2007 Scott Cantor - 2.0-2 +- Second alpha. + +* Sun Apr 16 2007 Scott Cantor - 2.0-1 +- First SPEC file for 2.0.