-Summary: xpr application
-Summary(pl): Aplikacja xpr
+Summary: xpr applications - printing X window
+Summary(pl.UTF-8): Aplikacje xpr - drukowanie okienek X
Name: xorg-app-xpr
-Version: 0.99.0
-Release: 0.02
+Version: 1.2.0
+Release: 1
License: MIT
-Group: X11/Application
-Source0: http://xorg.freedesktop.org/X11R7.0-RC0/app/xpr-%{version}.tar.bz2
-# Source0-md5: be1e2a72a0c78b2d282fd63fb60ec509
-Patch0: xpr-man.patch
-URL: http://xorg.freedesktop.org/
-BuildRequires: autoconf
+Group: X11/Applications
+Source0: https://xorg.freedesktop.org/releases/individual/app/xpr-%{version}.tar.xz
+# Source0-md5: ab6c9d17eb1940afcfb80a72319270ae
+URL: https://xorg.freedesktop.org/
+BuildRequires: autoconf >= 2.60
BuildRequires: automake
-BuildRequires: pkgconfig >= 0.19
+BuildRequires: pkgconfig >= 1:0.19
+BuildRequires: tar >= 1:1.22
+BuildRequires: xorg-lib-libX11-devel
+# just xmuu
BuildRequires: xorg-lib-libXmu-devel
-BuildRequires: xorg-util-util-macros
+BuildRequires: xorg-proto-xproto-devel >= 7.0.25
+BuildRequires: xorg-util-util-macros >= 1.8
+BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-xpr application.
+xpr takes as input a window dump file produced by xwd and formats it
+for output on PostScript printers, the Digital LN03 or LA100, the IBM
+PP3812 page printer, the HP LaserJet (or other PCL printers), or the
+HP PaintJet.
-%description -l pl
-Aplikacja xpr.
+xdpr uses the commands xwd, xpr, and lpr or lp to dump an X window,
+process it for a particular printer type, and print it out on the
+printer of your choice.
+
+%description -l pl.UTF-8
+xpr przyjmuje na wejściu plik zrzutu okna utworzony przez xwd i
+formatuje go do wydruku na drukarkach postscriptowych, Digital LN03
+lub LA100, drukarce stronnicowej IBM PP3812, HP LaserJet (albo innych
+drukarkach PCL) lub HP PaintJet.
+
+xdpr używa poleceń xwd, xpr i lpr lub lp do wykonania zrzutu okienka
+X, przetworzenia go dla danego typu drukarki i wydrukowania go na
+wybranej drukarce.
%prep
%setup -q -n xpr-%{version}
-%patch0 -p1
%build
%{__aclocal}
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*.1*
+%doc COPYING ChangeLog README.md
+%attr(755,root,root) %{_bindir}/xdpr
+%attr(755,root,root) %{_bindir}/xpr
+%{_mandir}/man1/xdpr.1*
+%{_mandir}/man1/xpr.1*