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