]> git.pld-linux.org Git - packages/libmspub.git/blob - libmspub.spec
- updated to 0.0.5
[packages/libmspub.git] / libmspub.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        A library providing ability to interpret and import Microsoft Publisher content
6 Summary(pl.UTF-8):      Biblioteka umożliwiająca interpretowanie i importowanie treści z Microsoft Publishera
7 Name:           libmspub
8 Version:        0.0.5
9 Release:        1
10 License:        GPL v2+ or LGPL v2+ or MPL v1.1
11 Group:          Libraries
12 Source0:        http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
13 # Source0-md5:  8956e7651f3d12f6d419201a6366da97
14 URL:            http://www.freedesktop.org/wiki/Software/libmspub
15 BuildRequires:  boost-devel
16 BuildRequires:  doxygen
17 BuildRequires:  libicu-devel
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libwpd-devel >= 0.9
20 BuildRequires:  libwpg-devel >= 0.2
21 BuildRequires:  pkgconfig >= 1:0.20
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xz
24 BuildRequires:  zlib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Libmspub is library providing ability to interpret and import
29 Microsoft Publisher content into various applications. You can find it
30 being used in libreoffice.
31
32 %description -l pl.UTF-8
33 Libmspub to biblioteka umożliwiająca interpretowanie i importowanie
34 treści z Microsoft Publishera do wielu aplikacji. Jest wykorzystywana
35 przez libreoffice.
36
37 %package devel
38 Summary:        Development files for libmspub
39 Summary(pl.UTF-8):      Pliki nagłówkowe dla libmspub
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       libstdc++-devel
43 Requires:       libwpd-devel >= 0.9
44 Requires:       libwpg-devel >= 0.2
45 Requires:       zlib-devel
46
47 %description devel
48 This package contains the header files for developing applications
49 that use libmspub.
50
51 %description devel -l pl.UTF-8
52 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
53 libmspub.
54
55 %package static
56 Summary:        Static libmspub library
57 Summary(pl.UTF-8):      Statyczna biblioteka libmspub
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static libmspub library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka libmspub.
66
67 %package apidocs
68 Summary:        libmspub API documentation
69 Summary(pl.UTF-8):      Dokumentacja API biblioteki libmspub
70 Group:          Documentation
71
72 %description apidocs
73 API and internal documentation for libmspub library.
74
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki libmspub.
77
78 %package tools
79 Summary:        Tools to transform Microsoft Publisher content into other formats
80 Summary(pl.UTF-8):      Programy do przekształcania treści z Microsoft Publishera do innych formatów
81 Group:          Applications/Publishing
82 Requires:       %{name} = %{version}-%{release}
83
84 %description tools
85 Tools to transform Microsoft Publisher content into other formats.
86 Currently supported: XHTML, raw.
87
88 %description tools -l pl.UTF-8
89 Narzędzia do przekształcania treści z Microsoft Publishera do innych
90 formatów. Aktualnie obsługiwane są XHTML i raw.
91
92 %prep
93 %setup -q
94
95 %build
96 %configure \
97         --disable-silent-rules \
98         %{!?with_static_libs:--disable-static} \
99         --disable-werror
100
101 %{__make}
102
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 # obsoleted by pkg-config
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %files
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog
121 %attr(755,root,root) %{_libdir}/libmspub-0.0.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libmspub-0.0.so.0
123
124 %files devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/libmspub-0.0.so
127 %{_includedir}/libmspub-0.0
128 %{_pkgconfigdir}/libmspub-0.0.pc
129
130 %if %{with static_libs}
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libmspub-0.0.a
134 %endif
135
136 %files apidocs
137 %defattr(644,root,root,755)
138 %doc %{_docdir}/%{name}
139
140 %files tools
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/pub2raw
143 %attr(755,root,root) %{_bindir}/pub2xhtml
This page took 0.068761 seconds and 4 git commands to generate.