]>
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 |
3a2af60d | 4 | Version: 0.2.9 |
13ae4c92 | 5 | Release: 1 |
2186285f | 6 | License: LGPL v2+ |
2467fca3 | 7 | Group: Libraries |
13ae4c92 | 8 | Source0: http://downloads.sourceforge.net/libwps/%{name}-%{version}.tar.xz |
3a2af60d | 9 | # Source0-md5: 95ae3908111b1ab8a3e3caed1807b5be |
2467fca3 | 10 | URL: http://libwps.sourceforge.net/ |
13ae4c92 JB |
11 | BuildRequires: autoconf >= 0.65 |
12 | BuildRequires: automake >= 1:1.11 | |
13 | BuildRequires: boost-devel | |
d1655cfa | 14 | BuildRequires: doxygen |
2186285f | 15 | BuildRequires: libstdc++-devel |
3c72701c | 16 | BuildRequires: libtool |
5c28620b | 17 | BuildRequires: libwpd-devel >= 0.9 |
13ae4c92 JB |
18 | BuildRequires: pkgconfig >= 1:0.20 |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
5c28620b | 21 | Requires: libwpd >= 0.9 |
2467fca3 ER |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | libwps is a Microsoft Works file format import filter based on top of | |
26 | the libwpd (which is already used in three word processors). | |
27 | Currently, libwps is a new project, but it imports all Works formats | |
28 | since about 1995 with some success. | |
29 | ||
911ee803 | 30 | %description -l pl.UTF-8 |
db92e1d7 | 31 | libwps jest filtrem importu plików w formacie MS Works, bazującym na |
911ee803 | 32 | bibliotece libwpd używanej już w trzech procesorach tekstu. Obecnie |
33 | libwps jest nowym projektem, jednakże od ok. roku 1995 jest z pewnym | |
db92e1d7 | 34 | sukcesem używany do importowania wszystkich formatów MS Works. |
911ee803 | 35 | |
2467fca3 ER |
36 | %package devel |
37 | Summary: Header files for libwps library | |
911ee803 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwps |
2467fca3 ER |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
2186285f | 41 | Requires: libstdc++-devel |
5c28620b | 42 | Requires: libwpd-devel >= 0.9 |
2467fca3 ER |
43 | |
44 | %description devel | |
45 | Header files for libwps library. | |
46 | ||
911ee803 | 47 | %description devel -l pl.UTF-8 |
48 | Pliki nagłówkowe biblioteki libwps. | |
2467fca3 ER |
49 | |
50 | %package static | |
51 | Summary: Static libwps library | |
c63ab9e3 | 52 | Summary(pl.UTF-8): Statyczna biblioteka libwps |
2467fca3 ER |
53 | Group: Development/Libraries |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static libwps library. | |
58 | ||
911ee803 | 59 | %description static -l pl.UTF-8 |
2467fca3 ER |
60 | Statyczna biblioteka libwps. |
61 | ||
62 | %package tools | |
63 | Summary: Tools to transform Works Documents into other formats | |
911ee803 | 64 | Summary(pl.UTF-8): Narzędzia przekształcające dokumenty MS Works na inne formaty |
2467fca3 ER |
65 | Group: Applications/Publishing |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description tools | |
69 | Tools to transform Works Documents (WPS) into other formats. Currently | |
70 | supported: html, raw, text. | |
71 | ||
911ee803 | 72 | %description tools -l pl.UTF-8 |
73 | Narzędzia przekształcające dokumenty MS Works (WPS) do innych | |
74 | formatów. Obecnie obsługiwane: html, raw, tekst. | |
75 | ||
2467fca3 ER |
76 | %prep |
77 | %setup -q | |
78 | ||
79 | %build | |
3c72701c AM |
80 | %{__libtoolize} |
81 | %{__aclocal} | |
82 | %{__automake} | |
13ae4c92 | 83 | %{__autoheader} |
3c72701c | 84 | %{__autoconf} |
01e85c6b JB |
85 | # Note: as of 0.2.9, build with -Werror fails with gcc 4.8: |
86 | # WPS8Graph.cpp:245:34: error: typedef 'Pict' locally defined but not used [-Werror=unused-local-typedefs] | |
2467fca3 | 87 | %configure \ |
13ae4c92 | 88 | --disable-silent-rules \ |
01e85c6b JB |
89 | --enable-static \ |
90 | --disable-werror | |
2467fca3 ER |
91 | %{__make} |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
29a3f882 | 99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
13ae4c92 JB |
100 | # packaged as %doc in -devel |
101 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html | |
29a3f882 | 102 | |
2467fca3 ER |
103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
13ae4c92 | 111 | %doc CREDITS ChangeLog HACKING NEWS README |
5c28620b CM |
112 | %attr(755,root,root) %{_libdir}/libwps-0.2.so.*.*.* |
113 | %attr(755,root,root) %ghost %{_libdir}/libwps-0.2.so.2 | |
2467fca3 ER |
114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %doc docs/doxygen/html | |
5c28620b | 118 | %attr(755,root,root) %{_libdir}/libwps-0.2.so |
5c28620b CM |
119 | %{_includedir}/libwps-0.2 |
120 | %{_pkgconfigdir}/libwps-0.2.pc | |
2467fca3 ER |
121 | |
122 | %files static | |
123 | %defattr(644,root,root,755) | |
5c28620b | 124 | %{_libdir}/libwps-0.2.a |
2467fca3 ER |
125 | |
126 | %files tools | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_bindir}/wps2html | |
129 | %attr(755,root,root) %{_bindir}/wps2raw | |
130 | %attr(755,root,root) %{_bindir}/wps2text |