Summary: X.org video driver for Alliance ProMotion video adapters
-Summary(pl): Sterownik obrazu X.org do kart graficznych Alliance ProMotion
+Summary(pl.UTF-8): Sterownik obrazu X.org do kart graficznych Alliance ProMotion
Name: xorg-driver-video-apm
-Version: 1.0.1.3
-Release: 0.1
+Version: 1.3.0
+Release: 2
License: MIT
Group: X11/Applications
-Source0: http://xorg.freedesktop.org/releases/X11R7.0-RC3/driver/xf86-video-apm-%{version}.tar.bz2
-# Source0-md5: 50843ecd9f3e51a02156c6d5fd21a7d1
-URL: http://xorg.freedesktop.org/
-BuildRequires: autoconf >= 2.57
+Source0: https://xorg.freedesktop.org/releases/individual/driver/xf86-video-apm-%{version}.tar.bz2
+# Source0-md5: 6f59f323c6d3fe7217a8728f17c137a6
+URL: https://xorg.freedesktop.org/
+BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig >= 1:0.19
-# temporary
-BuildRequires: sed >= 4.0
+BuildRequires: rpmbuild(macros) >= 1.389
+BuildRequires: xorg-lib-libpciaccess-devel >= 0.8.0
BuildRequires: xorg-proto-fontsproto-devel
BuildRequires: xorg-proto-randrproto-devel
BuildRequires: xorg-proto-renderproto-devel
BuildRequires: xorg-proto-videoproto-devel
-BuildRequires: xorg-proto-xextproto-devel
-BuildRequires: xorg-proto-xf86rushproto-devel
-BuildRequires: xorg-util-util-macros >= 0.99.2
-BuildRequires: xorg-xserver-server-devel >= 0.99.3
+BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
+BuildRequires: xorg-util-util-macros >= 1.8
+BuildRequires: xorg-xserver-server-devel >= 1.0.99.901
+%{?requires_xorg_xserver_videodrv}
+Requires: xorg-xserver-server >= 1.0.99.901
+Provides: xorg-driver-video
+Obsoletes: X11-driver-apm < 1:7.0.0
+Obsoletes: XFree86-Alliance
+Obsoletes: XFree86-driver-apm < 1:7.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
PCI and ISA video cards based on the following chipsets: ProMotion
6420, ProMotion 6422, AT24, AT3D, AT25.
-%description -l pl
+%description -l pl.UTF-8
Sterownik obrazu X.org do kart graficznych Alliance ProMotion.
-Obs³uguje karty PCI i ISA oparte na nastêpuj±cych uk³adach: ProMotion
+Obsługuje karty PCI i ISA oparte na następujących układach: ProMotion
6420, ProMotion 6422, AT24, AT3D, AT25.
%prep
%setup -q -n xf86-video-apm-%{version}
-# wrong test
-sed -i -e 's/xxf86rush/xf86rushproto/' configure.ac
-
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure \
- --disable-static
+%configure
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/*/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/*/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog README
+%doc COPYING ChangeLog README
%attr(755,root,root) %{_libdir}/xorg/modules/drivers/apm_drv.so
%{_mandir}/man4/apm.4*