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: 3c2958317878d4888804d66a203d00f8
10 URL: http://libwps.sourceforge.net/
11 BuildRequires: autoconf >= 0.65
12 BuildRequires: automake >= 1:1.11
13 BuildRequires: doxygen
14 BuildRequires: librevenge-devel >= 0.0
15 BuildRequires: libstdc++-devel >= 6:4.3
16 BuildRequires: libtool >= 2:2
17 BuildRequires: pkgconfig >= 1:0.20
18 BuildRequires: tar >= 1:1.22
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 libwps is a Microsoft Works file format import filter based on top of
24 the librevenge (which is already used in three word processors).
25 Currently, libwps can import all word processing Microsoft Works
26 formats since about 1995 with some success and some spreadsheet
29 %description -l pl.UTF-8
30 libwps jest filtrem importu plików w formacie Microsoft Works,
31 opartymm na bibliotece librevenge (używanej już w trzech procesorach
32 tekstu). Obecnie libwps potrafi importować wszystkie formaty tekstowe
33 Microsoft Works od około 1995 roku oraz niektóre arkusze kalkulacyjne
37 Summary: Header files for libwps library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwps
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: librevenge-devel >= 0.0
42 Requires: libstdc++-devel
45 Header files for libwps library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki libwps.
51 Summary: Static libwps library
52 Summary(pl.UTF-8): Statyczna biblioteka libwps
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static libwps library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka libwps.
63 Summary: API documentation for libwps library
64 Summary(pl.UTF-8): Dokumentacja API biblioteki libwps
68 API documentation for libwps library.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API biblioteki libwps.
74 Summary: Tools to transform Works Documents into other formats
75 Summary(pl.UTF-8): Narzędzia przekształcające dokumenty MS Works na inne formaty
76 Group: Applications/Publishing
77 Requires: %{name} = %{version}-%{release}
80 Tools to transform Works Documents (WPS) into other formats. Currently
81 supported: html, raw, text.
83 %description tools -l pl.UTF-8
84 Narzędzia przekształcające dokumenty MS Works (WPS) do innych
85 formatów. Obecnie obsługiwane: html, raw, tekst.
96 # -std=c++11 is needed for std::shared_ptr
97 CXXFLAGS="%{rpmcxxflags} -std=c++11"
99 --disable-silent-rules \
101 --with-sharedptr=c++11
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
111 # packaged as %doc in -devel
112 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html
115 rm -rf $RPM_BUILD_ROOT
117 %post -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
121 %defattr(644,root,root,755)
122 %doc CREDITS ChangeLog NEWS README
123 %attr(755,root,root) %{_libdir}/libwps-0.3.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libwps-0.3.so.3
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libwps-0.3.so
129 %{_includedir}/libwps-0.3
130 %{_pkgconfigdir}/libwps-0.3.pc
133 %defattr(644,root,root,755)
134 %{_libdir}/libwps-0.3.a
137 %defattr(644,root,root,755)
138 %doc docs/doxygen/html/*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/wks2csv
143 %attr(755,root,root) %{_bindir}/wks2raw
144 %attr(755,root,root) %{_bindir}/wks2text
145 %attr(755,root,root) %{_bindir}/wps2html
146 %attr(755,root,root) %{_bindir}/wps2raw
147 %attr(755,root,root) %{_bindir}/wps2text