]> git.pld-linux.org Git - packages/libwps.git/blob - libwps.spec
- updated to 0.4.14
[packages/libwps.git] / libwps.spec
1 Summary:        A library for importing MS Works documents
2 Summary(pl.UTF-8):      Biblioteka importu dokumentów MS Works
3 Name:           libwps
4 Version:        0.4.14
5 Release:        1
6 License:        MPL v2.0 or LGPL v2.1+
7 Group:          Libraries
8 Source0:        https://downloads.sourceforge.net/libwps/%{name}-%{version}.tar.xz
9 # Source0-md5:  f85851a0de1da6ff61c096223debb39d
10 Patch0:         %{name}-include.patch
11 URL:            https://sourceforge.net/p/libwps/wiki/Home/
12 BuildRequires:  autoconf >= 2.71
13 BuildRequires:  automake >= 1:1.11
14 BuildRequires:  doxygen
15 BuildRequires:  librevenge-devel >= 0.0
16 BuildRequires:  libstdc++-devel >= 6:4.7
17 BuildRequires:  libtool >= 2:2
18 BuildRequires:  pkgconfig >= 1:0.20
19 BuildRequires:  tar >= 1:1.22
20 BuildRequires:  xz
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
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.
29
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
35 Microsoft Works.
36
37 %package devel
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 >= 6:4.7
44
45 %description devel
46 Header files for libwps library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libwps.
50
51 %package static
52 Summary:        Static libwps library
53 Summary(pl.UTF-8):      Statyczna biblioteka libwps
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static libwps library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libwps.
62
63 %package apidocs
64 Summary:        API documentation for libwps library
65 Summary(pl.UTF-8):      Dokumentacja API biblioteki libwps
66 Group:          Documentation
67 BuildArch:      noarch
68
69 %description apidocs
70 API documentation for libwps library.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki libwps.
74
75 %package tools
76 Summary:        Tools to transform Works Documents into other formats
77 Summary(pl.UTF-8):      Narzędzia przekształcające dokumenty MS Works na inne formaty
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
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
89 %prep
90 %setup -q
91 %patch0 -p1
92
93 %build
94 %{__libtoolize}
95 %{__aclocal}
96 %{__automake}
97 %{__autoheader}
98 %{__autoconf}
99 %configure \
100         --disable-silent-rules \
101         --enable-static
102
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
112 # packaged as %doc in -devel
113 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html
114
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)
123 %doc CREDITS ChangeLog NEWS README
124 %attr(755,root,root) %{_libdir}/libwps-0.4.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libwps-0.4.so.4
126
127 %files devel
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/libwps-0.4.so
130 %{_includedir}/libwps-0.4
131 %{_pkgconfigdir}/libwps-0.4.pc
132
133 %files static
134 %defattr(644,root,root,755)
135 %{_libdir}/libwps-0.4.a
136
137 %files apidocs
138 %defattr(644,root,root,755)
139 %doc docs/doxygen/html/*
140
141 %files tools
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_bindir}/wks2csv
144 %attr(755,root,root) %{_bindir}/wks2raw
145 %attr(755,root,root) %{_bindir}/wks2text
146 %attr(755,root,root) %{_bindir}/wps2html
147 %attr(755,root,root) %{_bindir}/wps2raw
148 %attr(755,root,root) %{_bindir}/wps2text
This page took 0.218199 seconds and 3 git commands to generate.