]> git.pld-linux.org Git - packages/libwpd.git/blob - libwpd.spec
8cb366d5b1441a7007159019a397ff3d0e9a7bab
[packages/libwpd.git] / libwpd.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Library for reading and converting WordPerfect(TM) documents
6 Summary(pl.UTF-8):      Biblioteka do odczytu i konwersji dokumentów WordPerfecta(TM)
7 Name:           libwpd
8 Version:        0.10.0
9 Release:        2
10 License:        MPL v2.0 or LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
13 # Source0-md5:  f7abb9b3ea96faf02ae019af68b1f07c
14 URL:            http://libwpd.sourceforge.net/
15 BuildRequires:  autoconf >= 2.65
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  doxygen
18 BuildRequires:  librevenge-devel >= 0.0
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool >= 2:2
21 BuildRequires:  pkgconfig
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xz
24 BuildRequires:  zlib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Library that handles WordPerfect documents.
29
30 %description -l pl.UTF-8
31 Biblioteka obsługująca dokumenty WordPerfecta.
32
33 %package devel
34 Summary:        Header files for libwpd library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libwpd
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       librevenge-devel >= 0.0
39 Requires:       libstdc++-devel
40
41 %description devel
42 Header files for libwpd library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libwpd.
46
47 %package static
48 Summary:        Static libwpd library
49 Summary(pl.UTF-8):      Statyczna biblioteka libwpd
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static libwpd library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libwpd.
58
59 %package apidocs
60 Summary:        API documentation for libwpd library
61 Summary(pl.UTF-8):      Dokumentacja API biblioteki libwpd
62 Group:          Documentation
63
64 %description apidocs
65 API documentation for libwpd library.
66
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API biblioteki libwpd.
69
70 %package tools
71 Summary:        Tools to transform WordPerfect Documents into other formats
72 Summary(pl.UTF-8):      Narzędzia do przekształcania dokumentów WordPerfecta na inne formaty
73 Group:          Applications/Publishing
74 Requires:       %{name} = %{version}-%{release}
75
76 %description tools
77 Tools to transform WordPerfect Documents (WPD) into other formats.
78 Currently supported: html, raw, text.
79
80 %description tools -l pl.UTF-8
81 Narzędzia do przekształcania dokumentów WordPerfecta (WPD) na inne
82 formaty. Aktualnie obsługiwane są: html, raw, text.
83
84 %prep
85 %setup -q
86
87 %build
88 %{__libtoolize}
89 %{__aclocal}
90 %{__autoconf}
91 %{__autoheader}
92 %{__automake}
93 %configure \
94         %{?with_static_libs:--enable-static} \
95         --disable-silent-rules
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwpd-*.la
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files
114 %defattr(644,root,root,755)
115 %doc CREDITS ChangeLog NEWS README TODO
116 %attr(755,root,root) %{_libdir}/libwpd-0.10.so.*.*.*
117 %attr(755,root,root) %ghost %{_libdir}/libwpd-0.10.so.10
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libwpd-0.10.so
122 %{_includedir}/libwpd-0.10
123 %{_pkgconfigdir}/libwpd-0.10.pc
124
125 %if %{with static_libs}
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libwpd-0.10.a
129 %endif
130
131 %files apidocs
132 %defattr(644,root,root,755)
133 %doc docs/doxygen/html/*
134
135 %files tools
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/wpd2html
138 %attr(755,root,root) %{_bindir}/wpd2raw
139 %attr(755,root,root) %{_bindir}/wpd2text
This page took 0.043723 seconds and 2 git commands to generate.