3 %bcond_without static_libs # don't build static libraries
5 Summary: Library for parsing the FreeHand file format structure
6 Summary(pl.UTF-8): Biblioteka do analizy struktury formatu plików FreeHand
12 Source0: http://dev-www.libreoffice.org/src/libfreehand/%{name}-%{version}.tar.xz
13 # Source0-md5: c3788f5686839fd097bd77d8f51c3d04
15 URL: http://www.freedesktop.org/wiki/Software/libfreehand/
16 BuildRequires: boost-devel
17 BuildRequires: doxygen
18 BuildRequires: gperf >= 3.0.0
19 BuildRequires: lcms2-devel >= 2
20 BuildRequires: libicu-devel
21 BuildRequires: librevenge-devel >= 0.0
22 BuildRequires: libstdc++-devel >= 6:4.7
23 BuildRequires: perl-base
24 BuildRequires: pkgconfig >= 1:0.20
25 BuildRequires: tar >= 1:1.22
27 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Libfreehand is library providing ability to interpret and import
32 Adobe/Macromedia drawings into various applications.
34 %description -l pl.UTF-8
35 Libfreehand to biblioteka umożliwiająca interpretowanie i import do
36 różnych aplikacji rysunków w formacie Adobe/Macromedia.
39 Summary: Header files for libfreehand library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfreehand
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: librevenge-devel >= 0.0
44 Requires: libstdc++-devel >= 6:4.7
48 Header files for libfreehand library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki libfreehand.
54 Summary: Static libfreehand library
55 Summary(pl.UTF-8): Statyczna biblioteka libfreehand
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static libfreehand library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libfreehand.
66 Summary: libfreehand API documentation
67 Summary(pl.UTF-8): Dokumentacja API biblioteki libfreehand
72 API documentation for libfreehand library.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libfreehand.
78 Summary: Tools to transform FreeHand drawings into other formats
79 Summary(pl.UTF-8): Programy przekształcania rysunków FreeHand do innych formatów
80 Group: Applications/Publishing
81 Requires: %{name} = %{version}-%{release}
84 Tools to transform FreeHand drawings into other formats. Currently
87 %description tools -l pl.UTF-8
88 Narzędzia do przekształcania rysunków FreeHand do innych formatów.
89 Aktualnie obsługiwane są SVG i format surowy.
97 --disable-silent-rules \
98 %{?with_static_libs:--enable-static} \
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
108 # obsoleted by pkg-config
109 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreehand-*.la
110 # packaged as %doc in -apidocs
111 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libfreehand
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog NEWS
122 %attr(755,root,root) %{_libdir}/libfreehand-0.1.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libfreehand-0.1.so.1
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libfreehand-0.1.so
128 %{_includedir}/libfreehand-0.1
129 %{_pkgconfigdir}/libfreehand-0.1.pc
131 %if %{with static_libs}
133 %defattr(644,root,root,755)
134 %{_libdir}/libfreehand-0.1.a
138 %defattr(644,root,root,755)
139 %doc docs/doxygen/html/*
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_bindir}/fh2raw
144 %attr(755,root,root) %{_bindir}/fh2svg
145 %attr(755,root,root) %{_bindir}/fh2text