-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxml-patch.spec.in
86 lines (66 loc) · 1.68 KB
/
xml-patch.spec.in
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
# being lazy...
%define _unpackaged_files_terminate_build 0
#
#
%define appname xml_patch
Summary: an XML patch library
Name: libxmlpatch
Version: @VERSION@
Release: 1
License: LGPL
Group: Development/Libraries
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: libxml2
BuildRequires: libxml2-devel
Prefix: %{_prefix}
%package devel
Summary: Libraries, includes to patch XML files
Group: Development/Libraries
Requires: libxml2 libxmlpatch = %{version}
%description devel
%prep
%setup -q
%post
%build
./configure --prefix=%{prefix} --libdir=%{_libdir}
make
%description
%install
rm -fr %{buildroot}
%makeinstall
%clean
rm -fr %{buildroot}
%files
%defattr(-,root,root)
%attr(0755,root,root) %{prefix}/bin/xml-patch
%{_libdir}/libxmlpatch.so.*
%doc AUTHORS ChangeLog tests NEWS README TODO LEGAL_NOTICE
%files devel
%{_libdir}/libxmlpatch.so
%{_libdir}/libxmlpatch.a
%{prefix}/include/libxmlpatch/*.h
%{_libdir}/pkgconfig/libxmlpatch.pc
%define appname xml_diff
%package diff
Summary: an XML diff library
Group: Development/Libraries
Requires: libxml2 glib2
Prefix: %{_prefix}
%description diff
%files diff
%defattr(-,root,root)
%attr(0755,root,root) %{prefix}/bin/xml-diff
%{_libdir}/libxmldiff.so.*
%doc LEGAL_NOTICE diff/tests AUTHORS NEWS README TODO
%package diff-devel
Summary: Libraries, includes, etc. to develop XML and HTML applications
Group: Development/Libraries
BuildRequires: libxml2-devel glib2-devel
Requires: libxml2 glib2 %{name}-diff = %{version}
%description diff-devel
%files diff-devel
%{_libdir}/libxmldiff.so
%{_libdir}/libxmldiff.a
%{prefix}/include/libxmldiff/*.h
%{_libdir}/pkgconfig/libxmldiff.pc