/[packages]/backports/4/bumblebee/current/SPECS/bumblebee.spec
ViewVC logotype

Diff of /backports/4/bumblebee/current/SPECS/bumblebee.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 262387 by tmb, Wed Jun 20 21:48:47 2012 UTC revision 265469 by shlomif, Sat Jun 30 13:23:06 2012 UTC
# Line 1  Line 1 
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
# Line 15  URL:           https://github.com/Bumblebee-Proje Line 16  URL:           https://github.com/Bumblebee-Proje
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)
# Line 83  fi Line 84  fi
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 \
# Line 111  rm -rf %{buildroot} Line 114  rm -rf %{buildroot}
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
   
   

Legend:
Removed from v.262387  
changed lines
  Added in v.265469

  ViewVC Help
Powered by ViewVC 1.1.30