2007-01-16 00:29:18 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package pcfclock (Version 0.44)
|
|
|
|
|
#
|
2007-04-04 22:10:24 +02:00
|
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:29:18 +01:00
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
|
#
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: pcfclock
|
2007-04-04 22:10:24 +02:00
|
|
|
|
BuildRequires: kernel-source kernel-syms module-init-tools
|
2007-01-16 00:29:18 +01:00
|
|
|
|
Version: 0.44
|
2007-10-24 01:42:04 +02:00
|
|
|
|
Release: 144
|
2007-01-16 00:29:18 +01:00
|
|
|
|
Summary: Pcfclock kernel driver
|
2007-10-19 15:33:28 +02:00
|
|
|
|
License: GPL v2 or later
|
2007-01-16 00:29:18 +01:00
|
|
|
|
Group: System/Kernel
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-19 15:33:28 +02:00
|
|
|
|
Url: http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html
|
2007-01-16 00:29:18 +01:00
|
|
|
|
Requires: pcfclock-kmp
|
2007-10-19 15:33:28 +02:00
|
|
|
|
AutoReqProv: on
|
2007-01-16 00:29:18 +01:00
|
|
|
|
Source: pcfclock-%{version}.tar.gz
|
|
|
|
|
Source1: Makefile
|
|
|
|
|
Source2: preamble
|
|
|
|
|
Patch: pcfclock-nomodule.patch
|
|
|
|
|
Patch1: pcfclock-module_param.patch
|
|
|
|
|
Patch2: pcfclock-no_devfs.patch
|
|
|
|
|
ExcludeArch: s390 s390x
|
|
|
|
|
%suse_kernel_module_package -p %_sourcedir/preamble kdump um xen xenpae iseries64
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The pcfclock(4) driver for GNU/Linux supports the parallel port radio
|
|
|
|
|
clock sold by Conrad Electronic under order number 967602. The radio
|
|
|
|
|
clock, which is put between your parallel port and your printer,
|
|
|
|
|
receives the legal German time, i.e. CET or CEST, from the DCF77
|
|
|
|
|
transmitter and uses it to set its internal quartz clock. The DCF77
|
|
|
|
|
transmitter is located near to Frankfurt/Main and covers a radius of
|
|
|
|
|
more than 1500 kilometers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Andreas V<EFBFBD>gele <voegelas@gmx.net>
|
|
|
|
|
|
|
|
|
|
%package KMP
|
|
|
|
|
Summary: Pcfclock kernel driver
|
|
|
|
|
Group: System/Kernel
|
|
|
|
|
|
|
|
|
|
%description KMP
|
|
|
|
|
The pcfclock(4) driver for GNU/Linux supports the parallel port radio
|
|
|
|
|
clock sold by Conrad Electronic under order number 967602. The radio
|
|
|
|
|
clock, which is put between your parallel port and your printer,
|
|
|
|
|
receives the legal German time, i.e. CET or CEST, from the DCF77
|
|
|
|
|
transmitter and uses it to set its internal quartz clock. The DCF77
|
|
|
|
|
transmitter is located near to Frankfurt/Main and covers a radius of
|
|
|
|
|
more than 1500 kilometers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Andreas V<EFBFBD>gele <voegelas@gmx.net>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup
|
|
|
|
|
%patch
|
|
|
|
|
%patch1
|
|
|
|
|
%patch2
|
|
|
|
|
mkdir source
|
|
|
|
|
mkdir obj
|
|
|
|
|
cp -a linux/pcfclock.c %{S:1} \
|
|
|
|
|
source
|
|
|
|
|
|
|
|
|
|
%build
|
2007-05-11 12:32:53 +02:00
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS \
|
|
|
|
|
./configure --prefix=/usr --mandir=%{_mandir} --without-linux
|
2007-01-16 00:29:18 +01:00
|
|
|
|
make
|
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
|
rm -rf obj/$flavor
|
|
|
|
|
cp -r source obj/$flavor
|
|
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
|
|
|
|
|
M=$PWD/obj/$flavor
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
2007-05-11 12:32:53 +02:00
|
|
|
|
# install manpage
|
|
|
|
|
make -C linux install DESTDIR=%{buildroot}
|
2007-01-16 00:29:18 +01:00
|
|
|
|
# install kernel modules
|
|
|
|
|
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
|
|
|
|
|
export INSTALL_MOD_DIR=updates
|
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
|
|
|
|
|
M=$PWD/obj/$flavor
|
|
|
|
|
done
|
2007-10-24 01:42:04 +02:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
|
|
|
|
|
echo "alias char-major-181 pcfclock" > $RPM_BUILD_ROOT/etc/modprobe.d/pcfclock
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/lib/udev/devices
|
2007-01-16 00:29:18 +01:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README
|
|
|
|
|
%{_mandir}/man4/pcfclock.4.gz
|
|
|
|
|
%{_mandir}/man8/pcfdate.8.gz
|
|
|
|
|
/usr/sbin/pcfdate
|
2007-10-24 01:42:04 +02:00
|
|
|
|
/etc/modprobe.d/pcfclock
|
|
|
|
|
%dir /lib/udev
|
|
|
|
|
%dir /lib/udev/devices
|
|
|
|
|
%attr(444,root,root) %dev(c,181,0) /lib/udev/devices/pcfclock0
|
|
|
|
|
%attr(444,root,root) %dev(c,181,1) /lib/udev/devices/pcfclock1
|
|
|
|
|
%attr(444,root,root) %dev(c,181,2) /lib/udev/devices/pcfclock2
|
2007-01-16 00:29:18 +01:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
2007-04-04 22:10:24 +02:00
|
|
|
|
%changelog
|
2007-10-24 01:42:04 +02:00
|
|
|
|
* Wed Oct 24 2007 - ro@suse.de
|
|
|
|
|
- revert last change, instead
|
|
|
|
|
- add alias char-major-181 pcfclock to /etc/modprobe.d/pcfclock
|
|
|
|
|
- add device nodes to /lib/udev/devices
|
2007-10-19 15:33:28 +02:00
|
|
|
|
* Fri Oct 19 2007 - ro@suse.de
|
|
|
|
|
- add udev rule to create device nodes (#335108,#276510)
|
2007-05-11 00:20:14 +02:00
|
|
|
|
* Fri May 11 2007 - ro@suse.de
|
2007-05-11 12:32:53 +02:00
|
|
|
|
- fix build with current kernel sources
|
|
|
|
|
- use optflags for pcfdate
|
2007-04-04 22:10:24 +02:00
|
|
|
|
* Wed Apr 04 2007 - lrupp@suse.de
|
|
|
|
|
- added module-init-tools to BuildRequires
|
2007-01-16 00:29:18 +01:00
|
|
|
|
* Mon Aug 21 2006 - ro@suse.de
|
|
|
|
|
- devfs has been removed from 2.6.18, make kernel driver compile
|
|
|
|
|
* Mon Apr 10 2006 - agruen@suse.de
|
|
|
|
|
- Add preamble `Enhances: kernel-$flavor' workaround to KMP
|
|
|
|
|
sub-packages (156513).
|
|
|
|
|
* Mon Apr 03 2006 - ro@suse.de
|
|
|
|
|
- change MODULE_PARM to module_param
|
|
|
|
|
* Thu Feb 23 2006 - ro@suse.de
|
|
|
|
|
- created package with KMP (version 0.44)
|