From 398c53791b59bdb248248b637c336df54fcd7f6c Mon Sep 17 00:00:00 2001 From: warlord Date: Thu, 21 Oct 2004 18:03:00 +0000 Subject: [PATCH] Initial revision of Shib RPM Spec File. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1202 cb58f699-b61c-0410-a6fe-9272a202ed29 --- Makefile.am | 16 ++++++++-- shibboleth.spec.in | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 3 deletions(-) create mode 100644 shibboleth.spec.in diff --git a/Makefile.am b/Makefile.am index d3d4398..c5983f1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,9 +4,9 @@ ACLOCAL_AMFLAGS = -I . EXTRA_DIST = \ schemas doc isapi_shib isapi_shib_gui \ - Shibboleth.dsw libtool.m4 acx_pthread.m4 acx_rpctest.m4 depcomp config_win32.h \ - posttest/posttest.dsp \ - shibtest/shibtest.dsp + Shibboleth.dsw libtool.m4 acx_pthread.m4 acx_rpctest.m4 depcomp \ + config_win32.h posttest/posttest.dsp shibtest/shibtest.dsp \ + shibboleth.spec.in dist-hook: rm -rf `find $(distdir)/schemas -name CVS` @@ -23,3 +23,13 @@ SUBDIRS = $(WANT_SUBDIRS) DIST_SUBDIRS = doc oncrpc shib schemas configs shib-target shar test \ apache siterefresh shib-mysql-ccache xmlproviders + +all-local: shibboleth.spec + +shibboleth.spec: shibboleth.spec.in Makefile + rm -f $@.tmp + sed < $< > $@.tmp \ + -e 's:@-VERSION-@:${VERSION}:' + mv $@.tmp $@ + +DISTCLEANFILES = shibboleth.spec diff --git a/shibboleth.spec.in b/shibboleth.spec.in new file mode 100644 index 0000000..c3210ab --- /dev/null +++ b/shibboleth.spec.in @@ -0,0 +1,93 @@ +Name: shibboleth +Summary: Open source system to enable inter-institutional resource sharing +Version: @-VERSION-@ +Release: 1 +Copyright: University Corporation for Advanced Internet Development, Inc. +Group: System Environment/Libraries +License: Apache style +URL: http://shibboleth.internet2.edu/ +Source0: http://wayf.internet2.edu/shibboleth/%{name}-%{version}.tar.gz +Source1: http://wayf.internet2.edu/shibboleth/%{name}-%{version}.tar.gz.asc +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +BuildRequires: openssl-devel, curl-devel >= 7.10.6, xerces-c-devel >= 2.6.1 +BuildRequires: xml-security-c-devel >= 1.1.0, log4cpp-devel >= 0.3.5 +BuildRequires: zlib-devel, opensaml-devel, httpd-devel +%{?_with_mysql:BuildRequires: mysql-devel >= 4} + +%description +Shibboleth, a project of Internet2/MACE, is developing architectures, +policy structures, practical technologies, and an open source +implementation to support inter-institutional sharing of web resources +subject to access controls. In addition, Shibboleth will develop a +policy framework that will allow inter-operation within the higher +education community. + +This package contains the shibboleth runtime library and apache module. + +%package devel +Summary: Shibboleth development Headers +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +Shibboleth, a project of Internet2/MACE, is developing architectures, +policy structures, practical technologies, and an open source +implementation to support inter-institutional sharing of web resources +subject to access controls. In addition, Shibboleth will develop a +policy framework that will allow inter-operation within the higher +education community. + +This package contains the headers and other necessary files to build +applications that use the shibboleth library. + +%prep +%setup -q + +%build +%configure --enable-apache20 %{?_with_mysql:--enable-mysql} \ + %{!?_with_mysql:--disable-mysql} +make + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +rm -rf _docs + +make install DESTDIR=$RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT/doc/shibboleth _docs + +%check || : +make check + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt +%{_bindir}/shar +%{_bindir}/site-refresh +%exclude %{_bindir}/shibtest +%exclude %{_bindir}/signtest +%exclude %{_bindir}/test-client +%{_libdir}/libshib.so.* +%{_libexecdir}/mod_shib_20.so +%{_libexecdir}/xmlproviders.so +%{_datadir}/shibboleth/*.xsd +%config %{_datadir}/shibboleth/*.xml +%{?_with_mysql:%{_libexecdir}/shib-mysql-ccache.so} + +%files devel +%defattr(-,root,root,-) +%{_includedir} +%{_libdir}/libshib.so + +%changelog +* Tue Oct 19 2004 Derek Atkins - 1.2-1 +- Create SPEC file based on various versions in existence. -- 2.1.4