-
Notifications
You must be signed in to change notification settings - Fork 3
/
cppdom.spec
178 lines (144 loc) · 4.97 KB
/
cppdom.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Spec file for cppdom.
%define name cppdom
%define version 1.3.0
%define release 1
Name: %{name}
Summary: A C++ based XML loader and writer with an internal DOM representation.
Version: %{version}
Release: %{release}%{?dist}
Source: %{name}-%{version}.tar.gz
URL: http://www.sf.net/projects/xml-cppdom/
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
License: LGPL
BuildPrereq: scons >= 0.96.1
Vendor: xml-cppdom Project
Provides: cppdom = %{version}-%{release}
%description
CppDOM is a C++ based XML loader and writer with an internal DOM
representation. It is lightweight and high-performance. The goal of the
project is to provide a lightweight C++ interface for XML programming that
is similar to the API and functionality of JDOM.
%package devel
Summary: Header files and libraries needed for CppDOM development
Group: Development/C++
Requires: cppdom = %{version}-%{release}
Provides: cppdom-devel = %{version}-%{release}
Requires: flagpoll >= 0.8.1
%description devel
The header files and libraries needed for developing programs using CppDOM.
%package config
Summary: The cppdom-config script that calls flagpoll
Group: Development/C++
Requires: cppdom-devel
Requires: flagpoll >= 0.8.1
Requires: python
%description config
The cppdom-config Python script that provides backwards compability for older
packages not using Flagpoll for getting compiler options necessary for
building against CppDOM.
%package doc
Summary: CppDOM documentation
Group: Development/C++
BuildPrereq: doxygen
BuildPrereq: graphviz
%description doc
CppDOM API documentation in HTML form.
%prep
rm -rf %{buildroot}
%setup -q
%ifarch x86_64
%define arch x64
%else
%ifarch i386 i486 i586 i686
%define arch ia32
%endif
%endif
%build
CXXFLAGS="$RPM_OPT_FLAGS"
LINKFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS
export LINKFLAGS
scons prefix=%{buildroot}%{_prefix} var_arch=%{arch} var_type=optimized build_test=no
cd doc && doxygen cppdom.doxy
cd ..
%install
[ -z %{buildroot} ] || rm -rf %{buildroot}
CXXFLAGS="$RPM_OPT_FLAGS"
LINKFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS
export LINKFLAGS
scons prefix=%{buildroot}%{_prefix} var_arch=%{arch} var_type=optimized build_test=no install
mkdir -p %{buildroot}%{_docdir}/cppdom-%{version}
mv doc/html %{buildroot}%{_docdir}/cppdom-%{version}
# Remove all stupid scons temp files
find %{buildroot}%{_prefix} -name .sconsign -exec rm {} \;
for f in README AUTHORS ChangeLog COPYING ; do
cp $f %{buildroot}%{_docdir}/cppdom-%{version}
done
%clean
[ -z %{buildroot} ] || rm -rf %{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/*.so
%dir %{_docdir}/cppdom-%{version}/
%doc %{_docdir}/cppdom-%{version}/README
%doc %{_docdir}/cppdom-%{version}/AUTHORS
%doc %{_docdir}/cppdom-%{version}/ChangeLog
%doc %{_docdir}/cppdom-%{version}/COPYING
%files devel
%defattr(-, root, root)
%dir %{_includedir}/cppdom-%{version}/
%dir %{_includedir}/cppdom-%{version}/cppdom/
%{_includedir}/cppdom-%{version}/cppdom/*.h
%dir %{_includedir}/cppdom-%{version}/cppdom/ext/
%{_includedir}/cppdom-%{version}/cppdom/ext/*.h
%{_libdir}/*.a
%{_libdir}/flagpoll
%files config
%defattr(-, root, root)
%{_bindir}/cppdom-config
%files doc
%defattr(-, root, root)
%dir %{_docdir}/cppdom-%{version}/
%doc %{_docdir}/cppdom-%{version}/html
%changelog
* Sun May 01 2011 Patrick Hartling <[email protected]> 1.3.0-1
- Updated to version 1.3.0.
* Wed Apr 14 2010 Patrick Hartling <[email protected]> 1.1.2-1
- Updated to version 1.1.2.
* Sat Mar 06 2010 Patrick Hartling <[email protected]> 1.1.1-1
- Updated to version 1.1.1.
* Mon Mar 02 2009 Patrick Hartling <[email protected]> 1.1.0-1
- Updated to version 1.1.0.
* Mon Mar 02 2009 Patrick Hartling <[email protected]> 1.0.0-1
- Updated to version 1.0.0.
* Wed Aug 01 2007 Patrick Hartling <[email protected]> 0.7.10-1
- Updated to version 0.7.10.
* Fri Jul 06 2007 Patrick Hartling <[email protected]> 0.7.9-1
- Updated to version 0.7.9.
* Wed Jun 27 2007 Patrick Hartling <[email protected]> 0.7.8-2
- Removed cppdom-config from the cppdom-devel package.
* Tue Jun 26 2007 Patrick Hartling <[email protected]> 0.7.8-1
- Updated to version 0.7.8.
- Include rendered API documentation in the new cppdom-doc package.
- Package cppdom-config separately so that multiple versions of the cppdom
package can be installed in parallel.
* Tue Jun 26 2007 Patrick Hartling <[email protected]> 0.7.7-2
- Added flagpoll as a requirement for cppdom-devel
- Removed Conflicts directives since this can be installed in parallel with
other CppDOM releases.
* Thu Nov 09 2006 Patrick Hartling <[email protected]>
- Updated for the new world order
* Thu Nov 09 2006 Patrick Hartling <[email protected]>
- Fixed bad paths in the .fpc file and in cppdom-config
* Wed Apr 12 2006 Patrick Hartling <[email protected]>
- Updated to handle multi-architecture installations.
* Mon Jun 06 2005 Aron Bierbaum <[email protected]>
- Total rewrite
* Thu Mar 13 2003 Allen Bierbaum
- First version