]> git.pld-linux.org Git - packages/linux-gpib.git/commitdiff
- compile and install OK
authorcieciwa <cieciwa@pld-linux.org>
Wed, 29 Jun 2005 11:33:40 +0000 (11:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- %%files requires fill.

Changed files:
    linux-gpib.spec -> 1.5

linux-gpib.spec

index 7779fcdcd58a53dce3c3b09fe23d9981065997b8..5e45eebb615e5cd4b1aa5d6bbc4be8568b17b4b6 100644 (file)
@@ -26,7 +26,7 @@ Source0:      http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 # Source0-md5: 65044161fe86a815c9c159fe301d85c4
 #Source1:      -
 # Source1-md5: -
-#Patch0:               %{name}-what.patch
+Patch0:                %{name}-Makefile.am.patch
 URL:           http://linux-gpib.sourceforge.net/
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:     kernel-module-build >= 2.6.7}
@@ -95,6 +95,7 @@ Ten pakiet zawiera modu
 %prep
 
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal} -I m4
@@ -110,16 +111,15 @@ Ten pakiet zawiera modu
        --disable-tcl-binding \
        --disable-documentation
 
-##%{__make}    
 %if %{with userspace}
-
+%{__make}
 
 %endif
 
+%if %{with kernel}
 cd driver
 for i in agilent_82350b agilent_82357a cb7210 hp82335 hp_82341 nec7210 tms9914 tnt4882 cec ines pc2 sys; do
 cd $i
-%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
@@ -161,18 +161,23 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
        
        mv $i{,-$cfg}.ko
 done
-%endif 
 cd ..
 done
+%endif 
 
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
+HOTPLUG_USB_CONF_DIR=/etc/hotplug/usb
+USB_FIRMWARE_DIR=/usr/share/usb/
 
+install -d $RPM_BUILD_ROOT{$HOTPLUG_USB_CONF_DIR,$USB_FIRMWARE_DIR}
 %if %{with userspace}
-
-
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       HOTPLUG_USB_CONF_DIR=$RPM_BUILD_ROOT$HOTPLUG_USB_CONF_DIR \
+       USB_FIRMWARE_DIR=$RPM_BUILD_ROOT$USB_FIRMWARE_DIR
 %endif
 
 %if %{with kernel}
This page took 0.128859 seconds and 4 git commands to generate.