Author: hawk                         Date: Sun Mar  2 18:55:27 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- suffix src package with alt kernel name (if present)
- moved driver to kernel-net-atl2 subpackage (changes merged from e1000.spec)

---- Files affected:
SPECS:
   atl2.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/atl2.spec
diff -u SPECS/atl2.spec:1.9 SPECS/atl2.spec:1.10
--- SPECS/atl2.spec:1.9 Fri Feb 22 14:08:16 2008
+++ SPECS/atl2.spec     Sun Mar  2 19:55:21 2008
@@ -4,12 +4,13 @@
 %bcond_without dist_kernel     # allow non-distribution kernel
 %bcond_with    verbose         # verbose build (V=1)
 #
-%define                _rel    1
+%define                pname   atl2
+%define                rel     1
 Summary:       Attansic(R) L2 Fast Ethernet Adapter driver for Linux
 Summary(pl.UTF-8):     Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter
-Name:          kernel%{_alt_kernel}-net-atl2
+Name:          %{pname}%{_alt_kernel}
 Version:       2.0.4
-Release:       [EMAIL PROTECTED]
+Release:       %{rel}
 License:       GPL v2
 Group:         Base/Kernel
 Source0:       http://people.redhat.com/csnook/atl2/atl2-%{version}.tar.bz2
@@ -17,23 +18,39 @@
 URL:           http://www.attansic.com/
 %{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 
3:2.6.20.2}
 BuildRequires: rpmbuild(macros) >= 1.379
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+
+%description
+This package contains the Linux driver for the Attansic(R) L2 Fast
+Ethernet Adapter.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
+Attansic(R) L2 Fast Ethernet Adapter.
+
+%package -n kernel%{_alt_kernel}-net-atl2
+Summary:       Attansic(R) L2 Fast Ethernet Adapter driver for Linux
+Summary(pl.UTF-8):     Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter
+Release:       [EMAIL PROTECTED]
+Group:         Base/Kernel
 Requires(post,postun): /sbin/depmod
 %if %{with dist_kernel}
 %requires_releq_kernel
 Requires(postun):      %releq_kernel
 %endif
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Provides:      kernel(atl2)
 
-%description
+%description -n kernel%{_alt_kernel}-net-atl2
 This package contains the Linux driver for the Attansic(R) L2 Fast
 Ethernet Adapter.
 
-%description -l pl.UTF-8
+%description -n kernel%{_alt_kernel}-net-atl2 -l pl.UTF-8
 Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
 Attansic(R) L2 Fast Ethernet Adapter.
 
 %prep
-%setup -q -n atl2-%{version}
+%setup -q -n %{pname}-%{version}
 
 %build
 %build_kernel_modules -m atl2 EXTRA_CFLAGS="-DDBG=0"
@@ -45,15 +62,15 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
+%post  -n kernel%{_alt_kernel}-net-atl2
 %depmod %{_kernel_ver}
 
-%postun
+%postun        -n kernel%{_alt_kernel}-net-atl2
 %depmod %{_kernel_ver}
 
-%files
+%files -n kernel%{_alt_kernel}-net-atl2
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}/kernel/drivers/net/atl2*.ko*
+/lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko*
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -61,6 +78,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2008-03-02 18:55:21  hawk
+- suffix src package with alt kernel name (if present)
+- moved driver to kernel-net-atl2 subpackage (changes merged from e1000.spec)
+
 Revision 1.9  2008-02-22 13:08:16  hawk
 - updated to 2.0.4, works
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/atl2.spec?r1=1.9&r2=1.10&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to