Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > c717a7b8f7f4baaabccace413afaac0f > files > 3

ddccontrol-0.4.1-2mdv2007.0.src.rpm

%define name ddccontrol
%define version 0.4.1
%define release %mkrel 2
%define dbversion 20060308
%define ddcdb	%{name}-db-%{dbversion}

%define major 0
%define libname %mklibname %{name} %major
%define libnamedev %mklibname %{name} %major -d
%define __libtoolize true

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
BuildRequires: libxml2-devel
BuildRequires: perl(XML::Parser)
BuildRequires: gtk+-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.

%package -n %{libname}
Summary: Libddccontrol library 
Group: Development/Other
Provides: lib%{name} = %{version}

%description -n %{libname}
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.


%package -n %{libnamedev}
Summary: Libddccontrol library headers and development libraries
Group: Development/Other
Requires: %{libname} = %{version}
Provides: lib%{name}-devel = %{version}
Provides: libddccontrol-devel

%description -n %{libnamedev}
libddccontrol devel files


%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

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/ddccontrol
%{_bindir}/ddcpci
%{_bindir}/gddccontrol
%{_datadir}/locale/*/*/*
%{_datadir}/ddccontrol-db/*
%{_datadir}/%name
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_libdir}/bonobo/servers/*
%{_libdir}/%name

%files -n %libname
%defattr(-,root,root)
%_libdir/*.so.*

%files -n %libnamedev
%defattr(-,root,root)
%_libdir/*.so
%_libdir/*.*a
%{_includedir}/%name

%changelog
* Wed Aug 02 2006 Frederic Crozat <fcrozat@mandriva.com> 0.4.1-2mdv2007.0
- Rebuild with latest dbus

* Fri Jun 09 2006 Erwan Velu <erwan@seanodes.com> 0.4.1
- 0.4.1

* Wed Apr 26 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.3-3mdk
- Fix BuildRequires

* Tue Apr 25 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.3-2mdk
- Fix BuildRequires
- use mkrel

* Wed Nov 16 2005 Lenny Cartier <lenny@mandriva.com> 0.3-1mdk
- 0.3
- newest ddb 20051114

* 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