]> git.pld-linux.org Git - packages/wv2.git/blob - wv2.spec
- cleanup
[packages/wv2.git] / wv2.spec
1 #
2 # http://www.securityfocus.com/bid/18751/info
3 #
4 Summary:        MS Word Document reading library
5 Summary(pl.UTF-8):      Biblioteka czytająca dokumenty MS Worda
6 Name:           wv2
7 Version:        0.4.2
8 Release:        1
9 License:        LGPL v2
10 Group:          Libraries
11 Source0:        http://downloads.sourceforge.net/wvware/%{name}-%{version}.tar.bz2
12 # Source0-md5:  850ed8e44a84e7bf0610747827018cbc
13 Patch0:         %{name}-link.patch
14 URL:            http://wvware.sourceforge.net/
15 BuildRequires:  cmake >= 2.6.1-2
16 BuildRequires:  libgsf-devel >= 1.7.2
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  pkgconfig
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 wv2 is a library that understands the Microsoft Word 8 binary file
23 format (Office97, Office2000).
24
25 %description -l pl.UTF-8
26 wv2 jest biblioteką, którą rozumie binarne dokumenty programu
27 Microsoft Word 8 (Office97, Office2000).
28
29 %package devel
30 Summary:        Include files needed to compile
31 Summary(pl.UTF-8):      Pliki nagłówkowe do biblioteki wv2
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34 Requires:       libgsf-devel
35 Obsoletes:      wv2-static
36
37 %description devel
38 Contains the wv2 header files.
39
40 %description devel -l pl.UTF-8
41 Pakiet tem zawiera pliki nagłówkowe wv2.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46
47 %build
48 install -d build
49 cd build
50 %cmake .. \
51         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
52         -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
53 %if "%{_lib}" == "lib64"
54         -DLIB_SUFFIX=64
55 %endif
56
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %{__make} -C build install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post   -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
70
71 %files
72 %defattr(644,root,root,755)
73 %doc AUTHORS ChangeLog THANKS TODO
74 %attr(755,root,root) %{_libdir}/libwv2.so.*.*.*
75 %attr(755,root,root) %ghost %{_libdir}/libwv2.so.4
76
77 %files devel
78 %defattr(644,root,root,755)
79 %doc doc/escher/*.html doc/DESIGN.html src/generator/{*.htm,spec_defects}
80 %attr(755,root,root) %{_bindir}/wv2-config
81 %attr(755,root,root) %{_libdir}/libwv2.so
82 %{_libdir}/libwv2.la
83 %{_includedir}/wv2
84 %{_libdir}/wvWare
This page took 0.093327 seconds and 4 git commands to generate.