-Summary: beforelight application
-Summary(pl): Aplikacja beforelight
+Summary: beforelight application - screen saver
+Summary(pl.UTF-8): Aplikacja beforelight - wygaszacz ekranu
Name: xorg-app-beforelight
-Version: 0.99.2
-Release: 0.1
+Version: 1.0.6
+Release: 1
License: MIT
Group: X11/Applications
-Source0: http://xorg.freedesktop.org/releases/X11R7.0-RC2/app/beforelight-%{version}.tar.bz2
-# Source0-md5: 69576dd262676c05665bf095c03e0b88
-URL: http://xorg.freedesktop.org/
-BuildRequires: autoconf >= 2.57
+Source0: https://xorg.freedesktop.org/releases/individual/app/beforelight-%{version}.tar.xz
+# Source0-md5: e4b258519a76ecf9943db585eee4e264
+URL: https://xorg.freedesktop.org/
+BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: pkgconfig >= 1:0.19
+BuildRequires: tar >= 1:1.22
+BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXScrnSaver-devel
-BuildRequires: xorg-lib-libXaw-devel
-BuildRequires: xorg-util-util-macros >= 0.99.1
+BuildRequires: xorg-lib-libXt-devel >= 1.0.0
+BuildRequires: xorg-util-util-macros >= 1.8
+BuildRequires: xz
+Requires: xorg-lib-libXt >= 1.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-beforelight application.
+The beforelight program is a sample implementation of a screen saver
+for X servers supporting the MIT-SCREEN-SAVER extension.
-%description -l pl
-Aplikacja beforelight.
+%description -l pl.UTF-8
+Program beforelight to prosta implementacja wygaszacza ekranu dla
+serwerów X obsługujących rozszerzenie MIT-SCREEN-SAVER.
%prep
%setup -q -n beforelight-%{version}
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- appmandir=%{_mandir}/man1
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog
+%doc COPYING ChangeLog README.md
%attr(755,root,root) %{_bindir}/beforelight
-%{_libdir}/X11/app-defaults/Beforelight
-%{_mandir}/man1/*.1x*
+%{_datadir}/X11/app-defaults/Beforelight
+%{_mandir}/man1/beforelight.1*