SPECS: linux-gpib.spec (NEW) - initial. Don't touch in this moment...
cieciwa
cieciwa at pld-linux.org
Wed Jun 29 10:25:08 CEST 2005
Author: cieciwa Date: Wed Jun 29 08:25:08 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial.
Don't touch in this moment - working on this.
---- Files affected:
SPECS:
linux-gpib.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/linux-gpib.spec
diff -u /dev/null SPECS/linux-gpib.spec:1.1
--- /dev/null Wed Jun 29 10:25:08 2005
+++ SPECS/linux-gpib.spec Wed Jun 29 10:25:03 2005
@@ -0,0 +1,200 @@
+# $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
+%bcond_without smp # don't build SMP module
+%bcond_without userspace # don't build userspace module
+%bcond_with verbose # verbose build (V=1)
+#
+# main package.
+#
+Summary: GPIB Linux Support
+Summary(pl): Sterowniki GPIB dkla Linuksa
+Name: linux-gpib
+Version: 3.2.05
+%define _rel 0.1
+Release: %{_rel}
+#Epoch:
+License: GPL
+Group: Unknown
+Vendor: PLD
+#Icon: -
+Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: -
+#Source1: -
+# Source1-md5: -
+#Patch0: %{name}-what.patch
+URL: http://linux-gpib.sourceforge.net/
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
+BuildRequires: rpmbuild(macros) >= 1.153
+%endif
+BuildRequires: kernel-headers >= 2.6.8
+PreReq: -
+Requires(pre,post): kernel >= 2.6.8
+Requires(preun): -
+Requires(postun): -
+Requires: kernel_up >=2.6.8
+Provides: -
+Obsoletes: -
+Conflicts: -
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%description -l pl
+
+# kernel subpackages.
+%prep
+
+%build
+
+%if %{with kernel}
+# kernel module(s)
+for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
+ if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
+ exit 1
+ fi
+ rm -rf include
+ install -d include/{linux,config}
+ ln -sf %{_kernelsrcdir}/config-$cfg .config
+ ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
+ ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+ touch include/config/MARKER
+#
+# patching/creating makefile(s) (optional)
+#
+ %{__make} -C %{_kernelsrcdir} clean \
+ RCS_FIND_IGNORE="-name '*.ko' -o" \
+ M=$PWD O=$PWD \
+ %{?with_verbose:V=1}
+ %{__make} -C %{_kernelsrcdir} modules \
+ CC="%{__cc}" CPP="%{__cpp}" \
+ M=$PWD O=$PWD \
+ %{?with_verbose:V=1}
+
+ mv MODULE_NAME{,-$cfg}.ko
+done
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+
+
+%endif
+
+%if %{with kernel}
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/MODULE_DIR
+install MODULE_NAME-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/MODULE_DIR/MODULE_NAME.ko
+%if %{with smp} && %{with dist_kernel}
+install MODULE_NAME-smp.ko \
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/MODULE_DIR/MODULE_NAME.ko
+%endif
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -n kernel-MODULE_DIR-%{name}
+%depmod %{_kernel_ver}
+
+%postun -n kernel-MODULE_DIR-%{name}
+%depmod %{_kernel_ver}
+
+%post -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)
+/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"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+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.
================================================================
More information about the pld-cvs-commit
mailing list