1 |
%define git 1 |
%bcond_without git |
2 |
|
%if %{with git} |
3 |
%define gitdate 20120228 |
%define gitdate 20120228 |
4 |
|
%endif |
5 |
# Use Nvidia proprietary driver by default |
# Use nouveau driver by default |
6 |
%bcond_without nvidia |
%bcond_with nvidia |
7 |
|
|
8 |
|
|
9 |
Name: bumblebee |
Name: bumblebee |
16 |
# source from git repo git://github.com/Bumblebee-Project/Bumblebee.git |
# source from git repo git://github.com/Bumblebee-Project/Bumblebee.git |
17 |
# we need to change to develop branch to allow changing to nouveau without |
# we need to change to develop branch to allow changing to nouveau without |
18 |
# using nvidia paths |
# using nvidia paths |
19 |
Source0: https://github.com/downloads/Bumblebee-Project/Bumblebee/%{name}-%{!?git:%{version}}%{?git:%{gitdate}}.tar.%{?git:xz}%{!?git:gz} |
Source0: https://github.com/downloads/Bumblebee-Project/Bumblebee/%{name}-%{!?with_git:%{version}}%{?with_git:%{gitdate}}.tar.%{?with_git:xz}%{!?with_git:gz} |
20 |
BuildRequires: pkgconfig(x11) |
BuildRequires: pkgconfig(x11) |
21 |
BuildRequires: pkgconfig(glib-2.0) |
BuildRequires: pkgconfig(glib-2.0) |
22 |
BuildRequires: pkgconfig(libbsd) |
BuildRequires: pkgconfig(libbsd) |
84 |
%postun |
%postun |
85 |
# We need this since "%%_postun_groupdel %%{name}" doesnt remove the group if |
# We need this since "%%_postun_groupdel %%{name}" doesnt remove the group if |
86 |
# set to a user |
# set to a user |
87 |
groupdel bumblebee |
/usr/sbin/groupdel bumblebee |
88 |
|
|
89 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
90 |
%prep |
%prep |
91 |
%setup -q%{?git:n %{name}} |
%setup -q%{?with_git:n %{name}} |
92 |
|
|
93 |
%build |
%build |
94 |
%{?git:NOCONFIGURE=1 autoreconf -fi} |
%{?with_git:NOCONFIGURE=1 autoreconf -fi} |
95 |
%configure2_5x \ |
%configure2_5x \ |
96 |
%if %{with nvidia} |
%if %{with nvidia} |
97 |
CONF_DRIVER=nvidia \ |
CONF_DRIVER=nvidia \ |
98 |
CONF_DRIVER_MODULE_NVIDIA=nvidia-current \ |
CONF_DRIVER_MODULE_NVIDIA=nvidia-current |
99 |
|
%else |
100 |
|
CONF_DRIVER=nouveau |
101 |
%endif |
%endif |
102 |
%ifarch x86_64 |
%ifarch x86_64 |
103 |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current:%{_libdir}/nvidia-current \ |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current:%{_libdir}/nvidia-current \ |
114 |
%makeinstall_std |
%makeinstall_std |
115 |
|
|
116 |
install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}/lib/systemd/system/bumblebeed.service |
install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}/lib/systemd/system/bumblebeed.service |
|
|
|
|
|
|