3 %bcond_without static_libs # static library
5 Summary: Library for importing and converting PageMaker documents
6 Summary(pl.UTF-8): Biblioteka do importowania i konwersji dokumentów PageMakera
12 Source0: http://dev-www.libreoffice.org/src/libpagemaker/%{name}-%{version}.tar.xz
13 # Source0-md5: 45e2ca30ce6a089fe0fec4badd636632
14 URL: https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker
15 BuildRequires: boost-devel
16 BuildRequires: doxygen
17 BuildRequires: gperf >= 3.0.0
18 BuildRequires: librevenge-devel >= 0.0
19 BuildRequires: libstdc++-devel
20 BuildRequires: libxml2-devel >= 2.0
21 BuildRequires: pkgconfig >= 1:0.20
22 BuildRequires: tar >= 1:1.22
24 BuildRequires: zlib-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 libpagemaker is a library for importing and converting of PageMaker
31 %description -l pl.UTF-8
32 libpagemaker to biblioteka do importowaniai konwersji dokumentów
36 Summary: Development files for libpagemaker
37 Summary(pl.UTF-8): Pliki programistyczne biblioteki libpagemaker
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: librevenge-devel >= 0.0
41 Requires: libstdc++-devel
42 Requires: libxml2-devel >= 2.0
46 This package contains the header files for developing applications
47 that use libpagemaker.
49 %description devel -l pl.UTF-8
50 Ten pakiet zawiera biblioteki i pliki nagłówkowe do tworzenia
51 aplikacji wykorzystujących bibliotekę libpagemaker.
54 Summary: Static libpagemaker library
55 Summary(pl.UTF-8): Statyczna biblioteka libpagemaker
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static libpagemaker library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libpagemaker.
66 Summary: API documentation for libpagemaker library
67 Summary(pl.UTF-8): Dokumentacja API biblioteki libpagemaker
71 API documentation for libpagemaker library.
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki libpagemaker.
77 Summary: Tools to transform PageMaker files into other formats
78 Summary(pl.UTF-8): Narzędzia do przekształcania plików PageMakera do innych formatów
79 Group: Applications/Publishing
80 Requires: %{name} = %{version}-%{release}
83 Tools to transform PageMaker files into other formats. Currently
86 %description tools -l pl.UTF-8
87 Narzędzia do przekształcania plików PageMakera do innych formatów.
88 Obecnie obsługiwane są: SVG i surowy.
95 --disable-silent-rules \
96 %{?with_static_libs:--enable-static}
101 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
107 # we install API docs directly from build
108 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS NOTES
119 %attr(755,root,root) %{_libdir}/libpagemaker-0.0.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libpagemaker-0.0.so.0
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libpagemaker-0.0.so
125 %{_includedir}/libpagemaker-0.0
126 %{_pkgconfigdir}/libpagemaker-0.0.pc
128 %if %{with static_libs}
130 %defattr(644,root,root,755)
131 %{_libdir}/libpagemaker-0.0.a
135 %defattr(644,root,root,755)
136 %doc docs/doxygen/html/*
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_bindir}/pmd2raw
141 %attr(755,root,root) %{_bindir}/pmd2svg