]> git.pld-linux.org Git - packages/libmspub.git/blob - libmspub.spec
- updated to 0.1.1
[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.1
9 Release:        1
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        http://dev-www.libreoffice.org/src/libmspub/%{name}-%{version}.tar.xz
13 # Source0-md5:  a86d607bc02eb8dd15ea88b3936b2080
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
19 BuildRequires:  libstdc++-devel
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:       libicu-devel
42 Requires:       librevenge-devel >= 0.0
43 Requires:       libstdc++-devel
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:--enable-static}
98
99 %{__make}
100
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 # obsoleted by pkg-config
108 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS README
119 %attr(755,root,root) %{_libdir}/libmspub-0.1.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libmspub-0.1.so.1
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libmspub-0.1.so
125 %{_includedir}/libmspub-0.1
126 %{_pkgconfigdir}/libmspub-0.1.pc
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libmspub-0.1.a
132 %endif
133
134 %files apidocs
135 %defattr(644,root,root,755)
136 %doc %{_docdir}/%{name}
137
138 %files tools
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_bindir}/pub2raw
141 %attr(755,root,root) %{_bindir}/pub2xhtml
This page took 0.065812 seconds and 4 git commands to generate.