Roll back schema directory changes, didn't consider impact on upgrades.
[shibboleth/cpp-opensaml.git] / opensaml.spec.in
1 Name:           @PACKAGE_NAME@
2 Version:        @PACKAGE_VERSION@
3 Release:        1
4 Summary:    OpenSAML SAML library
5 Group:          System Environment/Libraries
6 Vendor:         Internet2
7 License:        Apache 2.0
8 URL:            http://www.opensaml.org/
9 Source0:        %{name}-%{version}.tar.gz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
11 %if 0%{?suse_version} > 1030
12 BuildRequires:  libXerces-c-devel >= 2.8.0
13 BuildRequires:  libxml-security-c-devel >= 1.4.0
14 BuildRequires:  libxmltooling-devel >= 1.3
15 %{?_with_log4cpp:BuildRequires: liblog4cpp-devel >= 1.0}
16 %{!?_with_log4cpp:BuildRequires: liblog4shib-devel}
17 %else
18 BuildRequires:  xerces%{?xercesver}-c-devel >= 2.8.0
19 BuildRequires:  xml-security-c-devel >= 1.4.0
20 BuildRequires:  xmltooling-devel >= 1.3
21 %{?_with_log4cpp:BuildRequires: log4cpp-devel >= 1.0}
22 %{!?_with_log4cpp:BuildRequires: log4shib-devel}
23 %endif
24 BuildRequires:  gcc-c++
25 %{!?_without_doxygen:BuildRequires: doxygen}
26 %if "%{_vendor}" == "redhat"
27 BuildRequires: redhat-rpm-config
28 %endif
29
30 %if "%{_vendor}" == "suse"
31 %define pkgdocdir %{_docdir}/%{name}
32 %else
33 %define pkgdocdir %{_docdir}/%{name}-%{version}
34 %endif
35
36 %description
37 OpenSAML is an open source implementation of the OASIS Security Assertion
38 Markup Language Specification. It contains a set of open source C++ classes
39 that support the SAML 1.0, 1.1, and 2.0 specifications.
40
41 %if 0%{?suse_version} > 1030
42 %package -n libsaml7
43 Summary:    OpenSAML SAML library
44 Group:      Development/Libraries
45 Provides:   @PACKAGE_NAME@ = %{version}
46
47 %description -n libsaml7
48 OpenSAML is an open source implementation of the OASIS Security Assertion
49 Markup Language Specification. It contains a set of open source C++ classes
50 that support the SAML 1.0, 1.1, and 2.0 specifications.
51
52 This package contains just the shared library.
53 %endif
54
55 %if 0%{?suse_version} > 1030
56 %package -n libsaml-devel
57 Requires: libsaml7 = %version
58 %else
59 %package devel
60 Requires: %name = %version
61 %endif
62 Summary: OpenSAML development Headers
63 Group: Development/Libraries
64 %if 0%{?suse_version} > 1030
65 Requires: libXerces-c-devel >= 2.8.0
66 Requires: libxml-security-c-devel >= 1.4.0
67 Requires: libxmltooling-devel >= 1.3
68 %{?_with_log4cpp:Requires: liblog4cpp-devel >= 1.0}
69 %{!?_with_log4cpp:Requires: liblog4shib-devel}
70 %else
71 Requires: xerces%{?xercesver}-c-devel >= 2.8.0
72 Requires: xml-security-c-devel >= 1.4.0
73 Requires: xmltooling-devel >= 1.3
74 %{?_with_log4cpp:Requires: log4cpp-devel >= 1.0}
75 %{!?_with_log4cpp:Requires: log4shib-devel}
76 %endif
77
78 %if 0%{?suse_version} > 1030
79 %description -n libsaml-devel
80 %else
81 %description devel
82 %endif
83 OpenSAML is an open source implementation of the OASIS Security Assertion
84 Markup Language Specification. It contains a set of open source C++ classes
85 that support the SAML 1.0, 1.1, and 2.0 specifications.
86
87 This package includes files needed for development with OpenSAML.
88
89
90 %prep
91 %setup -q
92
93 %build
94 %configure %{?saml_options}
95 %{__make}
96
97 %install
98 %{__make} install DESTDIR=$RPM_BUILD_ROOT pkgdocdir=%{pkgdocdir}
99 # Don't package unit tester if present.
100 %{__rm} -f $RPM_BUILD_ROOT/%{_bindir}/samltest
101
102 %check
103 %{__make} check
104
105 %clean
106 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
107
108 %ifnos solaris2.8 solaris2.9 solaris2.10
109 %if 0%{?suse_version} > 1030
110 %post -n libsaml7 -p /sbin/ldconfig
111 %else
112 %post -p /sbin/ldconfig
113 %endif
114 %endif
115
116 %ifnos solaris2.8 solaris2.9 solaris2.10
117 %if 0%{?suse_version} > 1030
118 %postun -n libsaml7 -p /sbin/ldconfig
119 %else
120 %postun -p /sbin/ldconfig
121 %endif
122 %endif
123
124 %files
125 %defattr(-,root,root,-)
126 %{_bindir}/samlsign
127 %if 0%{?suse_version} > 1030
128 %files -n libsaml7
129 %defattr(-,root,root,-)
130 %endif
131 %{_libdir}/libsaml.so.*
132 %dir %{_datadir}/xml/@PACKAGE_NAME@
133 %{_datadir}/xml/@PACKAGE_NAME@/*
134
135 %if 0%{?suse_version} > 1030
136 %files -n libsaml-devel
137 %else
138 %files devel
139 %endif
140 %defattr(-,root,root,-)
141 %{_includedir}/*
142 %{_libdir}/*.so
143 %{_libdir}/pkgconfig/@PACKAGE_NAME@.pc
144 %doc %{pkgdocdir}
145
146 %changelog
147 * Fri Dec 25 2009   Scott Cantor  <cantor.2@osu.edu>  - 2.4-1
148 - Add pkg-config support.
149
150 * Mon Aug 31 2009   Scott Cantor  <cantor.2@osu.edu>  - 2.3-1
151 - Bump soname for SUSE packaging.
152
153 * Sat Aug 8 2009  Scott Cantor  <cantor.2@osu.edu>  - 2.2.1-1
154 - SuSE conventions
155 - Stop packaging unit tester
156
157 * Wed Dec 3 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.2-1
158 - Bumping for minor update.
159 - Fixing SUSE Xerces dependency name.
160
161 * Tue Jul 1 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.1-1
162 - Bumping for minor update.
163
164 * Mon Mar 17 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.0-6
165 - Official release.
166
167 * Fri Jan 18 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.0-5
168 - Release candidate 1.
169
170 * Thu Nov 08 2007 Scott Cantor  <cantor.2@osu.edu>  - 2.0-4
171 - Second public beta.
172
173 * Thu Aug 16 2007 Scott Cantor  <cantor.2@osu.edu>  - 2.0-3
174 - First public beta.
175
176 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-2
177 - Second alpha.
178
179 * Sun Apr 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-1
180 - First SPEC file for 2.0.