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