Don't overwrite config-files on install.
[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
17 %description
18 Shibboleth, a project of Internet2/MACE, is developing architectures,
19 policy structures, practical technologies, and an open source
20 implementation to support inter-institutional sharing of web resources
21 subject to access controls. In addition, Shibboleth will develop a
22 policy framework that will allow inter-operation within the higher
23 education community.
24
25 This package contains the shibboleth runtime library and apache module.
26
27 %package devel
28 Summary: Shibboleth development Headers
29 Group: Development/Libraries
30 Requires: %{name} = %{version}
31
32 %description devel
33 Shibboleth, a project of Internet2/MACE, is developing architectures,
34 policy structures, practical technologies, and an open source
35 implementation to support inter-institutional sharing of web resources
36 subject to access controls. In addition, Shibboleth will develop a
37 policy framework that will allow inter-operation within the higher
38 education community.
39
40 This package contains the headers and other necessary files to build
41 applications that use the shibboleth library.
42
43 %prep
44 %setup -q
45
46 %build
47 %configure --enable-apache-20
48 make
49
50 %install
51 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
52 rm -rf _docs
53
54 make install DESTDIR=$RPM_BUILD_ROOT
55 mv $RPM_BUILD_ROOT/usr/doc/shibboleth _docs
56
57 find $RPM_BUILD_ROOT/%{_libexecdir} -type f -or -type l | grep \.so |
58   sed -e "s|$RPM_BUILD_ROOT||" | sort > rpm.filelist
59
60 %check || :
61 make check
62
63 %clean
64 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
65
66 %post
67 /sbin/ldconfig
68
69 %postun
70 /sbin/ldconfig
71
72 %files -f rpm.filelist
73 %defattr(-,root,root,-)
74 %doc _docs/CREDITS.txt _docs/InQueue.html _docs/NEWS.txt _docs/logo.jpg
75 %doc _docs/DEPLOY-GUIDE-ORIGIN.html _docs/main.css _docs/README.txt
76 %doc _docs/DEPLOY-GUIDE-TARGET.html _docs/LICENSE.txt _docs/mysql-4.0.12.diff
77 %{_bindir}/shar
78 %{_bindir}/siterefresh
79 %{_libdir}/libshib.so.*
80 %{_libdir}/libshib-target.so.*
81 %dir %{_sysconfdir}/shibboleth
82 %{_sysconfdir}/shibboleth/*.xsd
83 %config %{_sysconfdir}/shibboleth/*.xml
84 %config %{_sysconfdir}/shibboleth/*.html
85 %config %{_sysconfdir}/shibboleth/*.logger
86 %config %{_sysconfdir}/shibboleth/inqueue.pem
87 %config %{_sysconfdir}/shibboleth/shar.crt
88 %config %{_sysconfdir}/shibboleth/shar.key
89 %{_sysconfdir}/shibboleth/*.dist
90 %{_sysconfdir}/shibboleth/apache*.config
91
92 %exclude %{_bindir}/shibtest
93 %exclude %{_bindir}/posttest
94 %exclude %{_bindir}/test-client
95 %exclude %{_libexecdir}/*.la
96
97 %files devel
98 %defattr(-,root,root,-)
99 %{_includedir}
100 %{_libdir}/libshib.so
101 %{_libdir}/libshib-target.so
102
103 %changelog
104 * Tue Oct 19 2004  Derek Atkins  <derek@ihtfp.com>  - 1.2-1
105 - Create SPEC file based on various versions in existence.