-
Notifications
You must be signed in to change notification settings - Fork 8
/
libstaroffice.spec.in
114 lines (89 loc) · 3.17 KB
/
libstaroffice.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
%define name libstaroffice
%define version @VERSION@
%define RELEASE 1
%define release %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
Name: %{name}
Summary: Library for reading and converting old StarOffice documents
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.gz
Group: System Environment/Libraries
URL: http://libstaroffice.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
License: LGPL
BuildRequires: librevenge-devel >= 0.0.0, gcc-c++, libstdc++-devel, pkgconfig
Requires: librevenge >= 0.0.0
%description
Library that handles old StarOffice files
%if %{!?_without_stream:1}%{?_without_stream:0}
%package tools
Requires: %{name} = %{version}-%{release}
Summary: Tools to transform StarOffice documents into other formats
Group: Applications/Publishing
%description tools
Tools to transform StarOffice documents into other formats.
Currently supported: html, raw, text
%endif
%package devel
Requires: %{name} = %{version}-%{release}
Summary: Files for developing with libstaroffice.
Group: Development/Libraries
%description devel
Includes and definitions for developing with libstaroffice.
%if %{!?_without_docs:1}%{?_without_docs:0}
%package docs
Requires: %{name}
BuildRequires: doxygen
Summary: Documentation of libstaroffice API
Group: Development/Documentation
%description docs
Documentation of libstaroffice API for developing with libstaroffice
%endif
%prep
%__rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}-%{version}
%build
./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} \
--libdir=%{_libdir} \
%{?_without_stream:--without-stream} \
%{?_with_debug:--enable-debug} \
%{?_without_docs:--without-docs}
%__make
%install
umask 022
%__make DESTDIR=$RPM_BUILD_ROOT install
%__rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
%__rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name}
%files
%defattr(644,root,root,755)
%{_libdir}/libstaroffice*-@STAROFFICE_MAJOR_VERSION@.@[email protected].*
%if %{!?_without_stream:1}%{?_without_stream:0}
%files tools
%defattr(755,root,root,755)
%{_bindir}/sdw2*
%endif
%files devel
%defattr(644,root,root,755)
%{_libdir}/libstaroffice*-@STAROFFICE_MAJOR_VERSION@.@[email protected]
#%{_libdir}/libstaroffice*-@STAROFFICE_MAJOR_VERSION@.@STAROFFICE_MINOR_VERSION@.*a
%{_libdir}/pkgconfig/libstaroffice*-@STAROFFICE_MAJOR_VERSION@.@[email protected]
%{_includedir}/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@STAROFFICE_MINOR_VERSION@/libstaroffice
%if %{!?_without_docs:1}%{?_without_docs:0}
%files docs
%{_datadir}/doc/libstaroffice-@STAROFFICE_VERSION@/*
%endif
%changelog
* Mon Jul 20 2015 Laurent Alonso < osnola users sourceforge net>
- wps to staroffice to
* Sun Sep 24 2006 Andrew Ziem <andrewziem users sourceforge net>
- wpd to wps
* Fri Jan 28 2005 Fridrich Strba <[email protected]>
- Adapt to the new libwpd-X.Y and libwpd-stream-X.Y modules
* Wed Sep 29 2004 Fridrich Strba <[email protected]>
- Move files between libwpd and libwpd-devel packages
- Reflect the separation of libwpd-1 and libwpd-stream-1
* Sat May 22 2003 Rui M. Seabra <[email protected]>
- Reflect current state of build
* Sat Apr 26 2003 Rui M. Seabra <[email protected]>
- Create rpm spec