]>
Commit | Line | Data |
---|---|---|
e15c59e6 | 1 | Summary: The pslib C-library to create PostScript on the fly |
df67e5e4 | 2 | Summary(pl.UTF-8): Biblioteka do generowania w locie plików PostScript |
e15c59e6 | 3 | Name: pslib |
c359ccc7 | 4 | Version: 0.4.5 |
cfc07842 | 5 | Release: 8 |
6c2cf95e | 6 | License: LGPL v2+ |
9c0a9421 | 7 | Group: Libraries |
c359ccc7 ŁK |
8 | Source0: http://downloads.sourceforge.net/pslib/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 03f39393628a6d758799b9f845047e27 | |
97b5c27a | 10 | Patch0: %{name}-giflib.patch |
e15c59e6 | 11 | URL: http://pslib.sourceforge.net/ |
6c2cf95e | 12 | BuildRequires: autoconf >= 2.52 |
b504356f | 13 | BuildRequires: automake |
2fd68bb4 | 14 | BuildRequires: docbook-to-man |
15 | BuildRequires: docbook-utils | |
089d7b63 | 16 | BuildRequires: gettext-tools |
97b5c27a | 17 | BuildRequires: giflib-devel >= 5 |
2fd68bb4 | 18 | BuildRequires: glib2-devel |
19 | BuildRequires: intltool | |
b735096e ER |
20 | BuildRequires: libjpeg-devel |
21 | BuildRequires: libpng-devel | |
22 | BuildRequires: libtiff-devel | |
ddc744e3 | 23 | BuildRequires: libtool |
e15c59e6 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | pslib is a C-library to create PostScript files on the fly. It offers | |
9c0a9421 | 28 | many drawing primitives, inclusion of PNG and EPS images and a very |
e15c59e6 | 29 | sophisticated text rendering including hyphenation, kerning and |
30 | ligatures. It can read external Type1 fonts and embed them into the | |
31 | output file. It supports pdfmarks which makes it in combination with | |
32 | ghostscript's pdfwriter an alternative for libraries creating PDF. | |
33 | ||
8ed6c149 JR |
34 | %description -l pl.UTF-8 |
35 | pslib to biblioteka C do tworzenia w locie plików PostScript. Oferuje | |
36 | rysowanie wielu prymitywów, włączanie obrazów PNG i EPS oraz bardzo | |
37 | wyszukane renderowanie tekstu włącznie z przenoszeniem, kerningiem i | |
38 | ligaturami. Może wczytywać zewnętrzne fonty Type1 i osadzać je w pliku | |
39 | wyjściowym. Obsługuje pdfmarki, co, w połączeniu z pdfwriterem z | |
40 | ghostscripta, czyni ją alternatywą dla bibliotek tworzących PDF. | |
9c0a9421 | 41 | |
e15c59e6 | 42 | %package devel |
43 | Summary: Development files for the pslib C-library to create PostScript | |
df67e5e4 | 44 | Summary(pl.UTF-8): Pliki programistyczne dla biblioteki C pslib tworzącej PostScript |
e15c59e6 | 45 | Group: Development/Libraries |
9c0a9421 | 46 | Requires: %{name} = %{version}-%{release} |
e15c59e6 | 47 | |
48 | %description devel | |
49 | Development files for the pslib C-library to create PostScript files | |
9c0a9421 JB |
50 | on the fly. |
51 | ||
8ed6c149 JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki programistyczne dla biblioteki C pslib tworzącej w locie pliki | |
9c0a9421 | 54 | PostScript. |
e15c59e6 | 55 | |
56 | %package static | |
9c0a9421 | 57 | Summary: Static pslib library |
df67e5e4 | 58 | Summary(pl.UTF-8): Statyczna biblioteka pslib |
e15c59e6 | 59 | Group: Development/Libraries |
9c0a9421 | 60 | Requires: %{name} = %{version}-%{release} |
e15c59e6 | 61 | |
62 | %description static | |
9c0a9421 | 63 | Static pslib library. |
e15c59e6 | 64 | |
8ed6c149 | 65 | %description static -l pl.UTF-8 |
9c0a9421 | 66 | Statyczna biblioteka pslib. |
e15c59e6 | 67 | |
68 | %prep | |
69 | %setup -q | |
97b5c27a | 70 | %patch0 -p1 |
e15c59e6 | 71 | |
72 | %build | |
ddc744e3 | 73 | %{__libtoolize} |
e15c59e6 | 74 | %{__aclocal} |
75 | %{__autoconf} | |
6c2cf95e | 76 | %{__autoheader} |
e15c59e6 | 77 | %{__automake} |
78 | %configure | |
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
9c0a9421 JB |
84 | %{__make} install \ |
85 | DESTDIR=$RPM_BUILD_ROOT | |
e15c59e6 | 86 | |
1c29579a JR |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libps.la |
88 | ||
e15c59e6 | 89 | %find_lang %{name} |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
9c0a9421 JB |
94 | %post -p /sbin/ldconfig |
95 | %postun -p /sbin/ldconfig | |
e15c59e6 | 96 | |
97 | %files -f %{name}.lang | |
98 | %defattr(644,root,root,755) | |
6c2cf95e | 99 | %doc AUTHORS ChangeLog README |
6a64a09b ER |
100 | %attr(755,root,root) %{_libdir}/libps.so.*.*.* |
101 | %attr(755,root,root) %ghost %{_libdir}/libps.so.0 | |
e15c59e6 | 102 | %{_datadir}/%{name} |
103 | ||
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
6a64a09b | 106 | %attr(755,root,root) %{_libdir}/libps.so |
6a64a09b ER |
107 | %{_includedir}/libps |
108 | %{_pkgconfigdir}/libps.pc | |
109 | %{_mandir}/man3/pslib.3* | |
110 | %{_mandir}/man3/PS_*.3* | |
e15c59e6 | 111 | |
112 | %files static | |
113 | %defattr(644,root,root,755) | |
6a64a09b | 114 | %{_libdir}/libps.a |