doxygen autotools integration
[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:        http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz
10 Source1:        http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz.asc
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12
13 BuildRequires:  xerces-c-devel >= 2.6.1
14 BuildRequires:  xml-security-c-devel >= 1.3.0
15 BuildRequires:  log4cpp-devel >= 0.3.5, cxxtest, doxygen
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 rm -rf _docs
59
60 make install DESTDIR=$RPM_BUILD_ROOT
61 #mv $RPM_BUILD_ROOT/usr/doc/xmltooling _docs
62
63 %check || :
64 make check
65
66 %clean
67 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
68
69 %post
70 /sbin/ldconfig
71
72 %postun
73 /sbin/ldconfig
74
75 %files
76 %defattr(-,root,root,-)
77 #%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt
78 %{_bindir}/xmltoolingtest
79 %{_libdir}/libxmltooling.so.*
80 %dir %{_datadir}/xml/xmltooling
81 %{_datadir}/xml/xmltooling
82
83 %files devel
84 %defattr(-,root,root,-)
85 %{_includedir}
86 %{_libdir}/libxmltooling.so
87
88 %files docs
89 %defattr(644,root,root,755)
90 %doc doc/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.