]> git.pld-linux.org Git - packages/drawtool.git/blob - drawtool.spec
- release 2,
[packages/drawtool.git] / drawtool.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Simple vector graphics creator (with stdin/out interface)
3 Summary(pl):    Prosty program do grafiki wektorowej (z interfejsem stdin/out)
4 Name:           drawtool
5 Group:          X11/Applications/Graphics
6 Group(de):      X11/Applikationen/Grafik
7 Group(pl):      X11/Aplikacje/Grafika
8 Version:        3.2.2
9 Release:        2
10 License:        GPL
11 Source0:        http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz
12 Patch0:         %{name}-makefile.patch
13 URL:            http://www.earth.li/projectpurple/progs/drawtool.html
14 BuildRequires:  gtk+-devel
15 BuildRequires:  libgr-devel
16 BuildRequires:  perl >= 5.5
17 BuildRequires:  rpm-perlprov >= 3.0.3-16
18 %requires_eq    perl
19 Requires:       %{perl_sitearch}
20
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _prefix         /usr/X11R6
24
25 %description
26 Drawtool is a simple application that reads in simple vector geometry
27 from stdin and displays it in a gtk window. Similarly, it will write
28 data onto stdout as generated by click-drag mouse movements. It can
29 output to bitmap files and Postscript. It can be used as a general
30 purpose drawing program, a network whiteboard, a picture viewer or a
31 scrapbook for quickly getting down ideas....
32
33 %description -l pl
34 Drawtool jest prost± aplikacj± która wczytuje opis prostej grafiki
35 wektorowej ze standardowego wej¶cia i wy¶wietla j± w okienku gtk.
36 Analogicznie, wypisuje on dane na standardowe wyj¶cie w miarê jak
37 obraz jest generowany za pomoc± myszki i u¿ytkownika. Wyj¶cie mo¿e te¿
38 byæ generowane w formie bitmapy lib Postscriptu. Drawtool mo¿e byæ
39 u¿ywany jako wszechstronny program do rysunków, sieciowy "whiteboard",
40 przegl±darka obrazków, notatnik do szybkiego zapisywania pomys³ów...
41
42 %package perl
43 Summary:        Perl extensions for drawtool
44 Summary(pl):    Perlowe rozszerzenia dla drawtoola
45 Group:          X11/Applications/Graphics
46 Group(de):      X11/Applikationen/Grafik
47 Group(pl):      X11/Aplikacje/Grafika
48
49 %description perl
50 Perl extensions for drawtool: PSDrawtool, SVGDrawtool and
51 perltool%prep
52
53 %description perl -l pl
54 Perlowe rozszerzenia dla drawtoola: PSDrawtool, SVGDrawtool i perltool
55
56 %prep
57 %setup -q
58 %patch0 -p1
59
60 %build
61 %{__make} CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g}" 
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT \
70         MANDIR=%{_mandir}/man1 \
71         BINDIR=%{_bindir}
72
73 mv -f logo/utils logo-utils
74
75 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
76         TODO README CHANGES 
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc docs/drawtool.pdf
84 %doc *.gz
85 %doc utils logo-utils
86 %attr(755,root,root) %{_bindir}/logo
87 %attr(755,root,root) %{_bindir}/drawtool
88 %{_mandir}/man*/*
89
90 %files perl
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/*.pl
This page took 0.132181 seconds and 3 git commands to generate.