]> git.pld-linux.org Git - packages/libwps.git/blob - libwps.spec
noarch apidocs
[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.3.1
5 Release:        3
6 License:        MPL v2.0 or LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/libwps/%{name}-%{version}.tar.xz
9 # Source0-md5:  d62253cd1c8b8d296902ec7726a1022b
10 URL:            http://libwps.sourceforge.net/
11 BuildRequires:  autoconf >= 0.65
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  doxygen
14 BuildRequires:  librevenge-devel >= 0.0
15 BuildRequires:  libstdc++-devel >= 6:4.3
16 BuildRequires:  libtool >= 2:2
17 BuildRequires:  pkgconfig >= 1:0.20
18 BuildRequires:  tar >= 1:1.22
19 BuildRequires:  xz
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 libwps is a Microsoft Works file format import filter based on top of
24 the librevenge (which is already used in three word processors).
25 Currently, libwps can import all word processing Microsoft Works
26 formats since about 1995 with some success and some spreadsheet
27 Microsoft Works.
28
29 %description -l pl.UTF-8
30 libwps jest filtrem importu plików w formacie Microsoft Works,
31 opartymm na bibliotece librevenge (używanej już w trzech procesorach
32 tekstu). Obecnie libwps potrafi importować wszystkie formaty tekstowe
33 Microsoft Works od około 1995 roku oraz niektóre arkusze kalkulacyjne
34 Microsoft Works.
35
36 %package devel
37 Summary:        Header files for libwps library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libwps
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       librevenge-devel >= 0.0
42 Requires:       libstdc++-devel
43
44 %description devel
45 Header files for libwps library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki libwps.
49
50 %package static
51 Summary:        Static libwps library
52 Summary(pl.UTF-8):      Statyczna biblioteka libwps
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static libwps library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka libwps.
61
62 %package apidocs
63 Summary:        API documentation for libwps library
64 Summary(pl.UTF-8):      Dokumentacja API biblioteki libwps
65 Group:          Documentation
66 %if "%{_rpmversion}" >= "5"
67 BuildArch:      noarch
68 %endif
69
70 %description apidocs
71 API documentation for libwps library.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki libwps.
75
76 %package tools
77 Summary:        Tools to transform Works Documents into other formats
78 Summary(pl.UTF-8):      Narzędzia przekształcające dokumenty MS Works na inne formaty
79 Group:          Applications/Publishing
80 Requires:       %{name} = %{version}-%{release}
81
82 %description tools
83 Tools to transform Works Documents (WPS) into other formats. Currently
84 supported: html, raw, text.
85
86 %description tools -l pl.UTF-8
87 Narzędzia przekształcające dokumenty MS Works (WPS) do innych
88 formatów. Obecnie obsługiwane: html, raw, tekst.
89
90 %prep
91 %setup -q
92
93 %build
94 %{__libtoolize}
95 %{__aclocal}
96 %{__automake}
97 %{__autoheader}
98 %{__autoconf}
99 # -std=c++11 is needed for std::shared_ptr
100 CXXFLAGS="%{rpmcxxflags} -std=c++11"
101 %configure \
102         --disable-silent-rules \
103         --enable-static \
104         --with-sharedptr=c++11
105 %{__make}
106
107 %install
108 rm -rf $RPM_BUILD_ROOT
109
110 %{__make} install \
111         DESTDIR=$RPM_BUILD_ROOT
112
113 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
114 # packaged as %doc in -devel
115 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html
116
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)
125 %doc CREDITS ChangeLog NEWS README
126 %attr(755,root,root) %{_libdir}/libwps-0.3.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libwps-0.3.so.3
128
129 %files devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libwps-0.3.so
132 %{_includedir}/libwps-0.3
133 %{_pkgconfigdir}/libwps-0.3.pc
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/libwps-0.3.a
138
139 %files apidocs
140 %defattr(644,root,root,755)
141 %doc docs/doxygen/html/*
142
143 %files tools
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_bindir}/wks2csv
146 %attr(755,root,root) %{_bindir}/wks2raw
147 %attr(755,root,root) %{_bindir}/wks2text
148 %attr(755,root,root) %{_bindir}/wps2html
149 %attr(755,root,root) %{_bindir}/wps2raw
150 %attr(755,root,root) %{_bindir}/wps2text
This page took 0.050093 seconds and 4 git commands to generate.