3 %bcond_without static_libs # static library
6 Summary: A library for import of AbiWord files
7 Summary(pl.UTF-8): Biblioteka do importowania plików AbiWorda
13 Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
14 # Source0-md5: f29f5ad99b36635fb566c55327b1905e
15 URL: http://www.freedesktop.org/wiki/Software/libabw/
16 BuildRequires: boost-devel
17 BuildRequires: doxygen
18 BuildRequires: gperf >= 3.0.0
19 BuildRequires: librevenge-devel >= 0.0
20 BuildRequires: libstdc++-devel
21 BuildRequires: libxml2-devel >= 2.0
22 BuildRequires: pkgconfig
23 BuildRequires: tar >= 1:1.22
25 BuildRequires: zlib-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 libabw is a library for import of AbiWord files.
31 %description -l pl.UTF-8
32 libabw to biblioteka do importowania plików AbiWorda.
35 Summary: Development files for libabw
36 Summary(pl.UTF-8): Pliki programistyczne biblioteki libabw
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: librevenge-devel >= 0.0
40 Requires: libstdc++-devel
41 Requires: libxml2-devel >= 2.0
45 This package contains the header files for developing applications
48 %description devel -l pl.UTF-8
49 Ten pakiet zawiera biblioteki i pliki nagłówkowe do tworzenia
50 aplikacji wykorzystujących bibliotekę libabw.
53 Summary: Static libabw library
54 Summary(pl.UTF-8): Statyczna biblioteka libabw
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static libabw library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libabw.
65 Summary: API documentation for libabw library
66 Summary(pl.UTF-8): Dokumentacja API biblioteki libabw
70 API documentation for libabw library.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki libabw.
76 Summary: Tools to transform AbiWord files into other formats
77 Summary(pl.UTF-8): Narzędzia do przekształcania plików AbiWorda do innych formatów
78 Group: Applications/Publishing
79 Requires: %{name} = %{version}-%{release}
82 Tools to transform AbiWord files into other formats. Currently
83 supported: XHTML, raw, text.
85 %description tools -l pl.UTF-8
86 Narzędzia do przekształcania plików AbiWorda do innych formatów.
87 Obecnie obsługiwane są: XHTML, surowy, tekst.
94 --disable-silent-rules \
95 %{?with_static_libs:--enable-static}
100 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
106 # we install API docs directly from build
107 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
117 %doc CREDITS ChangeLog NEWS README
118 %attr(755,root,root) %{_libdir}/libabw-%{apiversion}.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libabw-%{apiversion}.so.1
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libabw-%{apiversion}.so
124 %{_includedir}/libabw-%{apiversion}
125 %{_pkgconfigdir}/libabw-%{apiversion}.pc
127 %if %{with static_libs}
129 %defattr(644,root,root,755)
130 %{_libdir}/libabw-%{apiversion}.a
134 %defattr(644,root,root,755)
135 %doc docs/doxygen/html/*
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/abw2raw
140 %attr(755,root,root) %{_bindir}/abw2text
141 %attr(755,root,root) %{_bindir}/abw2html