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