Adding some machinery.
[shibboleth/cpp-xmltooling.git] / xmltooling.spec.in
1 Name:           xmltooling\r
2 Summary:        Open source XMLTooling library\r
3 Version:        @-VERSION-@\r
4 Release:        1\r
5 Group:          System Environment/Libraries\r
6 Vendor:         Internet2\r
7 License:        Apache 2.0\r
8 URL:            http://www.opensaml.org/\r
9 Source0:        http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz\r
10 Source1:        http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz.asc\r
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-root\r
12 \r
13 BuildRequires:  xerces-c-devel >= 2.6.1\r
14 BuildRequires:  xml-security-c-devel >= 1.3.0\r
15 BuildRequires:  log4cpp-devel >= 0.3.5, cxxtest \r
16 \r
17 %description\r
18 The XMLTooling library contains generic XML parsing and processing\r
19 classes based on the Xerces-C DOM. It adds more powerful facilities\r
20 for declaring element- and type-specific API and implementation\r
21 classes to add value around the DOM, as well as signing and encryption\r
22 support.\r
23 \r
24 This package contains the xmltooling runtime library.\r
25 \r
26 %package devel\r
27 Summary: XMLTooling development Headers\r
28 Group: Development/Libraries\r
29 Requires: %{name} = %{version}\r
30 \r
31 %description devel\r
32 The XMLTooling library contains generic XML parsing and processing\r
33 classes based on the Xerces-C DOM. It adds more powerful facilities\r
34 for declaring element- and type-specific API and implementation\r
35 classes to add value around the DOM, as well as signing and encryption\r
36 support.\r
37 \r
38 This package contains the headers and other necessary files to build\r
39 applications or libraries that use or extend the xmltooling library.\r
40 \r
41 %prep\r
42 %setup -q\r
43 \r
44 %build\r
45 %configure %{?xmltooling_options}\r
46 make\r
47 \r
48 %install\r
49 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT\r
50 rm -rf _docs\r
51 \r
52 make install DESTDIR=$RPM_BUILD_ROOT\r
53 mv $RPM_BUILD_ROOT/usr/doc/xmltooling _docs\r
54 \r
55 %check || :\r
56 make check\r
57 \r
58 %clean\r
59 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT\r
60 \r
61 %post\r
62 /sbin/ldconfig\r
63 \r
64 %postun\r
65 /sbin/ldconfig\r
66 \r
67 %files\r
68 %defattr(-,root,root,-)\r
69 #%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt\r
70 %{_bindir}/xmltoolingtest\r
71 %{_libdir}/libxmltooling.so.*\r
72 %dir %{_datadir}/xml/xmltooling\r
73 %{_datadir}/xml/xmltooling\r
74 \r
75 %files devel\r
76 %defattr(-,root,root,-)\r
77 %{_includedir}\r
78 %{_libdir}/libxmltooling.so\r
79 \r
80 %changelog\r
81 * Wed Apr 12 2006  Scott Cantor  <cantor.2@osu.edu>  - 1.0-1\r
82 - First SPEC file based on various versions in existence.\r