[svn] r5198 - in trunk/rpms: . i810switch
packagers at lists.rpmforge.net
packagers at lists.rpmforge.net
Sat Feb 24 12:27:24 CET 2007
Author: dag
Date: 2007-02-24 12:27:23 +0100 (Sat, 24 Feb 2007)
New Revision: 5198
Added:
trunk/rpms/i810switch/
trunk/rpms/i810switch/i810switch-0.6.2.makefile.patch
trunk/rpms/i810switch/i810switch.spec
Log:
Updates
Added: trunk/rpms/i810switch/i810switch-0.6.2.makefile.patch
===================================================================
--- trunk/rpms/i810switch/i810switch-0.6.2.makefile.patch (rev 0)
+++ trunk/rpms/i810switch/i810switch-0.6.2.makefile.patch 2007-02-24 11:27:23 UTC (rev 5198)
@@ -0,0 +1,37 @@
+diff -Naur i810switch-0.6.2.orig/Makefile i810switch-0.6.2/Makefile
+--- i810switch-0.6.2.orig/Makefile 2005-01-11 18:09:22.011215952 -0800
++++ i810switch-0.6.2/Makefile 2005-01-11 18:11:15.474110985 -0800
+@@ -1,5 +1,8 @@
+ OBJECTS = i810switch.o
+
++bindir = $(DESTDIR)/usr/bin
++mandir = $(DESTDIR)/usr/share/man
++
+ %.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+@@ -9,16 +12,16 @@
+ $(CC) $(CFLAGS) -o $@ $(OBJECTS)
+
+ install: i810switch
+- install -d $(DESTDIR)/usr/bin
+- install -d $(DESTDIR)/usr/share/man/man1
+- install i810switch i810rotate $(DESTDIR)/usr/bin
+- install i810switch.1.gz i810rotate.1.gz $(DESTDIR)/usr/share/man/man1
++ install -d $(bindir)
++ install -d $(mandir)/man1
++ install i810switch i810rotate $(bindir)
++ install i810switch.1.gz i810rotate.1.gz $(mandir)/man1
+
+ uninstall:
+- rm -f $(DESTDIR)/usr/bin/i810switch
+- rm -f $(DESTDIR)/usr/bin/i810rotate
+- rm -f $(DESTDIR)/usr/share/man/man1/i810switch.1.gz
+- rm -f $(DESTDIR)/usr/share/man/man1/i810rotate.1.gz
++ rm -f $(bindir)/i810switch
++ rm -f $(bindir)/i810rotate
++ rm -f $(mandir)/man1/i810switch.1.gz
++ rm -f $(mandir)/man1/i810rotate.1.gz
+
+ clean:
+ @rm -f $(OBJECTS) i810switch
Added: trunk/rpms/i810switch/i810switch.spec
===================================================================
--- trunk/rpms/i810switch/i810switch.spec (rev 0)
+++ trunk/rpms/i810switch/i810switch.spec 2007-02-24 11:27:23 UTC (rev 5198)
@@ -0,0 +1,48 @@
+# $Id$
+# Authority: dag
+
+Summary: Utility for switching the LCD and external VGA displays on and off
+Name: i810switch
+Version: 0.6.5
+Release: 1
+License: GPL
+Group: User Interface/X Hardware Support
+URL: http://www16.plala.or.jp/mano-a-mano/i810switch.html
+
+Source: http://www16.plala.or.jp/mano-a-mano/i810switch/i810switch-0.6.5.tar.gz
+Patch: i810switch-0.6.2.makefile.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+Requires: pciutils
+
+%description
+i810switch is a utility for switching the LCD and external VGA
+displays on and off under Linux. It was originally written by Antonino
+Daplas, and is now maintained by Ken Mano.
+
+%prep
+%setup
+%patch -p1 -b .buildroot
+%{__make} clean
+
+%build
+%{__make} %{?_smp_mflags} CFLAGS="%{optflags}"
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install DESTDIR="%{buildroot}"
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc AUTHORS ChangeLog COPYING INSTALL README TODO
+%doc %{_mandir}/man1/i810rotate.1*
+%doc %{_mandir}/man1/i810switch.1*
+%{_bindir}/i810rotate
+%{_bindir}/i810switch
+
+%changelog
+* Sat Feb 24 2007 Dag Wieers <dag at wieers.com> - 0.6.5-1
+- Initial package. (using DAR)
Property changes on: trunk/rpms/i810switch/i810switch.spec
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
More information about the svn-commits
mailing list