Name: tpctl Version: 4.14 Release: 0.fdr.1 Summary: IBM ThinkPad configuration tools. Group: System Environment/Base License: GPL URL: http://tpctl.sourceforge.net/ Source0: http://download.sourceforge.net/tpctl/tpctl_%{version}.tar.gz Source1: %{name}.apmiser.init Patch0: %{name}-rpm.patch Patch1: %{name}-optflags.patch Patch2: %{name}-compile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel BuildRequires: libtool Requires: kernel-module-thinkpad >= 5.5 %description tpctl is a package of IBM ThinkPad configuration tools for Linux. %package -n apmiser Summary: IBM ThinkPad APM settings daemon. Group: System Environment/Daemons Requires: %{name} = %{version}-%{release} Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig %description -n apmiser apmiser is a tool for IBM ThinkPads that automatically controls the APM power settings based on your usage patterns. %prep %setup -q %patch0 -p1 %patch1 -p2 %patch2 -p2 cp -p tpctlir/README README.tpctlir %build make %{?_smp_mflags} all make %{?_smp_mflags} -C tpctlir %install rm -rf $RPM_BUILD_ROOT make install \ DEST=$RPM_BUILD_ROOT \ PATH_BIN=%{_bindir}/ \ PATH_LIB=%{_libdir}/ \ PATH_MAN=%{_mandir}/ \ PATH_SBIN=%{_sbindir}/ install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/apmiser install -dm 755 $RPM_BUILD_ROOT%{_mandir}/man8 install -pm 644 man/apmiser.8 tpctlir/tpctlir.8 $RPM_BUILD_ROOT%{_mandir}/man8 %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n apmiser [ $1 -eq 1 ] && chkconfig --add apmiser || : %{_initrddir}/apmiser condrestart >/dev/null || : %preun -n apmiser if [ $1 -eq 0 ]; then chkconfig --del apmiser %{_initrddir}/apmiser stop >/dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README* SUPPORTED* TROUBLE* VGA-MODES %{_bindir}/*tpctl %{_sbindir}/tpctlir %{_libdir}/libsmapidev.so.* %{_mandir}/man1/*tpctl.1* %{_mandir}/man8/tpctlir.8* %files -n apmiser %defattr(-,root,root,-) %doc apmiser/README %attr(0755,root,root) %config %{_initrddir}/* %{_sbindir}/apmiser %{_mandir}/man8/apmiser.8* %changelog * Sun Jul 18 2004 Thomas Vander Stichele - 4.14-0.fdr.1: updated to new upstream release. * Wed Dec 3 2003 Ville Skyttä - 0:4.8-0.fdr.2 - Use sf.net tarball. - Include tpctlir in main package. - Make apmiser require /sbin/chkconfig. - Use patch instead of perl for optflags. * Sat Oct 11 2003 Ville Skyttä - 0:4.8-0.fdr.1 - Update to 4.8. - Make init script properly fail if /dev/thinkpad or /proc/apm are not available (thanks to Joose Vettenranta for the catch). * Tue Jul 29 2003 Ville Skyttä - 0:4.6-0.fdr.2 - Don't fail apmiser %%post scriptlet even if condrestart fails (bug 498). * Tue Jul 22 2003 Ville Skyttä - 0:4.6-0.fdr.1 - Update to 4.6. - BuildRequires libtool (bug 496). - Drop -devel package and patch, it's unofficial, not useful and broken :) - Init script cleanups. * Tue May 27 2003 Ville Skyttä - 0:4.4-0.fdr.4 - Fix condrestart thinko in apmiser init script. * Sat May 17 2003 Ville Skyttä - 0:4.4-0.fdr.3 - Split apmiser into separate subpackage. - Include apmiser init script and man page. - Patch (originally from Mandrake) to create a -devel subpackage. * Mon Apr 21 2003 Ville Skyttä - 0:4.4-0.fdr.2 - Handle renamed kernel-module-thinkpad dependency. * Sat Apr 19 2003 Ville Skyttä - 0:4.4-0.fdr.1 - Update to 4.4. * Sun Apr 6 2003 Ville Skyttä - 0:4.3-0.fdr.1 - Update to 4.3. - Save .spec in UTF-8. * Sun Mar 30 2003 Ville Skyttä - 0:3.7-0.fdr.1 - Rebuild according to Fedora RC3 guidelines. - Require kernel-mod-thinkpad instead of the obsolete thinkpad-kernel package. * Sun Feb 23 2003 Ville Skyttä - 3.7-1.fedora.2 - Require thinkpad-kernel instead of obsolete thinkpad package. * Sat Feb 8 2003 Ville Skyttä - 3.7-1.fedora.1 - First Fedora release.