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