]>
Commit | Line | Data |
---|---|---|
96722fc8 | 1 | %include /usr/lib/rpm/macros.perl |
b30e6110 | 2 | Summary: Simple vector graphics creator (with stdin/out interface) |
4e097a23 | 3 | Summary(pl.UTF-8): Prosty program do grafiki wektorowej (z interfejsem stdin/out) |
b30e6110 | 4 | Name: drawtool |
b30e6110 | 5 | Version: 3.2.2 |
7b810559 | 6 | Release: 6 |
b30e6110 | 7 | License: GPL |
d5a977a3 | 8 | Group: X11/Applications/Graphics |
b30e6110 | 9 | Source0: http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz |
cf75a2e9 | 10 | # Source0-md5: 97ffd36c555d67f58fa50615afc28772 |
b30e6110 | 11 | Patch0: %{name}-makefile.patch |
032d1d30 | 12 | Patch1: %{name}-build.patch |
b30e6110 | 13 | URL: http://www.earth.li/projectpurple/progs/drawtool.html |
b30e6110 | 14 | BuildRequires: gtk+-devel |
3f6f84c8 | 15 | BuildRequires: imlib-devel |
d5a977a3 | 16 | BuildRequires: netpbm-devel |
7b810559 | 17 | BuildRequires: perl-devel >= 1:5.6.1 |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
b30e6110 SZ |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
b30e6110 SZ |
21 | %description |
22 | Drawtool is a simple application that reads in simple vector geometry | |
af8f88bc | 23 | from stdin and displays it in a GTK+ window. Similarly, it will write |
b30e6110 SZ |
24 | data onto stdout as generated by click-drag mouse movements. It can |
25 | output to bitmap files and Postscript. It can be used as a general | |
26 | purpose drawing program, a network whiteboard, a picture viewer or a | |
27 | scrapbook for quickly getting down ideas.... | |
28 | ||
4e097a23 JR |
29 | %description -l pl.UTF-8 |
30 | Drawtool jest prostą aplikacją która wczytuje opis prostej grafiki | |
31 | wektorowej ze standardowego wejścia i wyświetla ją w okienku GTK+. | |
32 | Analogicznie, wypisuje on dane na standardowe wyjście w miarę jak | |
33 | obraz jest generowany za pomocą myszki i użytkownika. Wyjście może też | |
34 | być generowane w formie bitmapy lib Postscriptu. Drawtool może być | |
35 | używany jako wszechstronny program do rysunków, sieciowy "whiteboard", | |
36 | przeglądarka obrazków, notatnik do szybkiego zapisywania pomysłów... | |
b30e6110 SZ |
37 | |
38 | %package perl | |
39 | Summary: Perl extensions for drawtool | |
4e097a23 | 40 | Summary(pl.UTF-8): Perlowe rozszerzenia dla drawtoola |
b30e6110 | 41 | Group: X11/Applications/Graphics |
b30e6110 SZ |
42 | |
43 | %description perl | |
3abf3e33 | 44 | Perl extensions for drawtool: PSDrawtool, SVGDrawtool and perltool. |
b30e6110 | 45 | |
4e097a23 | 46 | %description perl -l pl.UTF-8 |
3abf3e33 | 47 | Perlowe rozszerzenia dla drawtoola: PSDrawtool, SVGDrawtool i |
48 | perltool. | |
b30e6110 SZ |
49 | |
50 | %prep | |
51 | %setup -q | |
52 | %patch0 -p1 | |
032d1d30 | 53 | %patch1 -p1 |
b30e6110 SZ |
54 | |
55 | %build | |
032d1d30 JB |
56 | %{__make} \ |
57 | CC="%{__cc}" \ | |
58 | CFLAGS="%{rpmcflags}" | |
b30e6110 SZ |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
b30e6110 SZ |
62 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT \ | |
66 | MANDIR=%{_mandir}/man1 \ | |
67 | BINDIR=%{_bindir} | |
68 | ||
69 | mv -f logo/utils logo-utils | |
70 | ||
b30e6110 SZ |
71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
032d1d30 | 76 | %doc TODO README CHANGES docs/drawtool.pdf utils logo-utils |
b30e6110 SZ |
77 | %attr(755,root,root) %{_bindir}/logo |
78 | %attr(755,root,root) %{_bindir}/drawtool | |
796907b8 | 79 | %{_mandir}/man*/* |
b30e6110 SZ |
80 | |
81 | %files perl | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) %{_bindir}/*.pl |