From 5262f59d5b476683a193fb19fed29144e0fcddc1 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 12 Jun 2007 03:37:26 +0000 Subject: [PATCH] Exclude tests from package. --- Makefile.am | 10 +++++----- opensaml.spec.in | 18 ++++++++---------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/Makefile.am b/Makefile.am index 94f7c83..6a184b1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,16 +12,16 @@ dist-hook: SUBDIRS = doc schemas saml samltest -all-local: opensaml.spec pkginfo - if DX_COND_doc -all-local: doxygen-doc +all-local: opensaml.spec pkginfo doxygen-doc APIDOCS = doc/api +else +all-local: opensaml.spec pkginfo endif install-data-hook: - rm -rf $(prefix)/doc/@PACKAGE@/api - cp -r doc/api $(prefix)/doc/@PACKAGE@ + rm -rf $(DESTDIR)$(prefix)/doc/@PACKAGE@/api + cp -r doc/api $(DESTDIR)$(prefix)/doc/@PACKAGE@ opensaml.spec: opensaml.spec.in Makefile rm -f $@.tmp diff --git a/opensaml.spec.in b/opensaml.spec.in index 04d64e9..0adc3d0 100644 --- a/opensaml.spec.in +++ b/opensaml.spec.in @@ -6,14 +6,13 @@ 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: xerces%{?xercesver}-c-devel >= 2.6.1 +BuildRequires: xml-security-c-devel >= 1.3.1 BuildRequires: log4cpp-devel >= 0.3.5 -BuildRequires: xmltooling-devel, cxxtest, doxygen +BuildRequires: xmltooling-devel, cxxtest %description OpenSAML is an open source implementation of the OASIS Security Assertion @@ -53,9 +52,8 @@ 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 +mv $RPM_BUILD_ROOT/usr/doc/%{name} _docs %check || : make check @@ -71,11 +69,11 @@ make check %files %defattr(-,root,root,-) -#%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt -%{_bindir}/samltest +%doc _docs/LICENSE.txt _docs/NOTICE.txt %{_libdir}/libsaml.so.* %dir %{_datadir}/xml/%{name} %{_datadir}/xml/%{name} +%exclude %{_bindir}/samltest %files devel %defattr(-,root,root,-) @@ -84,7 +82,7 @@ make check %files docs %defattr(644,root,root,755) -%doc doc/api/* +%doc _docs/api %changelog * Sun Apr 16 2006 Scott Cantor - 2.0-1 -- 2.1.4