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