--- /dev/null
+%include /usr/lib/rpm/macros.perl
+Summary: Simple vector graphics creator (with stdin/out interface)
+Summary(pl): Prosty program do grafiki wektorowej (z interfejsem stdin/out)
+Name: drawtool
+Group: X11/Applications/Graphics
+Group(pl): X11/Aplikacje/Grafika
+Version: 3.2.2
+Release: 1
+License: GPL
+Source0: http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz
+Patch0: %{name}-makefile.patch
+URL: http://www.earth.li/projectpurple/progs/drawtool.html
+BuildRequires: rpm-perlprov >= 3.0.3-16
+BuildRequires: libgr-devel
+BuildRequires: gtk+-devel
+%requires_eq perl
+Requires: %{perl_sitearch}
+
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+
+%description
+Drawtool is a simple application that reads in simple vector geometry
+from stdin and displays it in a gtk window. Similarly, it will write
+data onto stdout as generated by click-drag mouse movements. It can
+output to bitmap files and Postscript. It can be used as a general
+purpose drawing program, a network whiteboard, a picture viewer or a
+scrapbook for quickly getting down ideas....
+
+%description -l pl
+Drawtool jest prost± aplikacj± która wczytuje opis prostej grafiki
+wektorowej ze standardowego wej¶cia i wy¶wietla j± w okienku gtk.
+Analogicznie, wypisuje on dane na standardowe wyj¶cie w miarê jak
+obraz jest generowany za pomoc± myszki i u¿ytkownika. Wyj¶cie mo¿e te¿
+byæ generowane w formie bitmapy lib Postscriptu. Drawtool mo¿e byæ
+u¿ywany jako wszechstronny program do rysunków, sieciowy "whiteboard",
+przegl±darka obrazków, notatnik do szybkiego zapisywania pomys³ów...
+
+%package perl
+Summary: Perl extensions for drawtool
+Summary(pl): Perlowe rozszerzenia dla drawtoola
+Group: X11/Applications/Graphics
+Group(pl): X11/Aplikacje/Grafika
+
+%description perl
+Perl extensions for drawtool: PSDrawtool, SVGDrawtool and perltool%prep
+
+%description perl -l pl
+Perlowe rozszerzenia dla drawtoola: PSDrawtool, SVGDrawtool i perltool
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ MANDIR=%{_mandir}/man1 \
+ BINDIR=%{_bindir}
+
+mv -f logo/utils logo-utils
+
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
+ TODO README CHANGES
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc docs/drawtool.pdf
+%doc *.gz
+%doc utils logo-utils
+%attr(755,root,root) %{_bindir}/logo
+%attr(755,root,root) %{_bindir}/drawtool
+%{_mandir}/man*/*.gz
+
+%files perl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*.pl