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