SPECS: linux-gpib.spec - some updates. NFY
cieciwa
cieciwa at pld-linux.org
Wed Jun 29 10:52:40 CEST 2005
Author: cieciwa Date: Wed Jun 29 08:52:40 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- some updates.
NFY
---- Files affected:
SPECS:
linux-gpib.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/linux-gpib.spec
diff -u SPECS/linux-gpib.spec:1.1 SPECS/linux-gpib.spec:1.2
--- SPECS/linux-gpib.spec:1.1 Wed Jun 29 10:25:03 2005
+++ SPECS/linux-gpib.spec Wed Jun 29 10:52:34 2005
@@ -1,8 +1,5 @@
# $Revision$, $Date$
#
-# Replace MODULE_NAME with real module name and MODULE_DIR
-# with required directory name.
-#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without kernel # don't build kernel modules
@@ -12,6 +9,9 @@
#
# main package.
#
+
+%define mod_name gpib
+
Summary: GPIB Linux Support
Summary(pl): Sterowniki GPIB dkla Linuksa
Name: linux-gpib
@@ -24,7 +24,7 @@
Vendor: PLD
#Icon: -
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: -
+# Source0-md5: 65044161fe86a815c9c159fe301d85c4
#Source1: -
# Source1-md5: -
#Patch0: %{name}-what.patch
@@ -34,14 +34,14 @@
BuildRequires: rpmbuild(macros) >= 1.153
%endif
BuildRequires: kernel-headers >= 2.6.8
-PreReq: -
+#PreReq: -
Requires(pre,post): kernel >= 2.6.8
-Requires(preun): -
-Requires(postun): -
-Requires: kernel_up >=2.6.8
-Provides: -
-Obsoletes: -
-Conflicts: -
+#Requires(preun): -
+#Requires(postun): -
+Requires: kernel-up >= 2.6.8
+#Provides: -
+#Obsoletes: -
+#Conflicts: -
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -49,9 +49,74 @@
%description -l pl
# kernel subpackages.
+
+%package -n kernel-%{mod_name}
+Summary: Linux driver for %{name}
+Summary(pl): Sterownik dla Linuksa do %{name}
+Release: %{_rel}@%{_kernel_ver_str}
+Group: Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_up
+Requires(postun): %releq_kernel_up
+%endif
+
+%description -n kernel-%{mod_name}
+This is driver for %{name} for Linux.
+
+This package contains Linux module.
+
+%description -n kernel-%{mod_name} -l pl
+Sterownik dla Linuksa do %{name}.
+
+Ten pakiet zawiera moduł jądra Linuksa.
+
+%package -n kernel-smp-%{mod_name}
+Summary: Linux SMP driver for %{name}
+Summary(pl): Sterownik dla Linuksa SMP do %{name}
+Release: %{_rel}@%{_kernel_ver_str}
+Group: Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_smp
+Requires(postun): %releq_kernel_smp
+%endif
+
+%description -n kernel-smp-%{mod_name}
+This is driver for %{name} for Linux.
+
+This package contains Linux SMP module.
+
+%description -n kernel-smp-%{mod_name} -l pl
+Sterownik dla Linuksa do %{name}.
+
+Ten pakiet zawiera moduł jądra Linuksa SMP.
+
+
%prep
+%setup -q
+
%build
+%{__aclocal} -I m4
+%{__libtoolize}
+%{__autoconf}
+%{__automake}
+
+%configure \
+ --disable-guile-binding \
+ --disable-perl-binding \
+ --disable-php-binding \
+ --disable-python-binding \
+ --disable-tcl-binding \
+ --disable-documentation
+
+%{__make}
+%if %{with userspace}
+
+
+%endif
+
%if %{with kernel}
# kernel module(s)
@@ -77,7 +142,7 @@
M=$PWD O=$PWD \
%{?with_verbose:V=1}
- mv MODULE_NAME{,-$cfg}.ko
+## mv MODULE_NAME{,-$cfg}.ko
done
%endif
@@ -102,34 +167,23 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post -n kernel-MODULE_DIR-%{name}
+%post
%depmod %{_kernel_ver}
-%postun -n kernel-MODULE_DIR-%{name}
+%postun
%depmod %{_kernel_ver}
-%post -n kernel-smp-MODULE_DIR-%{name}
-%depmod %{_kernel_ver}smp
+#%post -n kernel-smp-MODULE_DIR-%{name}
+#%depmod %{_kernel_ver}smp
-%postun -n kernel-smp-MODULE_DIR-%{name}
-%depmod %{_kernel_ver}smp
+#%postun -n kernel-smp-MODULE_DIR-%{name}
+#%depmod %{_kernel_ver}smp
%if %{with kernel}
-%files -n kernel-MODULE_DIR-%{name}
-%defattr(644,root,root,755)
+%files
+#%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}/MODULE_DIR/*.ko*
-%if %{with smp} && %{with dist_kernel}
-%files -n kernel-smp-MODULE_DIR-%{name}
-%defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}smp/MODULE_DIR/*.ko*
-%endif
-%endif
-
-%if %{with userspace}
-%files
-%defattr(644,root,root,755)
-
%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -138,63 +192,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2005/06/29 08:52:34 cieciwa
+- some updates.
+NFY
+
Revision 1.1 2005/06/29 08:25:03 cieciwa
- initial.
Don't touch in this moment - working on this.
-Revision 1.19 2005/01/02 21:18:21 glen
-- use MODULE_DIR in package name, so it's easier to replace
-
-Revision 1.18 2004/12/14 23:52:28 glen
-- empty %prep for ./builder
-
-Revision 1.17 2004/11/18 23:50:11 pluto
-- %%releq_kernel_up/smp added (for proper use with requires(...)).
-
-Revision 1.16 2004/11/14 12:55:08 pluto
-- strict deps for clean update.
-
-Revision 1.15 2004/10/31 15:32:14 paladine
-- spaces->tabs
-
-Revision 1.14 2004/08/06 11:59:03 pluto
-- spaces -> tabs.
-
-Revision 1.13 2004/08/05 09:45:21 pluto
-- %%{_rel}.
-
-Revision 1.12 2004/08/05 07:06:39 pluto
-- smp removed from up.
-
-Revision 1.11 2004/08/05 06:48:38 pluto
-- more headers for main package.
-
-Revision 1.10 2004/07/22 11:15:41 pluto
-- reqs only with dist_kernel.
-
-Revision 1.9 2004/07/22 11:10:04 pluto
-- uninstall external kernel module before main kernel package.
-
-Revision 1.8 2004/06/20 03:10:56 arekm
-- clarification
-
-Revision 1.7 2004/06/16 21:51:29 arekm
-- use the right compiler
-
-Revision 1.6 2004/06/15 00:01:39 arekm
-- depmod fixed for smp
-
-Revision 1.5 2004/06/10 13:45:24 pluto
-- `make clean modules` separated for parallel build.
-
-Revision 1.4 2004/05/31 17:21:00 qboosh
-- BRs belong only to main package preamble
-
-Revision 1.3 2004/05/30 22:02:00 pluto
-- BR += kernel-module-build.
-
-Revision 1.2 2004/05/28 12:30:52 pluto
-- BR += rpmbuild(macros). %%{_target_base_arch} is required.
-
-Revision 1.1 2004/05/27 18:53:19 pluto
-- kernel-module-template.spec renamed to template-kernel-module.spec.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/linux-gpib.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list