]>
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 |
c8d784df | 4 | Version: 0.4.9 |
92324d0d | 5 | Release: 1 |
002477ca | 6 | License: MPL v2.0 or LGPL v2.1+ |
2467fca3 | 7 | Group: Libraries |
13ae4c92 | 8 | Source0: http://downloads.sourceforge.net/libwps/%{name}-%{version}.tar.xz |
c8d784df | 9 | # Source0-md5: b49670696446f4e11cafa49ec566d54c |
cb64e117 | 10 | Patch0: %{name}-include.patch |
2467fca3 | 11 | URL: http://libwps.sourceforge.net/ |
13ae4c92 JB |
12 | BuildRequires: autoconf >= 0.65 |
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 ER |
67 | %if "%{_rpmversion}" >= "5" |
68 | BuildArch: noarch | |
69 | %endif | |
002477ca JB |
70 | |
71 | %description apidocs | |
72 | API documentation for libwps library. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki libwps. | |
76 | ||
2467fca3 ER |
77 | %package tools |
78 | Summary: Tools to transform Works Documents into other formats | |
911ee803 | 79 | Summary(pl.UTF-8): Narzędzia przekształcające dokumenty MS Works na inne formaty |
2467fca3 ER |
80 | Group: Applications/Publishing |
81 | Requires: %{name} = %{version}-%{release} | |
82 | ||
83 | %description tools | |
84 | Tools to transform Works Documents (WPS) into other formats. Currently | |
85 | supported: html, raw, text. | |
86 | ||
911ee803 | 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. | |
90 | ||
2467fca3 ER |
91 | %prep |
92 | %setup -q | |
cb64e117 | 93 | %patch0 -p1 |
2467fca3 ER |
94 | |
95 | %build | |
3c72701c AM |
96 | %{__libtoolize} |
97 | %{__aclocal} | |
98 | %{__automake} | |
13ae4c92 | 99 | %{__autoheader} |
3c72701c | 100 | %{__autoconf} |
2467fca3 | 101 | %configure \ |
13ae4c92 | 102 | --disable-silent-rules \ |
01e85c6b | 103 | --enable-static \ |
002477ca | 104 | --with-sharedptr=c++11 |
2467fca3 ER |
105 | %{__make} |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
29a3f882 | 113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
13ae4c92 JB |
114 | # packaged as %doc in -devel |
115 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html | |
29a3f882 | 116 | |
2467fca3 ER |
117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
002477ca | 125 | %doc CREDITS ChangeLog NEWS README |
92324d0d JB |
126 | %attr(755,root,root) %{_libdir}/libwps-0.4.so.*.*.* |
127 | %attr(755,root,root) %ghost %{_libdir}/libwps-0.4.so.4 | |
2467fca3 ER |
128 | |
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
92324d0d JB |
131 | %attr(755,root,root) %{_libdir}/libwps-0.4.so |
132 | %{_includedir}/libwps-0.4 | |
133 | %{_pkgconfigdir}/libwps-0.4.pc | |
2467fca3 ER |
134 | |
135 | %files static | |
136 | %defattr(644,root,root,755) | |
92324d0d | 137 | %{_libdir}/libwps-0.4.a |
002477ca JB |
138 | |
139 | %files apidocs | |
140 | %defattr(644,root,root,755) | |
141 | %doc docs/doxygen/html/* | |
2467fca3 ER |
142 | |
143 | %files tools | |
144 | %defattr(644,root,root,755) | |
002477ca JB |
145 | %attr(755,root,root) %{_bindir}/wks2csv |
146 | %attr(755,root,root) %{_bindir}/wks2raw | |
147 | %attr(755,root,root) %{_bindir}/wks2text | |
2467fca3 ER |
148 | %attr(755,root,root) %{_bindir}/wps2html |
149 | %attr(755,root,root) %{_bindir}/wps2raw | |
150 | %attr(755,root,root) %{_bindir}/wps2text |