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