]> git.pld-linux.org Git - packages/libwps.git/blob - libwps.spec
- rel 4; fix build with werror
[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.2.0
5 Release:        4
6 License:        LGPL v2+
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/libwps/%{name}-%{version}.tar.gz
9 # Source0-md5:  b569376fb0aefc5284b10a695bd2daa6
10 Patch0:         %{name}-werror.patch
11 URL:            http://libwps.sourceforge.net/
12 BuildRequires:  automake
13 BuildRequires:  doxygen
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  libwpd-devel >= 0.9
16 BuildRequires:  pkgconfig
17 Requires:       libwpd >= 0.9
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 libwps is a Microsoft Works file format import filter based on top of
22 the libwpd (which is already used in three word processors).
23 Currently, libwps is a new project, but it imports all Works formats
24 since about 1995 with some success.
25
26 %description -l pl.UTF-8
27 libwps jest filtrem importu plików w formacie MS Works, bazującym na
28 bibliotece libwpd używanej już w trzech procesorach tekstu. Obecnie
29 libwps jest nowym projektem, jednakże od ok. roku 1995 jest z pewnym
30 sukcesem używany do importowania wszystkich formatów MS Works.
31
32 %package devel
33 Summary:        Header files for libwps library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libwps
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       libstdc++-devel
38 Requires:       libwpd-devel >= 0.9
39
40 %description devel
41 Header files for libwps library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki libwps.
45
46 %package static
47 Summary:        Static libwps library
48 Summary(pl.UTF-8):      Statyczna biblioteka libwps
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static libwps library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka libwps.
57
58 %package tools
59 Summary:        Tools to transform Works Documents into other formats
60 Summary(pl.UTF-8):      Narzędzia przekształcające dokumenty MS Works na inne formaty
61 Group:          Applications/Publishing
62 Requires:       %{name} = %{version}-%{release}
63
64 %description tools
65 Tools to transform Works Documents (WPS) into other formats. Currently
66 supported: html, raw, text.
67
68 %description tools -l pl.UTF-8
69 Narzędzia przekształcające dokumenty MS Works (WPS) do innych
70 formatów. Obecnie obsługiwane: html, raw, tekst.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75
76 %build
77 cp -f /usr/share/automake/config.sub .
78 %configure \
79         --enable-static
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %doc CHANGES CREDITS HACKING README
99 %attr(755,root,root) %{_libdir}/libwps-0.2.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libwps-0.2.so.2
101
102 %files devel
103 %defattr(644,root,root,755)
104 %doc docs/doxygen/html
105 %attr(755,root,root) %{_libdir}/libwps-0.2.so
106 %{_includedir}/libwps-0.2
107 %{_pkgconfigdir}/libwps-0.2.pc
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/libwps-0.2.a
112
113 %files tools
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_bindir}/wps2html
116 %attr(755,root,root) %{_bindir}/wps2raw
117 %attr(755,root,root) %{_bindir}/wps2text
This page took 0.085977 seconds and 4 git commands to generate.