Summary: Gets various useful informations from a conforming PnP monitor
Summary(pl.UTF-8): Pobieranie różnych przydatnych informacji z monitora zgodnego z PnP
Name: read-edid
-Version: 2.0.0
+Version: 3.0.0
Release: 1
License: GPL v2
Group: Applications/System
Source0: http://polypux.org/projects/read-edid/%{name}-%{version}.tar.gz
-# Source0-md5: 586e7fa1167773b27f4e505edc93274b
+# Source0-md5: 2ac6821cb3ef2eb7f62583f49f0867e0
URL: http://polypux.org/projects/read-edid/
+BuildRequires: cmake >= 2.6
BuildRequires: libx86-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
parse-edid analizuje tę strukturę danych i wypisuje dane nadające się
do wstawienia do pliku konfiguracyjnego XFree86 lub X.org.
-get-edit używa specyficznych dla architektury metod odpytywania karty
+get-edid używa specyficznych dla architektury metod odpytywania karty
graficznej (instrukcji w trybie rzeczywistym x86 na i386, analizy
drzewa urządzeń OpenFirmware na PowerMacu), więc jest dostępne tylko
dla architektur i386 i powerpc.
%setup -q
%build
-%configure
+%cmake .
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# bleh... broken cmakefiles
+%{__mv} $RPM_BUILD_ROOT%{_prefix}/{bin,sbin}
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+%{__mv} $RPM_BUILD_ROOT%{_prefix}/man/get-edid.man $RPM_BUILD_ROOT%{_mandir}/man1/get-edid.1
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_sbindir}/parse-edid
%attr(755,root,root) %{_sbindir}/get-edid
-%{_mandir}/man1/*-edid.1*
+%attr(755,root,root) %{_sbindir}/parse-edid
+%{_mandir}/man1/get-edid.1*