rpms/915resolution/FC-5 915resolution.spec,1.3,1.4
Chris Weyl (cweyl)
fedora-extras-commits at redhat.com
Fri Mar 2 04:12:26 UTC 2007
Author: cweyl
Update of /cvs/extras/rpms/915resolution/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3709/FC-5
Modified Files:
915resolution.spec
Log Message:
resync branches; apply changes for BZ#219236 to all current branches
Index: 915resolution.spec
===================================================================
RCS file: /cvs/extras/rpms/915resolution/FC-5/915resolution.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- 915resolution.spec 2 Aug 2006 04:34:55 -0000 1.3
+++ 915resolution.spec 2 Mar 2007 04:11:54 -0000 1.4
@@ -1,20 +1,29 @@
Name: 915resolution
Version: 0.5.2
-Release: 3%{?dist}
+Release: 5%{?dist}
Summary: Intel video BIOS hack to support certain resolutions
Group: User Interface/X Hardware Support
License: Public Domain
URL: http://www.geocities.com/stomljen/
Source0: http://www.geocities.com/stomljen/%{name}-%{version}.tar.gz
+Source1: %{name}-init
+Source2: %{name}-config
+Source3: %{name}-pm-hook
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-# this doesn't make much sense on ppc. That, and it fails in build...
+# this doesn't make much sense on ppc. That, and it fails to build :)
ExcludeArch: ppc
# simple "get it going" instructions
Source100: README.fedora
+# for the add/remove/condrestart service stuff.
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/chkconfig
+Requires(preun): /sbin/service
+
+
%description
915resolution is a tool to modify the video BIOS of the 800 and 900 series
Intel graphics chipsets. This includes the 845G, 855G, and 865G chipsets, as
@@ -48,18 +57,54 @@
mkdir -p %{buildroot}%{_sbindir}
cp %{name} %{buildroot}%{_sbindir}
+# ...and the associated support bits
+mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
+install -m 0755 -T %{SOURCE1} \
+ %{buildroot}%{_sysconfdir}/rc.d/init.d/915resolution
+mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
+install -m 0644 -T %{SOURCE2} \
+ %{buildroot}%{_sysconfdir}/sysconfig/915resolution
+mkdir -p %{buildroot}%{_sysconfdir}/pm/hooks
+install -m 0755 -T %{SOURCE3} \
+ %{buildroot}%{_sysconfdir}/pm/hooks/99resolution
+
%clean
rm -rf %{buildroot}
+%post
+# This adds the proper /etc/rc*.d links for the script
+/sbin/chkconfig --add 915resolution
+
+
+%preun
+if [ $1 = 0 ]; then
+ /sbin/service 915resolution stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del 915resolution
+fi
+
+# no postun scriptlet is provided to "restart" the service on upgrade as this
+# doesn't seem entirely appropriate. explanations as to why this is wrong are
+# welcome :)
+
%files
%defattr(-,root,root,-)
%doc LICENSE.txt README* changes.log chipset_info.txt dump_bios
%{_sbindir}/*
+%{_sysconfdir}/rc.d/init.d/*
+%{_sysconfdir}/pm/hooks/*
+%config(noreplace) %{_sysconfdir}/sysconfig/*
%changelog
+* Mon Feb 19 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.5.2-5
+- add initscript infrastructure from Bojan Smojver, who kindly did most of the
+ work to implement it. Thanks Bojan! :)
+
+* Thu Dec 07 2006 Chris Weyl <cweyl at alumni.drew.edu> 0.5.2-4
+- bump
+
* Tue Aug 01 2006 Chris Weyl <cweyl at alumni.drew.edu> 0.5.2-3
- excludearch ppc
More information about the fedora-extras-commits
mailing list