Release: 8
Copyright: GNU
Group: Applications/Publishing
-Source: ftp://ftp.gnu.org/pub/gnu/enscript-1.6.1.tar.gz
-Patch: enscript-1.6.1-config.patch
+Group(pl): Aplikacje/Publikowanie
+Source0: ftp://ftp.gnu.org/pub/gnu/%{name}-%{version}.tar.gz
+Patch0: enscript-1.6.1-config.patch
URL: http://www.ngs.fi/mtr/genscript/index.html
-BuildRoot: /tmp/%{name}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: nenscript
%description
-Enscript is a print filter. It can take ASCII input
-and format it into PostScript output. At the same time,
-it can also do nice transformations like putting two
-ASCII pages on one physical page (side by side) or
-changing fonts.
+Enscript is a print filter. It can take ASCII input and format it into
+PostScript output. At the same time, it can also do nice
+transformations like putting two ASCII pages on one physical page
+(side by side) or changing fonts.
+
+%description
+Enscript jest filtrem wykorzystywanym przy drukowaniu. Na wej¶ciu
+przyjmuje dane ASCII i konwertuje je na PostScript. Potrafi
+równocze¶nie dokonaæ pewnych u¿ytecznych przekszta³ceñ, jak np.
+umieszczenie dwóch stron ASCII na jednej stronie fizycznej (obok
+siebie) czy zmiana czcionki.
%prep
%setup -q
%patch -p1
%build
-%configure --with-media=A4 --sysconfdir=/etc
-make
+%configure --with-media=A4 --sysconfdir=%{_sysconfdir}
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/* || :
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
ln -s enscript $RPM_BUILD_ROOT%{_bindir}/nenscript
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc {AUTHORS,ChangeLog,NEWS,README,README.ESCAPES,THANKS,TODO}.gz FAQ.html
-%config(noreplace) /etc/enscript.cfg
+%config(noreplace) %{_sysconfdir}/enscript.cfg
%attr(755,root,root) %{_bindir}/diffpp
%attr(755,root,root) %{_bindir}/sliceprint
%attr(755,root,root) %{_bindir}/enscript