]>
Commit | Line | Data |
---|---|---|
911ee803 | 1 | Summary: A library for importing MS Works documents |
db92e1d7 | 2 | Summary(pl.UTF-8): Biblioteka importu dokumentów MS Works |
2467fca3 | 3 | Name: libwps |
f61cb421 | 4 | Version: 0.4.14 |
92324d0d | 5 | Release: 1 |
002477ca | 6 | License: MPL v2.0 or LGPL v2.1+ |
2467fca3 | 7 | Group: Libraries |
a59a80c0 | 8 | Source0: https://downloads.sourceforge.net/libwps/%{name}-%{version}.tar.xz |
f61cb421 | 9 | # Source0-md5: f85851a0de1da6ff61c096223debb39d |
cb64e117 | 10 | Patch0: %{name}-include.patch |
a59a80c0 JB |
11 | URL: https://sourceforge.net/p/libwps/wiki/Home/ |
12 | BuildRequires: autoconf >= 2.71 | |
13ae4c92 | 13 | BuildRequires: automake >= 1:1.11 |
d1655cfa | 14 | BuildRequires: doxygen |
002477ca | 15 | BuildRequires: librevenge-devel >= 0.0 |
4a0efc77 | 16 | BuildRequires: libstdc++-devel >= 6:4.7 |
002477ca | 17 | BuildRequires: libtool >= 2:2 |
13ae4c92 JB |
18 | BuildRequires: pkgconfig >= 1:0.20 |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
2467fca3 ER |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | libwps is a Microsoft Works file format import filter based on top of | |
002477ca JB |
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 | |
28 | Microsoft Works. | |
2467fca3 | 29 | |
911ee803 | 30 | %description -l pl.UTF-8 |
002477ca JB |
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 | |
35 | Microsoft Works. | |
911ee803 | 36 | |
2467fca3 ER |
37 | %package devel |
38 | Summary: Header files for libwps library | |
911ee803 | 39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwps |
2467fca3 ER |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
002477ca | 42 | Requires: librevenge-devel >= 0.0 |
4a0efc77 | 43 | Requires: libstdc++-devel >= 6:4.7 |
2467fca3 ER |
44 | |
45 | %description devel | |
46 | Header files for libwps library. | |
47 | ||
911ee803 | 48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe biblioteki libwps. | |
2467fca3 ER |
50 | |
51 | %package static | |
52 | Summary: Static libwps library | |
c63ab9e3 | 53 | Summary(pl.UTF-8): Statyczna biblioteka libwps |
2467fca3 ER |
54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static libwps library. | |
59 | ||
911ee803 | 60 | %description static -l pl.UTF-8 |
2467fca3 ER |
61 | Statyczna biblioteka libwps. |
62 | ||
002477ca JB |
63 | %package apidocs |
64 | Summary: API documentation for libwps library | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki libwps | |
66 | Group: Documentation | |
2e0be26a | 67 | BuildArch: noarch |
002477ca JB |
68 | |
69 | %description apidocs | |
70 | API documentation for libwps library. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API biblioteki libwps. | |
74 | ||
2467fca3 ER |
75 | %package tools |
76 | Summary: Tools to transform Works Documents into other formats | |
911ee803 | 77 | Summary(pl.UTF-8): Narzędzia przekształcające dokumenty MS Works na inne formaty |
2467fca3 ER |
78 | Group: Applications/Publishing |
79 | Requires: %{name} = %{version}-%{release} | |
80 | ||
81 | %description tools | |
82 | Tools to transform Works Documents (WPS) into other formats. Currently | |
83 | supported: html, raw, text. | |
84 | ||
911ee803 | 85 | %description tools -l pl.UTF-8 |
86 | Narzędzia przekształcające dokumenty MS Works (WPS) do innych | |
87 | formatów. Obecnie obsługiwane: html, raw, tekst. | |
88 | ||
2467fca3 ER |
89 | %prep |
90 | %setup -q | |
cb64e117 | 91 | %patch0 -p1 |
2467fca3 ER |
92 | |
93 | %build | |
3c72701c AM |
94 | %{__libtoolize} |
95 | %{__aclocal} | |
96 | %{__automake} | |
13ae4c92 | 97 | %{__autoheader} |
3c72701c | 98 | %{__autoconf} |
2467fca3 | 99 | %configure \ |
13ae4c92 | 100 | --disable-silent-rules \ |
dc375956 JB |
101 | --enable-static |
102 | ||
2467fca3 ER |
103 | %{__make} |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %{__make} install \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
29a3f882 | 111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
13ae4c92 JB |
112 | # packaged as %doc in -devel |
113 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html | |
29a3f882 | 114 | |
2467fca3 ER |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
002477ca | 123 | %doc CREDITS ChangeLog NEWS README |
92324d0d JB |
124 | %attr(755,root,root) %{_libdir}/libwps-0.4.so.*.*.* |
125 | %attr(755,root,root) %ghost %{_libdir}/libwps-0.4.so.4 | |
2467fca3 ER |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
92324d0d JB |
129 | %attr(755,root,root) %{_libdir}/libwps-0.4.so |
130 | %{_includedir}/libwps-0.4 | |
131 | %{_pkgconfigdir}/libwps-0.4.pc | |
2467fca3 ER |
132 | |
133 | %files static | |
134 | %defattr(644,root,root,755) | |
92324d0d | 135 | %{_libdir}/libwps-0.4.a |
002477ca JB |
136 | |
137 | %files apidocs | |
138 | %defattr(644,root,root,755) | |
139 | %doc docs/doxygen/html/* | |
2467fca3 ER |
140 | |
141 | %files tools | |
142 | %defattr(644,root,root,755) | |
002477ca JB |
143 | %attr(755,root,root) %{_bindir}/wks2csv |
144 | %attr(755,root,root) %{_bindir}/wks2raw | |
145 | %attr(755,root,root) %{_bindir}/wks2text | |
2467fca3 ER |
146 | %attr(755,root,root) %{_bindir}/wps2html |
147 | %attr(755,root,root) %{_bindir}/wps2raw | |
148 | %attr(755,root,root) %{_bindir}/wps2text |