X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=r8168.spec;h=0425e2a4ffdee2442c61f2ab8526b6cc8a7b17e4;hb=b9b35840e102ea13ffc041a0270d563a3d33777c;hp=afc0359a21707a375d7899c1e2a29f9a4992ee22;hpb=c59e5932341140025a9761bcf00eca922fee1932;p=packages%2Fr8168.git diff --git a/r8168.spec b/r8168.spec index afc0359..0425e2a 100644 --- a/r8168.spec +++ b/r8168.spec @@ -10,11 +10,12 @@ %undefine with_dist_kernel %endif -%define rel 52 +%define rel 1 +%define pname r8168 Summary: Linux driver for RTL8111/8168B PCI Express Gigabit Ethernet controllers Summary(pl.UTF-8): Linuksowy sterownik dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet -Name: r8168 -Version: 8.019.00 +Name: %{pname}%{_alt_kernel} +Version: 8.035.00 Release: %{rel} License: GPL Group: Base/Kernel @@ -22,15 +23,16 @@ URL: http://www.realtek.com.tw/ # Check for new versions at # http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false # unfortunately this download is not DF-friendly. -Source0: http://execve.pl/PLD/%{name}-%{version}.tar.bz2 -# Source0-md5: f6934fc5df1dfb5fea82e4a310568890 +Source0: %{pname}-%{version}.tar.bz2 +# Source0-md5: 80b8d23e463e5408dced1b1377579dae +Patch0: linux-3.8.patch %if %{with kernel} %if %{with dist_kernel} BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.33 %endif BuildRequires: rpmbuild(macros) >= 1.379 %endif -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRoot: %{tmpdir}/%{pname}-%{version}-root-%(id -u -n) %description Driver (Linux kernel module) for RTL8111/8168B PCI Express Gigabit @@ -60,11 +62,12 @@ Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet. %prep -%setup -q +%setup -q -n %{pname}-%{version} +%patch0 -p1 %build %if %{with kernel} -%build_kernel_modules -m r8168 -C src +%build_kernel_modules -m r8168 -C src KERNELRELEASE=%{_kernel_ver} %endif %install