diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..20ec3de --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +xbacklight-1.1.tar.bz2 diff --git a/Makefile b/Makefile deleted file mode 100644 index 3d3113d..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: xbacklight -# $Id$ -NAME := xbacklight -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/sources b/sources index e69de29..e8c6e67 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +51b4a1c0ae2b3bd77417306fd78a3e94 xbacklight-1.1.tar.bz2 diff --git a/xbacklight.spec b/xbacklight.spec new file mode 100644 index 0000000..9b50cd3 --- /dev/null +++ b/xbacklight.spec @@ -0,0 +1,48 @@ +Name: xbacklight +Version: 1.1 +Release: 1%{?dist} +Summary: Adjust backlight brightness using RandR + +Group: User Interface/X Hardware Support +License: MIT +URL: http://xorg.freedesktop.org/releases/individual/app/ +Source0: http://xorg.freedesktop.org/releases/individual/app/xbacklight-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libXrandr-devel libXrender-devel pkgconfig +#Requires: + +%description +Xbacklight is used to adjust the backlight brightness where +supported. It finds all outputs on the X server supporting backlight +brightness control and changes them all in the same way. + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING +%{_bindir}/xbacklight +%{_datadir}/man/man1/xbacklight.* + + +%changelog +* Sat Jan 26 2008 Michel Salim - 1.1-1 +- Initial Fedora package