]> git.pld-linux.org Git - packages/libabw.git/blob - libabw.spec
pldeize
[packages/libabw.git] / libabw.spec
1 %define         apiversion      0.0
2 Summary:        A library for import of AbiWord files
3 Name:           libabw
4 Version:        0.0.1
5 Release:        1
6 License:        MPLv2.0
7 Group:          Libraries
8 Source0:        http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
9 # Source0-md5:  92a82f736aeaf22204ee95bbbcdd69a1
10 URL:            http://www.freedesktop.org/wiki/Software/libabw/
11 BuildRequires:  boost-devel
12 BuildRequires:  doxygen
13 BuildRequires:  gperf
14 BuildRequires:  libwpd-devel
15 BuildRequires:  libxml2-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 %{name} is a library for import of AbiWord files.
20
21 %package devel
22 Summary:        Development files for %{name}
23 Group:          Development/Libraries
24 Requires:       %{name} = %{version}-%{release}
25
26 %description devel
27 The %{name}-devel package contains libraries and header files for
28 developing applications that use %{name}.
29
30 %package tools
31 Summary:        Tools to transform AbiWord files into other formats
32 Group:          Applications/Publishing
33 Requires:       %{name} = %{version}-%{release}
34
35 %description tools
36 Tools to transform AbiWord files into other formats. Currently
37 supported: XHTML, raw, text.
38
39 %prep
40 %setup -q
41
42 %build
43 %configure \
44         --disable-silent-rules \
45         --disable-static \
46         --disable-werror \
47         %{nil}
48
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 rm $RPM_BUILD_ROOT%{_libdir}/*.la
57
58 # we install API docs directly from build
59 rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post   -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
66
67 %files
68 %defattr(644,root,root,755)
69 %doc CREDITS COPYING.MPL README
70 %attr(755,root,root) %{_libdir}/%{name}-%{apiversion}.so.*.*
71 %attr(755,root,root) %ghost %{_libdir}/%{name}-%{apiversion}.so.0
72
73 %files devel
74 %defattr(644,root,root,755)
75 %doc ChangeLog docs/doxygen/html
76 %{_includedir}/%{name}-%{apiversion}
77 %attr(755,root,root) %{_libdir}/%{name}-%{apiversion}.so
78 %{_pkgconfigdir}/%{name}-%{apiversion}.pc
79
80 %files tools
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_bindir}/abw2raw
83 %attr(755,root,root) %{_bindir}/abw2text
84 %attr(755,root,root) %{_bindir}/abw2html
This page took 0.09213 seconds and 3 git commands to generate.