Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37569883
en ru br
ALT Linux repos
S:0.6.0-alt1.20211005git8be298f
5.0: 0.4.2-alt4.3
4.1: 0.4.2-alt5.M41.1
4.0: 0.4.2-alt2
3.0: 0.2-alt1

Other repositories
Upstream:0.4.2

Group :: System/Configuration/Hardware
RPM: ddccontrol

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable static

Name: ddccontrol
Version: 0.4.2
Release: alt4.3

%define dbreleasedate 20061014

Summary: Control your monitor by software using the DDC/CI protocol
License: GPLv2+
Group: System/Configuration/Hardware

URL: http://ddccontrol.sourceforge.net/
Source0: http://dl.sf.net/ddccontrol/ddccontrol-%version.tar.bz2
Source1: http://dl.sf.net/ddccontrol/ddccontrol-db-%dbreleasedate.tar.bz2
Patch: ddccontrol-0.3-fixasneeded.patch
Packager: Victor Forsyuk <force at altlinux.org>

# Automatically added by buildreq on Fri Mar 28 2008

BuildRequires: gcc-c++ imake libXt-devel libgnome-panel-devel libpci-devel perl-XML-Parser xorg-cf-files

Requires: lib%{name} = %version-%release

%description
DDCcontrol is a program used to control monitor parameters, like brightness
and contrast, by software, i.e. without using the OSD (On Screen Display)
and the buttons in front of the monitor.

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

%description -n lib%{name}
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 lib%{name}-devel
Summary: Libddccontrol library headers and development libraries
Group: Development/Other
Requires: lib%{name} = %version-%release

%description -n lib%{name}-devel
libddccontrol devel files

%package applet
Summary: GNOME applet for ddccontrol
Group: Graphical desktop/GNOME
Requires: %name = %version-%release

%description applet
GNOME applet for ddccontrol.

%prep
%setup -a 1
%patch -p1

%build
pushd ddccontrol-db-%dbreleasedate
%configure
popd

# QnD :) hack to satisfy dumb "Gentoo sanity check" :)

# Yes, hack is dirty, I know.
subst 's/"1.5.22"/"1.5.26"/' configure

%configure %{subst_enable static}
# safety belts :)
echo "#define HAVE_BUGGY_I2C_DEV 1" >>src/config.h
%make_build

%install
pushd ddccontrol-db-%dbreleasedate
%make_install install DESTDIR=%buildroot
popd
%make_install install DESTDIR=%buildroot
install -pD -m644 src/gddccontrol/gddccontrol.png %buildroot%_liconsdir/gddccontrol.png

%find_lang %name
%find_lang --append --output=%name.lang %name-db

%files -f %name.lang
%doc AUTHORS NEWS doc/html
%_bindir/*
%_datadir/ddccontrol-db
%_desktopdir/*
%_pixmapsdir/*
%_liconsdir/*
%_man1dir/*

%files -n lib%{name}
%_libdir/*.so.*

%files -n lib%{name}-devel
%_libdir/*.so
%_includedir/*

%files applet
%dir %_libdir/ddccontrol
%_libdir/ddccontrol/ddcc-applet
%_datadir/ddccontrol
%_libdir/bonobo/servers/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin