Initial revision of Shib RPM Spec File.
[shibboleth/sp.git] / shibboleth.spec.in
1 Name:           shibboleth
2 Summary:        Open source system to enable inter-institutional resource sharing
3 Version:        @-VERSION-@
4 Release:        1
5 Copyright:      University Corporation for Advanced Internet Development, Inc.
6 Group:          System Environment/Libraries
7 License:        Apache style
8 URL:            http://shibboleth.internet2.edu/
9 Source0:        http://wayf.internet2.edu/shibboleth/%{name}-%{version}.tar.gz
10 Source1:        http://wayf.internet2.edu/shibboleth/%{name}-%{version}.tar.gz.asc
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12
13 BuildRequires:  openssl-devel, curl-devel >= 7.10.6, xerces-c-devel >= 2.6.1
14 BuildRequires:  xml-security-c-devel >= 1.1.0, log4cpp-devel >= 0.3.5
15 BuildRequires:  zlib-devel, opensaml-devel, httpd-devel
16 %{?_with_mysql:BuildRequires: mysql-devel >= 4}
17
18 %description
19 Shibboleth, a project of Internet2/MACE, is developing architectures,
20 policy structures, practical technologies, and an open source
21 implementation to support inter-institutional sharing of web resources
22 subject to access controls. In addition, Shibboleth will develop a
23 policy framework that will allow inter-operation within the higher
24 education community.
25
26 This package contains the shibboleth runtime library and apache module.
27
28 %package devel
29 Summary: Shibboleth development Headers
30 Group: Development/Libraries
31 Requires: %{name} = %{version}
32
33 %description devel
34 Shibboleth, a project of Internet2/MACE, is developing architectures,
35 policy structures, practical technologies, and an open source
36 implementation to support inter-institutional sharing of web resources
37 subject to access controls. In addition, Shibboleth will develop a
38 policy framework that will allow inter-operation within the higher
39 education community.
40
41 This package contains the headers and other necessary files to build
42 applications that use the shibboleth library.
43
44 %prep
45 %setup -q
46
47 %build
48 %configure --enable-apache20 %{?_with_mysql:--enable-mysql} \
49         %{!?_with_mysql:--disable-mysql}
50 make
51
52 %install
53 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
54 rm -rf _docs
55
56 make install DESTDIR=$RPM_BUILD_ROOT
57 mv $RPM_BUILD_ROOT/doc/shibboleth _docs
58
59 %check || :
60 make check
61
62 %clean
63 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
64
65 %post
66 /sbin/ldconfig
67
68 %postun
69 /sbin/ldconfig
70
71 %files
72 %defattr(-,root,root,-)
73 %doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt
74 %{_bindir}/shar
75 %{_bindir}/site-refresh
76 %exclude %{_bindir}/shibtest
77 %exclude %{_bindir}/signtest
78 %exclude %{_bindir}/test-client
79 %{_libdir}/libshib.so.*
80 %{_libexecdir}/mod_shib_20.so
81 %{_libexecdir}/xmlproviders.so
82 %{_datadir}/shibboleth/*.xsd
83 %config %{_datadir}/shibboleth/*.xml
84 %{?_with_mysql:%{_libexecdir}/shib-mysql-ccache.so}
85
86 %files devel
87 %defattr(-,root,root,-)
88 %{_includedir}
89 %{_libdir}/libshib.so
90
91 %changelog
92 * Tue Oct 19 2004  Derek Atkins  <derek@ihtfp.com>  - 1.2-1
93 - Create SPEC file based on various versions in existence.