-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathlibroxml.spec
63 lines (51 loc) · 1.47 KB
/
libroxml.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
%define name libroxml
%define version 3.0.2
%define release 1
Summary: a light and powerful C xml parsing library
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://download.libroxml.net/pool/v2.x/libroxml-%{version}.tar.gz
Vendor: blunderer
URL: http://www.libroxml.net
License: LGPL
Group: System Environment/Libraries
Prefix: %{_prefix}
%description
libroxml is a very light, low footprint, fast, and powerful
library designed for parsing XML files. This is perfectly suitable
for little embedded systems but you can also use it widely in various
applications for xml configuration file reading for example.
%package devel
Summary: development file for libroxml
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
The %{name}-devel package contains the header files and static libraries for
building applications which use %{name}.
%prep
%setup -n %{name}-%{version}
%build
make
%install
rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=${RPM_BUILD_ROOT} install
%clean
rm -rf ${RPM_BUILD_ROOT}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc debian/changelog debian/README
%{_prefix}/lib/libroxml.so.0
%{_prefix}/bin/roxml
%{_prefix}/share/man/man1/roxml.1.gz
%files devel
%defattr(-,root,root)
%doc debian/changelog debian/README
%{_prefix}/lib/libroxml.a
%{_prefix}/lib/libroxml.so
%{_prefix}/include/roxml.h
%{_prefix}/lib/pkgconfig/libroxml.pc
%{_prefix}/share/doc/libroxml/html/*
%{_prefix}/share/man/man3/*.3.gz