SPECS: ueagle-atm4.spec - added subpackage firmware

paszczus paszczus at pld-linux.org
Sun Jul 1 15:05:21 CEST 2007


Author: paszczus                     Date: Sun Jul  1 13:05:21 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added subpackage firmware

---- Files affected:
SPECS:
   ueagle-atm4.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/ueagle-atm4.spec
diff -u SPECS/ueagle-atm4.spec:1.4 SPECS/ueagle-atm4.spec:1.5
--- SPECS/ueagle-atm4.spec:1.4	Sun Jul  1 14:45:56 2007
+++ SPECS/ueagle-atm4.spec	Sun Jul  1 15:05:16 2007
@@ -2,6 +2,7 @@
 #
 # Conditional build:
 %bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_without	firmware	# build with firmware
 %bcond_with	verbose		# verbose build (V=1)
 #
 %define		_modname	ueagle4-atm
@@ -11,7 +12,7 @@
 Name:		kernel%{_alt_kernel}-usb-atm-%{_modname}
 Version:	1.0
 Release:	%{_rel}@%{_kernel_ver_str}
-License:	GPL
+License:	GPL v2 (kernel module) and restricted, non-distributable (for firmware)
 Group:		Base/Kernel
 Source0:	http://download.gna.org/ueagleatm/ueagle-atm4.tar.gz
 # Source0-md5:	28c3de526bd52d65a324b0eba4b2f7c4
@@ -26,11 +27,23 @@
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		hotplugfwdir	/lib/firmware
+
 %description
 This driver uEagle-ATM for GNU/Linux (Sagem F at st 800 E4).
 
+%package firmware
+Summary:	The non-free firmware for eagle (SAGEM f at st) USB ADSL modem
+Version:	4
+Release:	1
+License:	restricted, non-distributable
+Group:		Libraries
+
+%description firmware
+The non-free firmware for eagle (SAGEM f at st E4) USB ADSL modem.
+
 %prep
-%setup -q -n ueagle-atm4
+%setup -q -n ueagle-atm%{version}
 %patch0 -p1
 
 %build
@@ -39,6 +52,13 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with firmware}
+install -d $RPM_BUILD_ROOT%{hotplugfwdir}/ueagle-atm
+
+install firmware/*.bin $RPM_BUILD_ROOT%{hotplugfwdir}/ueagle-atm
+install firmware/*.fw $RPM_BUILD_ROOT%{hotplugfwdir}/ueagle-atm
+%endif
+
 cd driver
 %install_kernel_modules -m %{_modname} -d usb/atm
 
@@ -54,6 +74,11 @@
 %files
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/usb/atm/%{_modname}*
+%if %{with firmware}
+%files firmware
+%defattr(644,root,root,755)
+/lib/firmware/ueagle-atm
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -61,6 +86,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2007/07/01 13:05:16  paszczus
+- added subpackage firmware
+
 Revision 1.4  2007/07/01 12:45:56  paszczus
 - changed modname to ueagle4-atm
 - changed package name to kernel-usb-atm-ueagle4-atm
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ueagle-atm4.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list