]> git.pld-linux.org Git - packages/libmspub.git/blob - libmspub.spec
- icu-57.1 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.2
9 Release:        5
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        http://dev-www.libreoffice.org/src/libmspub/%{name}-%{version}.tar.xz
13 # Source0-md5:  050b8b29c2620fdbfb5d8561d4d08a11
14 URL:            http://www.freedesktop.org/wiki/Software/libmspub
15 BuildRequires:  boost-devel
16 BuildRequires:  doxygen
17 BuildRequires:  libicu-devel
18 BuildRequires:  librevenge-devel >= 0.0.1
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  pkgconfig >= 1:0.20
21 BuildRequires:  tar >= 1:1.22
22 BuildRequires:  xz
23 BuildRequires:  zlib-devel
24 Requires:       librevenge >= 0.0.1
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:       libicu-devel
43 Requires:       librevenge-devel >= 0.0.1
44 Requires:       libstdc++-devel
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 %if "%{_rpmversion}" >= "5"
72 BuildArch:      noarch
73 %endif
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
98 %build
99 %configure \
100         --disable-silent-rules \
101         %{?with_static_libs:--enable-static}
102
103 %{__make}
104
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 # obsoleted by pkg-config
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
119
120 %files
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog NEWS README
123 %attr(755,root,root) %{_libdir}/libmspub-0.1.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libmspub-0.1.so.1
125
126 %files devel
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libmspub-0.1.so
129 %{_includedir}/libmspub-0.1
130 %{_pkgconfigdir}/libmspub-0.1.pc
131
132 %if %{with static_libs}
133 %files static
134 %defattr(644,root,root,755)
135 %{_libdir}/libmspub-0.1.a
136 %endif
137
138 %files apidocs
139 %defattr(644,root,root,755)
140 %doc %{_docdir}/%{name}
141
142 %files tools
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/pub2raw
145 %attr(755,root,root) %{_bindir}/pub2xhtml
This page took 0.069541 seconds and 3 git commands to generate.