%define name ddccontrol %define version 0.1.3 %define release 1mdk %define dbversion 20050715 %define ddcdb %{name}-db-%{dbversion} Summary: ddccontrol control the monitor parameters Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.bz2 Source1: %{ddcdb}.tar.bz2 License: GPL Group: System/Kernel and hardware Url: http://ddccontrol.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: pciutils-devel, libxml2-devel %description DDCcontrol is a program running on Linux, used to control monitor parameters, like brightness and contrast, by software, i.e. without using the OSD and the buttons in front of the monitor. %prep %setup -q -a 1 %build %configure %make cd %{ddcdb} %configure --prefix=%{_prefix}/%{name} %make %install rm -rf $RPM_BUILD_ROOT %makeinstall cd %{ddcdb} make install DESTDIR=$RPM_BUILD_ROOT chmod 755 $RPM_BUILD_ROOT/%{_bindir}/ddcpci %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/ddccontrol %{_bindir}/ddcpci %{_bindir}/gddccontrol %{_datadir}/locale/*/*/* %{_datadir}/ddccontrol-db/* %changelog * Fri Jul 22 2005 Erwan Velu <erwan@seanodes.com> 0.1.3-1mdk - 0.1.3 & newest ddb (20050715) * Fri Jun 09 2005 Erwan Velu <erwan@seanodes.com> 0.1.2-1mdk - Inital release