3 %bcond_without static_libs # static library
5 Summary: A library for reading and converting Zoner Draw and Zebra file formats
6 Summary(pl.UTF-8): Biblioteka do odczytu i importu formatów plików Zoner Draw i Zebra
12 Source0: http://dev-www.libreoffice.org/src/libzmf/%{name}-%{version}.tar.xz
13 # Source0-md5: e4b089f35a85a042ba4da3c143b1dc5a
14 URL: https://wiki.documentfoundation.org/DLP/Libraries/libzmf
15 BuildRequires: boost-devel
16 BuildRequires: cppunit-devel
17 BuildRequires: doxygen
18 BuildRequires: libicu-devel
19 BuildRequires: libpng-devel
20 BuildRequires: librevenge-devel >= 0.0
21 BuildRequires: libstdc++-devel >= 6:4.7
22 BuildRequires: pkgconfig >= 1:0.20
23 BuildRequires: tar >= 1:1.22
25 BuildRequires: zlib-devel
26 Requires: librevenge >= 0.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Libzmf is a library for reading and converting Zoner Draw and Zebra
33 %description -l pl.UTF-8
34 Libzmf to biblioteka do odczytu i importu formatów plików Zoner Draw i
38 Summary: Development files for libzmf
39 Summary(pl.UTF-8): Pliki nagłówkowe dla libzmf
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: librevenge-devel >= 0.0
43 Requires: libstdc++-devel >= 6:4.7
46 This package contains the header files for developing applications
49 %description devel -l pl.UTF-8
50 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
54 Summary: Static libzmf library
55 Summary(pl.UTF-8): Statyczna biblioteka libzmf
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static libzmf library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libzmf.
66 Summary: libzmf API documentation
67 Summary(pl.UTF-8): Dokumentacja API biblioteki libzmf
72 API and internal documentation for libzmf library.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libzmf.
78 Summary: Tools to transform Zoner Draw drawings into other formats
79 Summary(pl.UTF-8): Programy przekształcania rysunków Zoner Draw do innych formatów
80 Group: Applications/Publishing
81 Requires: %{name} = %{version}-%{release}
84 Tools to transform Zoner Draw drawings into other formats. Currently
87 %description tools -l pl.UTF-8
88 Narzędzia do przekształcania rysunków Zoner Draw do innych formatów.
89 Aktualnie obsługiwane są SVG i raw.
101 --disable-silent-rules \
102 %{?with_static_libs:--enable-static} \
109 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
113 # obsoleted by pkg-config
114 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README
125 %attr(755,root,root) %{_libdir}/libzmf-0.0.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libzmf-0.0.so.0
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libzmf-0.0.so
131 %{_includedir}/libzmf-0.0
132 %{_pkgconfigdir}/libzmf-0.0.pc
134 %if %{with static_libs}
136 %defattr(644,root,root,755)
137 %{_libdir}/libzmf-0.0.a
141 %defattr(644,root,root,755)
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/zmf2raw
147 %attr(755,root,root) %{_bindir}/zmf2svg