aboutsummaryrefslogtreecommitdiffstats
path: root/numlock.spec
diff options
context:
space:
mode:
Diffstat (limited to 'numlock.spec')
-rw-r--r--numlock.spec49
1 files changed, 34 insertions, 15 deletions
diff --git a/numlock.spec b/numlock.spec
index 11b0d7c..8f9c2bc 100644
--- a/numlock.spec
+++ b/numlock.spec
@@ -1,38 +1,37 @@
-%define name numlock
-%define version 1.0
-%define release 7mdk
+# !!!!!!!! WARNING THIS HAS TO BE EDITED IN THE CVS !!!!!!!!!!!
+# get the source from our cvs repository (see http://www.linuxmandrake.com/en/cvs.php3)
+%define name numlock
+%define version 2.0
+%define release 1mdk
-Summary: Numlock key locker.
+Summary: Numlock key locker
Name: %{name}
-Version: 1.0
+Version: %{version}
Release: %{release}
Copyright: GPL
Group: System/Configuration/Boot and Init
-# get the source from our cvs repository (see
-# http://www.linuxmandrake.com/en/cvs.php3)
Source0: %{name}-%{version}.tar.bz2
-Source1: numlock.xinit
BuildRoot: %{_tmppath}/%{name}-buildroot
-Requires: fileutils console-tools
+autoReq: no
+Requires: fileutils console-tools glibc
Obsoletes: NumLock
%description
-
NumLock enable to lock the numlock key. Only enable it at boot-time with
ntsysv or with any other SVSR like rc.d config scripts editor such as
tksysv or the ones from GNOME and KDE.
NumLock is safe for portable as it is disabled by default.
%prep
-%setup
+%setup -q
%build
make CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
-make install TOP=$RPM_BUILD_ROOT
+make install TOP=$RPM_BUILD_ROOT INITRDDIR=%{_initrddir}
%post
/sbin/chkconfig --add numlock
@@ -47,13 +46,33 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(755,root,root)
-%config /etc/rc.d/init.d/%{name}
-%config /etc/profile.d/%{name}.sh
-%config /etc/X11/xinit.d/numlock
+%config(noreplace) %{_initrddir}/%{name}
+%config(noreplace) /etc/profile.d/%{name}.sh
+%config(noreplace) /etc/X11/xinit.d/numlock
/usr/X11R6/bin/*
/usr/X11R6/man/*/*
%changelog
+* Tue Jan 9 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 2.0-1mdk
+- really fix the xinit.d file
+- reintegrate into CVS
+
+* Thu Nov 2 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0-11mdk
+- fix the xinit.d file, thanks to fcrozat
+- get latest code that ensure the numlock is on even if it was already
+ on, thx to fcrozat
+
+* Mon Sep 11 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0-10mdk
+- tried to really fix numlock for fredl
+
+* Wed Aug 30 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0-9mdk
+- added %{_initrddir}
+- NumLock -> numlock by request of submarine ;-)
+- %config(noreplace)
+
+* Wed Apr 26 2000 Pixel <pixel@mandrakesoft.com> 1.0-8mdk
+- force non-requiring XFree86-libs
+
* Wed Apr 12 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0-7mdk
- launch via /etc/X11/xinit.d