forked from pld-linux/libmspub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibmspub.spec
More file actions
143 lines (116 loc) · 3.74 KB
/
libmspub.spec
File metadata and controls
143 lines (116 loc) · 3.74 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
# Conditional build:
%bcond_without static_libs # static library
#
Summary: A library providing ability to interpret and import Microsoft Publisher content
Summary(pl.UTF-8): Biblioteka umożliwiająca interpretowanie i importowanie treści z Microsoft Publishera
Name: libmspub
Version: 0.0.6
Release: 1
License: GPL v2+ or LGPL v2+ or MPL v1.1
Group: Libraries
Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
# Source0-md5: 96a1f176abd683c6b1b02a08847c0616
URL: http://www.freedesktop.org/wiki/Software/libmspub
BuildRequires: boost-devel
BuildRequires: doxygen
BuildRequires: libicu-devel
BuildRequires: libstdc++-devel
BuildRequires: libwpd-devel >= 0.9
BuildRequires: libwpg-devel >= 0.2
BuildRequires: pkgconfig >= 1:0.20
BuildRequires: tar >= 1:1.22
BuildRequires: xz
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Libmspub is library providing ability to interpret and import
Microsoft Publisher content into various applications. You can find it
being used in libreoffice.
%description -l pl.UTF-8
Libmspub to biblioteka umożliwiająca interpretowanie i importowanie
treści z Microsoft Publishera do wielu aplikacji. Jest wykorzystywana
przez libreoffice.
%package devel
Summary: Development files for libmspub
Summary(pl.UTF-8): Pliki nagłówkowe dla libmspub
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libstdc++-devel
Requires: libwpd-devel >= 0.9
Requires: libwpg-devel >= 0.2
Requires: zlib-devel
%description devel
This package contains the header files for developing applications
that use libmspub.
%description devel -l pl.UTF-8
Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
libmspub.
%package static
Summary: Static libmspub library
Summary(pl.UTF-8): Statyczna biblioteka libmspub
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static libmspub library.
%description static -l pl.UTF-8
Statyczna biblioteka libmspub.
%package apidocs
Summary: libmspub API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki libmspub
Group: Documentation
%description apidocs
API and internal documentation for libmspub library.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki libmspub.
%package tools
Summary: Tools to transform Microsoft Publisher content into other formats
Summary(pl.UTF-8): Programy do przekształcania treści z Microsoft Publishera do innych formatów
Group: Applications/Publishing
Requires: %{name} = %{version}-%{release}
%description tools
Tools to transform Microsoft Publisher content into other formats.
Currently supported: XHTML, raw.
%description tools -l pl.UTF-8
Narzędzia do przekształcania treści z Microsoft Publishera do innych
formatów. Aktualnie obsługiwane są XHTML i raw.
%prep
%setup -q
%build
%configure \
--disable-silent-rules \
%{?with_static_libs:--enable-static} \
--disable-werror
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog
%attr(755,root,root) %{_libdir}/libmspub-0.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libmspub-0.0.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libmspub-0.0.so
%{_includedir}/libmspub-0.0
%{_pkgconfigdir}/libmspub-0.0.pc
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libmspub-0.0.a
%endif
%files apidocs
%defattr(644,root,root,755)
%doc %{_docdir}/%{name}
%files tools
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/pub2raw
%attr(755,root,root) %{_bindir}/pub2xhtml