]> git.pld-linux.org Git - packages/libEMF.git/blob - libEMF.spec
- updated to 1.0.13
[packages/libEMF.git] / libEMF.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        A library for generating Enhanced Metafiles
6 Summary(pl.UTF-8):      Biblioteka do generowania plików w formacie Enhanced Metafile
7 Name:           libEMF
8 Version:        1.0.13
9 Release:        1
10 License:        LGPL v2.1+ (library), GPL v2+ (utility)
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libemf/libemf-%{version}.tar.gz
13 # Source0-md5:  023e2d718e3829d9858647a97ba53eb6
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)
21
22 %description
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.
28
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.
35
36 %package devel
37 Summary:        libEMF header files
38 Summary(pl.UTF-8):      Pliki nagłówkowe libEMF
39 License:        LGPL v2.1+
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       libstdc++-devel
43
44 %description devel
45 libEMF header files.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe libEMF.
49
50 %package static
51 Summary:        libEMF static library
52 Summary(pl.UTF-8):      Statyczna biblioteka libEMF
53 License:        LGPL v2.1+
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 libEMF static library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libEMF.
62
63 %prep
64 %setup -q -n libemf-%{version}
65 %patch0 -p1
66
67 %build
68 %{__libtoolize}
69 %{__aclocal}
70 %{__autoconf}
71 %{__autoheader}
72 %{__automake}
73 %configure \
74         --enable-editing \
75         %{!?with_static_libs:--disable-static}
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
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
97
98 %files devel
99 %defattr(644,root,root,755)
100 %doc doc/html
101 %attr(755,root,root) %{_libdir}/libEMF.so
102 %{_libdir}/libEMF.la
103 %{_includedir}/libEMF
104
105 %if %{with static_libs}
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libEMF.a
109 %endif
This page took 0.078833 seconds and 3 git commands to generate.