3 %bcond_without static_libs # don't build static library
5 Summary: A library for generating Enhanced Metafiles
6 Summary(pl.UTF-8): Biblioteka do generowania plików w formacie Enhanced Metafile
10 License: LGPL v2.1+ (library), GPL v2+ (utility)
12 Source0: http://downloads.sourceforge.net/libemf/libemf-%{version}.tar.gz
13 # Source0-md5: 1c37b426ba0556189ad92d6f375df95c
14 Patch0: %{name}-am.patch
15 URL: http://libemf.sourceforge.net/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 BuildRequires: libstdc++-devel >= 5:3.0
19 BuildRequires: libtool >= 2:2
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 libEMF is a library for generating Enhanced Metafiles on systems which
24 don't natively support the ECMA-234 Graphics Device Interface
25 (GDI). The library is intended to be used as a driver for other
26 graphics programs such as Grace or gnuplot. Therefore, it implements a
27 very limited subset of the GDI.
29 %description -l pl.UTF-8
30 libEMF to biblioteka do generowania plików w formacie Enhanced
31 Metafile na systemach nie obsługujących natywnie systemu graficznego
32 ECMA-234 GDI. Biblioteka ma służyć jako sterownik dla innych programów
33 graficznych, takich jak Grace czy gnuplot. Z tego powodu ma
34 zaimplementowany bardzo ograniczony podzbiór GDI.
37 Summary: libEMF header files
38 Summary(pl.UTF-8): Pliki nagłówkowe libEMF
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libstdc++-devel
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe libEMF.
51 Summary: libEMF static library
52 Summary(pl.UTF-8): Statyczna biblioteka libEMF
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 libEMF static library.
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libEMF.
64 %setup -q -n libemf-%{version}
75 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %doc AUTHORS ChangeLog NEWS README
94 %attr(755,root,root) %{_bindir}/printemf
95 %attr(755,root,root) %{_libdir}/libEMF.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libEMF.so.1
99 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libEMF.so
103 %{_includedir}/libEMF
105 %if %{with static_libs}
107 %defattr(644,root,root,755)