[joystick-support] Back to excluding arn rather than trying to drop requires

Bruno Wolff III bruno at fedoraproject.org
Thu Oct 10 00:09:56 UTC 2013


commit 8ae92b093787b4f58e50082d25ad2bdc5a7974aa
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Wed Oct 9 19:07:24 2013 -0500

    Back to excluding arn rather than trying to drop requires
    
    In order for the requires to be different on arm, we'd need separate
    builds for each arch and would need to give up on a noarch build.
    So I am going back to just dropping the package on arm, but this
    time using the macro. I think the first time I tried to not build
    on arm, the issue was that "arm" didn't exactly match the arch.

 joystick-support.spec |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/joystick-support.spec b/joystick-support.spec
index 68bb1fe..0f75978 100644
--- a/joystick-support.spec
+++ b/joystick-support.spec
@@ -1,6 +1,6 @@
 Name: joystick-support          
 Version:        1.0.0
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Load joystick / game pad drivers at boot time
 Group: System Environment/Kernel
 
@@ -10,16 +10,15 @@ License:        MIT
 #URL:            
 #Source0:        
 
-# The joystick and game pad drivers have been moved to kernel-modules-extra
-# However kernel-modules-extra has been dropped for arm
-%ifnarch %{arm}
 Requires:       kernel-modules-extra
-%endif
 Requires:       systemd
 
 Requires(post): module-init-tools
 
 BuildArch:      noarch
+# The joystick and game pad drivers have been moved to kernel-modules-extra
+# However kernel-modules-extra has been dropped for arm
+ExcludeArch:    %{arm}
 
 %description
 By default the joystick and game pad drivers are not loaded at boot time. Nor
@@ -49,6 +48,9 @@ echo -e "joydev\nanalog" > $RPM_BUILD_ROOT%{_libdir}/../lib/modules-load.d/joyst
 /sbin/modprobe analog
 
 %changelog
+* Wed Oct 09 2013 Bruno Wolff III <bruno at wolff.to> 1.0.0-9
+- Back to excluding arm arch instead of trying to drop requires
+
 * Tue Oct 08 2013 Bruno Wolff III <bruno at wolff.to> 1.0.0-8
 - Use a macro for arm arches, plain arm doesn't work as expected
 


More information about the scm-commits mailing list