https://issues.shibboleth.net/jira/browse/SSPCPP-152
[shibboleth/cpp-xmltooling.git] / xmltooling.spec.in
1 Name:           xmltooling
2 Summary:        Open source XMLTooling library
3 Version:        @-VERSION-@
4 Release:        1
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 %else
14 BuildRequires:  xerces%{?xercesver}-c-devel >= 2.8.0
15 %endif
16 BuildRequires:  xml-security-c-devel >= 1.4.0
17 BuildRequires:  openssl-devel, curl-devel >= 7.10.6
18 %{?_with_log4cpp:BuildRequires: log4cpp-devel >= 1.0}
19 %{!?_with_log4cpp:BuildRequires: log4shib-devel}
20
21 %description
22 The XMLTooling library contains generic XML parsing and processing
23 classes based on the Xerces-C DOM. It adds more powerful facilities
24 for declaring element- and type-specific API and implementation
25 classes to add value around the DOM, as well as signing and encryption
26 support.
27
28 This package contains the xmltooling runtime library.
29
30 %package devel
31 Summary: XMLTooling development Headers
32 Group: Development/Libraries
33 Requires: %{name} = %{version}
34
35 %description devel
36 The XMLTooling library contains generic XML parsing and processing
37 classes based on the Xerces-C DOM. It adds more powerful facilities
38 for declaring element- and type-specific API and implementation
39 classes to add value around the DOM, as well as signing and encryption
40 support.
41
42 This package contains the headers and other necessary files to build
43 applications or libraries that use or extend the xmltooling library.
44
45 %package docs
46 Summary: XMLTooling API Documentation
47 Group: Development/Libraries
48 Requires: %{name} = %{version}
49
50 %description docs
51 XMLTooling Library API documentation generated by doxygen.
52
53 %prep
54 %setup -q
55
56 %build
57 %configure %{?xmltooling_options}
58 %{__make}
59
60 %install
61 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
62 %{__make} install DESTDIR=$RPM_BUILD_ROOT
63 find $RPM_BUILD_ROOT/%{_bindir} -type f |
64   %{__sed} -e "s|$RPM_BUILD_ROOT||" | sort > rpm.binlist
65
66 %check
67 %{__make} check
68
69 %clean
70 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
71
72 %ifnos solaris2.8 solaris2.9 solaris2.10 
73 %post -p /sbin/ldconfig
74 %endif
75
76 %ifnos solaris2.8 solaris2.9 solaris2.10 
77 %postun -p /sbin/ldconfig
78 %endif
79
80 %files -f rpm.binlist
81 %defattr(-,root,root,-)
82 %{_libdir}/libxmltooling.so.*
83 %{_libdir}/libxmltooling-lite.so.*
84 %dir %{_datadir}/xml/xmltooling
85 %{_datadir}/xml/xmltooling
86 %docdir %{_datadir}/doc/xmltooling
87 %{_datadir}/doc/xmltooling/README.txt
88 %{_datadir}/doc/xmltooling/LICENSE.txt
89 %{_datadir}/doc/xmltooling/NOTICE.txt
90 %{_datadir}/doc/xmltooling/CURL.LICENSE
91 %{_datadir}/doc/xmltooling/LOG4CPP.LICENSE
92 %{_datadir}/doc/xmltooling/OPENSSL.LICENSE
93
94 %files devel
95 %defattr(-,root,root,-)
96 %{_includedir}
97 %{_libdir}/libxmltooling.so
98 %{_libdir}/libxmltooling-lite.so
99
100 %files docs
101 %defattr(644,root,root,755)
102 %doc %{_datadir}/doc/xmltooling/api
103
104 %changelog
105 * Wed Dec 3 2008  Scott Cantor  <cantor.2@osu.edu>  - 1.2-1
106 - Bumping for minor update.
107 - Fixing SUSE Xerces dependency name.
108
109 * Tue Jul 1 2008  Scott Cantor  <cantor.2@osu.edu>  - 1.1-1
110 - Bumping for minor update.
111
112 * Mon Mar 17 2008  Scott Cantor  <cantor.2@osu.edu>  - 1.0-6
113 - Official release.
114
115 * Fri Jan 18 2008  Scott Cantor  <cantor.2@osu.edu>  - 1.0-5
116 - Release candidate 1.
117
118 * Thu Nov 08 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-4
119 - Second public beta.
120
121 * Thu Aug 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-3
122 - First public beta.
123
124 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-2
125 - Second alpha.
126
127 * Wed Apr 12 2006  Scott Cantor  <cantor.2@osu.edu>  - 1.0-1
128 - First SPEC file based on various versions in existence.