1 Summary: A library for importing MS Works documents
2 Summary(pl.UTF-8): Biblioteka importu dokumentów MS Works
6 License: MPL v2.0 or LGPL v2.1+
8 Source0: http://downloads.sourceforge.net/libwps/%{name}-%{version}.tar.xz
9 # Source0-md5: daf202d25eb443cfa7318f5688f22e30
10 Patch0: %{name}-include.patch
11 URL: http://libwps.sourceforge.net/
12 BuildRequires: autoconf >= 0.65
13 BuildRequires: automake >= 1:1.11
14 BuildRequires: doxygen
15 BuildRequires: librevenge-devel >= 0.0
16 BuildRequires: libstdc++-devel >= 6:4.3
17 BuildRequires: libtool >= 2:2
18 BuildRequires: pkgconfig >= 1:0.20
19 BuildRequires: tar >= 1:1.22
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 libwps is a Microsoft Works file format import filter based on top of
25 the librevenge (which is already used in three word processors).
26 Currently, libwps can import all word processing Microsoft Works
27 formats since about 1995 with some success and some spreadsheet
30 %description -l pl.UTF-8
31 libwps jest filtrem importu plików w formacie Microsoft Works,
32 opartymm na bibliotece librevenge (używanej już w trzech procesorach
33 tekstu). Obecnie libwps potrafi importować wszystkie formaty tekstowe
34 Microsoft Works od około 1995 roku oraz niektóre arkusze kalkulacyjne
38 Summary: Header files for libwps library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwps
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: librevenge-devel >= 0.0
43 Requires: libstdc++-devel
46 Header files for libwps library.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libwps.
52 Summary: Static libwps library
53 Summary(pl.UTF-8): Statyczna biblioteka libwps
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 Static libwps library.
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libwps.
64 Summary: API documentation for libwps library
65 Summary(pl.UTF-8): Dokumentacja API biblioteki libwps
67 %if "%{_rpmversion}" >= "5"
72 API documentation for libwps library.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libwps.
78 Summary: Tools to transform Works Documents into other formats
79 Summary(pl.UTF-8): Narzędzia przekształcające dokumenty MS Works na inne formaty
80 Group: Applications/Publishing
81 Requires: %{name} = %{version}-%{release}
84 Tools to transform Works Documents (WPS) into other formats. Currently
85 supported: html, raw, text.
87 %description tools -l pl.UTF-8
88 Narzędzia przekształcające dokumenty MS Works (WPS) do innych
89 formatów. Obecnie obsługiwane: html, raw, tekst.
101 # -std=c++11 is needed for std::shared_ptr
102 CXXFLAGS="%{rpmcxxflags} -std=c++11"
104 --disable-silent-rules \
106 --with-sharedptr=c++11
110 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
115 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
116 # packaged as %doc in -devel
117 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html
120 rm -rf $RPM_BUILD_ROOT
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
126 %defattr(644,root,root,755)
127 %doc CREDITS ChangeLog NEWS README
128 %attr(755,root,root) %{_libdir}/libwps-0.4.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libwps-0.4.so.4
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libwps-0.4.so
134 %{_includedir}/libwps-0.4
135 %{_pkgconfigdir}/libwps-0.4.pc
138 %defattr(644,root,root,755)
139 %{_libdir}/libwps-0.4.a
142 %defattr(644,root,root,755)
143 %doc docs/doxygen/html/*
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_bindir}/wks2csv
148 %attr(755,root,root) %{_bindir}/wks2raw
149 %attr(755,root,root) %{_bindir}/wks2text
150 %attr(755,root,root) %{_bindir}/wps2html
151 %attr(755,root,root) %{_bindir}/wps2raw
152 %attr(755,root,root) %{_bindir}/wps2text