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: rpm-build >= 4.6
24 BuildRequires: tar >= 1:1.22
26 BuildRequires: zlib-devel
27 Requires: librevenge >= 0.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Libzmf is a library for reading and converting Zoner Draw and Zebra
34 %description -l pl.UTF-8
35 Libzmf to biblioteka do odczytu i importu formatów plików Zoner Draw i
39 Summary: Development files for libzmf
40 Summary(pl.UTF-8): Pliki nagłówkowe dla libzmf
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: librevenge-devel >= 0.0
44 Requires: libstdc++-devel >= 6:4.7
47 This package contains the header files for developing applications
50 %description devel -l pl.UTF-8
51 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
55 Summary: Static libzmf library
56 Summary(pl.UTF-8): Statyczna biblioteka libzmf
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static libzmf library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libzmf.
67 Summary: libzmf API documentation
68 Summary(pl.UTF-8): Dokumentacja API biblioteki libzmf
73 API and internal documentation for libzmf library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki libzmf.
79 Summary: Tools to transform Zoner Draw drawings into other formats
80 Summary(pl.UTF-8): Programy przekształcania rysunków Zoner Draw do innych formatów
81 Group: Applications/Publishing
82 Requires: %{name} = %{version}-%{release}
85 Tools to transform Zoner Draw drawings into other formats. Currently
88 %description tools -l pl.UTF-8
89 Narzędzia do przekształcania rysunków Zoner Draw do innych formatów.
90 Aktualnie obsługiwane są SVG i raw.
102 --disable-silent-rules \
103 %{?with_static_libs:--enable-static} \
110 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 # obsoleted by pkg-config
115 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README
126 %attr(755,root,root) %{_libdir}/libzmf-0.0.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libzmf-0.0.so.0
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libzmf-0.0.so
132 %{_includedir}/libzmf-0.0
133 %{_pkgconfigdir}/libzmf-0.0.pc
135 %if %{with static_libs}
137 %defattr(644,root,root,755)
138 %{_libdir}/libzmf-0.0.a
142 %defattr(644,root,root,755)
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_bindir}/zmf2raw
148 %attr(755,root,root) %{_bindir}/zmf2svg