]> git.pld-linux.org Git - packages/atl2.git/commitdiff
- suffix src package with alt kernel name (if present) auto/ti/atl2-2_0_4-1
authorhawk <hawk@pld-linux.org>
Sun, 2 Mar 2008 18:55:21 +0000 (18:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- moved driver to kernel-net-atl2 subpackage (changes merged from e1000.spec)

Changed files:
    atl2.spec -> 1.10

atl2.spec

index b02cc71f33c1620ceb1752f179b319624b64b2b9..8478a6a19c3bb42cac3b769bbffc9e28038caf31 100644 (file)
--- a/atl2.spec
+++ b/atl2.spec
@@ -3,12 +3,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:       %{_rel}@%{_kernel_ver_str}
+Release:       %{rel}
 License:       GPL v2
 Group:         Base/Kernel
 Source0:       http://people.redhat.com/csnook/atl2/atl2-%{version}.tar.bz2
@@ -16,23 +17,39 @@ Source0:    http://people.redhat.com/csnook/atl2/atl2-%{version}.tar.bz2
 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:       %{rel}@%{_kernel_ver_str}
+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"
@@ -44,12 +61,12 @@ rm -rf $RPM_BUILD_ROOT
 %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*
This page took 0.0779069999999999 seconds and 4 git commands to generate.