%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(de): X11/Applikationen/Grafik Group(pl): X11/Aplikacje/Grafika Version: 3.2.2 Release: 2 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: gtk+-devel BuildRequires: libgr-devel BuildRequires: perl >= 5.5 BuildRequires: rpm-perlprov >= 3.0.3-16 %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(de): X11/Applikationen/Grafik 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="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g}" %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*/* %files perl %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/*.pl