Add some missing files, try to make docs work.
[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
12 BuildRequires:  xerces%{?xercesver}-c-devel >= 2.6.1
13 BuildRequires:  xml-security-c-devel >= 1.3.1
14 BuildRequires:  log4cpp-devel >= 0.3.5, cxxtest, doxygen
15
16 %description
17 The XMLTooling library contains generic XML parsing and processing
18 classes based on the Xerces-C DOM. It adds more powerful facilities
19 for declaring element- and type-specific API and implementation
20 classes to add value around the DOM, as well as signing and encryption
21 support.
22
23 This package contains the xmltooling runtime library.
24
25 %package devel
26 Summary: XMLTooling development Headers
27 Group: Development/Libraries
28 Requires: %{name} = %{version}
29
30 %description devel
31 The XMLTooling library contains generic XML parsing and processing
32 classes based on the Xerces-C DOM. It adds more powerful facilities
33 for declaring element- and type-specific API and implementation
34 classes to add value around the DOM, as well as signing and encryption
35 support.
36
37 This package contains the headers and other necessary files to build
38 applications or libraries that use or extend the xmltooling library.
39
40 %package docs
41 Summary: XMLTooling API Documentation
42 Group: Development/Libraries
43 Requires: %{name} = %{version}
44
45 %description docs
46 XMLTooling Library API documentation generated by doxygen.
47
48 %prep
49 %setup -q
50
51 %build
52 %configure %{?xmltooling_options}
53 make
54
55 %install
56 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
57 rm -rf _docs
58 make install DESTDIR=$RPM_BUILD_ROOT
59 mv $RPM_BUILD_ROOT/usr/doc/xmltooling _docs
60
61 %check || :
62 make check
63
64 %clean
65 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
66
67 %post
68 /sbin/ldconfig
69
70 %postun
71 /sbin/ldconfig
72
73 %files
74 %defattr(-,root,root,-)
75 %doc _docs/LICENSE.txt _docs/NOTICE.txt
76 %{_bindir}/xmltoolingtest
77 %{_libdir}/libxmltooling.so.*
78 %{_libdir}/libxmltooling-lite.so.*
79 %dir %{_datadir}/xml/xmltooling
80 %{_datadir}/xml/xmltooling
81
82 %files devel
83 %defattr(-,root,root,-)
84 %{_includedir}
85 %{_libdir}/libxmltooling.so
86 %{_libdir}/libxmltooling-lite.so
87
88 %files docs
89 %defattr(644,root,root,755)
90 %doc _docs/api/*
91
92 %changelog
93 * Wed Apr 12 2006  Scott Cantor  <cantor.2@osu.edu>  - 1.0-1
94 - First SPEC file based on various versions in existence.