]>
Commit | Line | Data |
---|---|---|
9a1fc300 MB |
1 | Summary: A library for rendering PostScript documents |
2 | Name: libspectre | |
9f96454f | 3 | Version: 0.2.3 |
9a1fc300 MB |
4 | Release: 1 |
5 | License: GPL v2+ | |
6 | Group: Libraries | |
7 | Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
9f96454f | 8 | # Source0-md5: 9c5867e970d1bad5f80809bfdb4306c1 |
9a1fc300 MB |
9 | URL: http://libspectre.freedesktop.org/ |
10 | BuildRequires: autoconf >= 2.59 | |
11 | BuildRequires: automake >= 1:1.7 | |
9f96454f | 12 | BuildRequires: ghostscript-devel >= 8.62 |
9a1fc300 MB |
13 | BuildRequires: libtool |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Small library for rendering PostScript documents. It provides a | |
18 | convenient easy to use API for handling and rendering PostScript | |
19 | documents. | |
20 | ||
21 | %package devel | |
22 | Summary: Header files for libspectre library | |
23 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libspectre | |
24 | Group: Development/Libraries | |
25 | Requires: %{name} = %{version}-%{release} | |
2ea6d209 | 26 | Requires: ghostscript-devel >= 8.61-2 |
9a1fc300 MB |
27 | |
28 | %description devel | |
29 | Header files for libspectre library. | |
30 | ||
31 | %description devel -l pl.UTF-8 | |
32 | Pliki nagłówkowe biblioteki libspectre. | |
33 | ||
34 | %package static | |
35 | Summary: Static libspectre library | |
36 | Summary(pl.UTF-8): Statyczna biblioteka libspectre | |
37 | Group: Development/Libraries | |
38 | Requires: %{name}-devel = %{version}-%{release} | |
39 | ||
40 | %description static | |
41 | Static libspectre library. | |
42 | ||
43 | %description static -l pl.UTF-8 | |
44 | Statyczna biblioteka libspectre. | |
45 | ||
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | %build | |
50 | %{__libtoolize} | |
51 | %{__aclocal} | |
52 | %{__autoconf} | |
53 | %{__autoheader} | |
54 | %{__automake} | |
55 | %configure \ | |
56 | --disable-test | |
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %post -p /sbin/ldconfig | |
69 | %postun -p /sbin/ldconfig | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc AUTHORS ChangeLog NEWS README TODO | |
74 | %attr(755,root,root) %{_libdir}/libspectre.so.*.*.* | |
75 | %attr(755,root,root) %ghost %{_libdir}/libspectre.so.1 | |
76 | ||
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %attr(755,root,root) %{_libdir}/libspectre.so | |
80 | %{_libdir}/libspectre.la | |
81 | %{_includedir}/libspectre | |
82 | %{_pkgconfigdir}/libspectre.pc | |
83 | ||
84 | %files static | |
85 | %defattr(644,root,root,755) | |
86 | %{_libdir}/libspectre.a |