10 |
Summary: Support for NVidia Optimus laptops on Linux |
Summary: Support for NVidia Optimus laptops on Linux |
11 |
Group: System/Kernel and hardware |
Group: System/Kernel and hardware |
12 |
Version: 3.0 |
Version: 3.0 |
13 |
Release: %mkrel 9 |
Release: %mkrel 10 |
14 |
License: GPLv3 |
License: GPLv3 |
15 |
URL: https://github.com/Bumblebee-Project/bumblebee |
URL: https://github.com/Bumblebee-Project/bumblebee |
16 |
# source from git repo git://github.com/Bumblebee-Project/Bumblebee.git |
# source from git repo git://github.com/Bumblebee-Project/Bumblebee.git |
86 |
/usr/sbin/groupdel bumblebee |
/usr/sbin/groupdel bumblebee |
87 |
fi |
fi |
88 |
|
|
89 |
|
# Simple: we need to ensure bulblebee isnt removed in upgrade |
90 |
|
# This doesnt need exist for Mageia 2 |
91 |
|
%triggerpostun -- %{name} < 3.0-9 |
92 |
|
%_pre_groupadd %{name} |
93 |
|
users=$(getent passwd | awk -F: '$3 >= 500 && $3 < 60000 {print $1}') |
94 |
|
for user in $users; do |
95 |
|
gpasswd -a $user bumblebee |
96 |
|
done |
97 |
|
|
98 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
99 |
%prep |
%prep |
100 |
%setup -q%{?with_git:n %{name}} |
%setup -q%{?with_git:n %{name}} |