Multi-line svn commit, see body.
[shibboleth/cpp-xmltooling.git] / xmltooling.spec.in
1 Name:           xmltooling
2 Summary:        Open source XMLTooling library
3 Version:        @-VERSION-@
4 Release:        2
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
12 BuildRequires:  xerces%{?xercesver}-c-devel >= 2.6.1
13 BuildRequires:  xml-security-c-devel >= 1.3.1
14 BuildRequires:  openssl-devel log4cpp-devel >= 0.3.5, cxxtest
15 %if %{?_with_log4cpp:1}
16 BuildRequires:  log4cpp-devel >= 0.3.5
17 %else
18 BuildRequires:  log4shib-devel
19 %endif
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 rm -rf _docs
63 make install DESTDIR=$RPM_BUILD_ROOT
64 mv $RPM_BUILD_ROOT/usr/doc/xmltooling _docs
65
66 %check || :
67 make check
68
69 %clean
70 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
71
72 %post
73 /sbin/ldconfig
74
75 %postun
76 /sbin/ldconfig
77
78 %files
79 %defattr(-,root,root,-)
80 %doc _docs/LICENSE.txt _docs/NOTICE.txt
81 %{_libdir}/libxmltooling.so.*
82 %{_libdir}/libxmltooling-lite.so.*
83 %dir %{_datadir}/xml/xmltooling
84 %{_datadir}/xml/xmltooling
85 %exclude %{_bindir}/xmltoolingtest
86
87 %files devel
88 %defattr(-,root,root,-)
89 %{_includedir}
90 %{_libdir}/libxmltooling.so
91 %{_libdir}/libxmltooling-lite.so
92
93 %files docs
94 %defattr(644,root,root,755)
95 %doc _docs/api
96
97 %changelog
98 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-2
99 - Second alpha.
100
101 * Wed Apr 12 2006  Scott Cantor  <cantor.2@osu.edu>  - 1.0-1
102 - First SPEC file based on various versions in existence.