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