rpms/i810switch/devel i810switch-0.6.2.makefile.patch, NONE, 1.1 i810switch.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Ville Skytta (scop)
fedora-extras-commits at redhat.com
Tue Jan 25 16:49:22 UTC 2005
Author: scop
Update of /cvs/extras/rpms/i810switch/devel
In directory cvs.fedora.redhat.com:/tmp/cvs-serv22586/devel
Modified Files:
.cvsignore sources
Added Files:
i810switch-0.6.2.makefile.patch i810switch.spec
Log Message:
auto-import i810switch-0.6.2-3 on branch devel from i810switch-0.6.2-3.src.rpm
i810switch-0.6.2.makefile.patch:
--- NEW FILE i810switch-0.6.2.makefile.patch ---
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
--- NEW FILE i810switch.spec ---
Name: i810switch
Version: 0.6.2
Release: 3
Epoch: 0
Summary: A utility for switching the LCD and external VGA displays on and off
Group: User Interface/X Hardware Support
License: GPL
URL: http://vorfgglon.cwru.edu/~ames/i810switch/
Source0: http://vorlon.cwru.edu/~ames/i810switch/i810switch-0.6.2.tar.gz
Patch0: i810switch-0.6.2.makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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 -q
%patch -p1 -b .buildroot
%build
CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%{!?makeinstall: %define makeinstall make install DESTDIR=$RPM_BUILD_ROOT bindir=$RPM_BUILD_ROOT%{_bindir} mandir=$RPM_BUILD_ROOT%{_mandir} }
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README TODO ChangeLog INSTALL
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Tue Jan 18 2005 David Kaplan <dmk at localhost.localdomain> - 0:0.6.2-3
- Added back INSTALL file to rpm because it explains how to SUID root
the executable so that all users can use i810switch.
* Thu Jan 13 2005 David Kaplan <dmk at localhost.localdomain> - 0:0.6.2-0.fdr.2
- Minor spec file fixes and addition of optimization flags to CFLAGS
* Tue Jan 11 2005 David Kaplan <dmk at localhost.localdomain> - 0:0.6.2-0.fdr.1
- Initial build of i810switch
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/i810switch/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 25 Jan 2005 16:48:43 -0000 1.1
+++ .cvsignore 25 Jan 2005 16:49:20 -0000 1.2
@@ -0,0 +1 @@
+i810switch-0.6.2.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/i810switch/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 25 Jan 2005 16:48:43 -0000 1.1
+++ sources 25 Jan 2005 16:49:20 -0000 1.2
@@ -0,0 +1 @@
+b31cc8fde7a36d553406339d2626d3e3 i810switch-0.6.2.tar.gz
More information about the fedora-extras-commits
mailing list