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
69 %if "%{_rpmversion}" >= "5"
74 API and internal documentation for libzmf library.
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki libzmf.
80 Summary: Tools to transform Zoner Draw drawings into other formats
81 Summary(pl.UTF-8): Programy przekształcania rysunków Zoner Draw do innych formatów
82 Group: Applications/Publishing
83 Requires: %{name} = %{version}-%{release}
86 Tools to transform Zoner Draw drawings into other formats. Currently
89 %description tools -l pl.UTF-8
90 Narzędzia do przekształcania rysunków Zoner Draw do innych formatów.
91 Aktualnie obsługiwane są SVG i raw.
103 --disable-silent-rules \
104 %{?with_static_libs:--enable-static} \
111 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
115 # obsoleted by pkg-config
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
119 rm -rf $RPM_BUILD_ROOT
121 %post -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog NEWS README
127 %attr(755,root,root) %{_libdir}/libzmf-0.0.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libzmf-0.0.so.0
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libzmf-0.0.so
133 %{_includedir}/libzmf-0.0
134 %{_pkgconfigdir}/libzmf-0.0.pc
136 %if %{with static_libs}
138 %defattr(644,root,root,755)
139 %{_libdir}/libzmf-0.0.a
143 %defattr(644,root,root,755)
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_bindir}/zmf2raw
149 %attr(755,root,root) %{_bindir}/zmf2svg