Package bumblebee: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | %define if_ver_gt() %if "%(rpmvercmp '%1' '%2')" > "0" %define if_ver_gteq() %if "%(rpmvercmp '%1' '%2')" >= "0" %define if_ver_lt() %if "%(rpmvercmp '%2' '%1')" > "0" %define if_ver_lteq() %if "%(rpmvercmp '%2' '%1')" >= "0" %{expand: %(sed 's,^%%,%%global ,' /usr/lib/rpm/macros.d/ubt)} %define ubt_id %__ubt_branch_id %define bumblebeed_group xgrp %define pm_metod bbswitch Name: bumblebee Version: 3.2.1 Release: alt11 Summary: Bumblebee - support for NVidia Optimus laptops on Linux Group: System/Kernel and hardware License: GPLv3 Url: http://bumblebee-project.org Source: %name-%version.tar Source1: bumblebeed.in Source2: bumblebee_detect_optimus # Configure the name of the Bumbleblee server group Patch1: %name-3.1-alt-CONF_GID.patch # https://github.com/Bumblebee-Project/Bumblebee/issues/699 Patch2: nvidia_modeset-detection_bug699_01.patch Patch3: nvidia_modeset-detection_bug699_02.patch Patch4: nvidia_umv_detection_bug699.patch # https://github.com/Bumblebee-Project/Bumblebee/issues/573 Patch5: hexadicimal_bug573.patch Patch6: nvidia_modeset-detection_bug699_03.patch Patch7: alt-disable-xdrvswitch.patch Requires: VirtualGL %ifarch %ix86 x86_64 Requires: nvidia_glx_common %endif # see ALT #29213 # Requires: bbswitch BuildRequires(pre): rpm-build-ubt BuildRequires: help2man libX11-devel glib2-devel BuildRequires: libbsd-devel >= 0.2.0 %description Bumblebee daemon is a rewrite of the original Bumblebee service, providing an elegant and stable means of managing Optimus hybrid graphics chipsets. A primary goal of this project is to not only enable use of the discrete GPU for rendering, but also to enable smart power management of the dGPU when it's not in use. To enable power management functionality you need to install kernel-modules-bbswitch package for your running kernel. %prep %setup %patch1 -b .gid %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %if_ver_lt %ubt_id M90 %patch7 -p1 %endif cp %SOURCE1 scripts/sysvinit/ %build %autoreconf %configure CONF_GID=%bumblebeed_group \ CONF_DRIVER=nvidia \ CONF_DRIVER_MODULE_NVIDIA=nvidia \ CONF_LDPATH_NVIDIA=%_x11sysconfdir/lib_nvidia/current \ CONF_MODPATH_NVIDIA=%_x11sysconfdir/%{_lib}_nvidia/current,%_x11modulesdir \ CONF_PM_METHOD=%pm_metod %make_build %install %makeinstall_std install -pD -m644 scripts/systemd/bumblebeed.service %buildroot/%systemd_unitdir/bumblebeed.service install -pD -m755 scripts/sysvinit/bumblebeed %buildroot/%_initdir/bumblebeed install -pD -m755 %SOURCE2 %buildroot/%_sysconfdir/firsttime.d/`basename %SOURCE2` %pre groupadd -r -f %bumblebeed_group %post %post_service bumblebeed %preun %preun_service bumblebeed %files %_sbindir/bumblebeed %_bindir/optirun %exclude %_bindir/%name-bugreport /lib/udev/rules.d/99-bumblebee-nvidia-dev.rules %_sysconfdir/bash_completion.d/%name %_sysconfdir/firsttime.d/* %dir %_sysconfdir/%name %config %_sysconfdir/%name/%name.conf %config %_sysconfdir/%name/xorg.conf.nouveau %config %_sysconfdir/%name/xorg.conf.nvidia %dir %_sysconfdir/%name/xorg.conf.d %config %_sysconfdir/%name/xorg.conf.d/10-dummy.conf %config %systemd_unitdir/bumblebeed.service %config %_initdir/bumblebeed %_man1dir/bumblebeed.1* %_man1dir/optirun.1* %doc README.markdown doc/RELEASE_NOTES* %exclude %_docdir/bumblebee %changelog * Tue Dec 11 2018 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt11 - disable service if Optimus not found * Fri Oct 19 2018 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt10 - remove -noxdrvswitch for new xorg-server * Wed Apr 04 2018 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt9%ubt - fix requires * Wed Apr 04 2018 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt8%ubt - detect end enable service on first start * Wed Nov 29 2017 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt6.M80P.1 - build for M80P * Wed Nov 29 2017 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt7 - disable OpenGL libs switching * Wed Nov 29 2017 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt6 - fix nvidia module path on 32-bit systems * Wed Nov 29 2017 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt4.M80P.1 - build for M80P * Wed Nov 29 2017 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt5 - fix nvidia module path on 32-bit systems * Tue Nov 28 2017 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt3.M80P.1 - build for M80P * Tue Nov 28 2017 Sergey V Turchin <zerg@altlinux.org> 3.2.1-alt4 - fix unload nvidia_drm - fix nvidia libs path - fix nvidia module path * Tue Apr 05 2016 Mikhail Efremov <sem@altlinux.org> 3.2.1-alt3 - Add patches from upstream's bug tracker (closes: #31863). * Tue Jul 23 2013 Yuri N. Sedunov <aris@altlinux.org> 3.2.1-alt2 - removed forbidden dep on bbswitch (ALT #29213) * Fri Jul 05 2013 Yuri N. Sedunov <aris@altlinux.org> 3.2.1-alt1 - 3.2.1 * Tue Feb 26 2013 Yuri N. Sedunov <aris@altlinux.org> 3.1-alt1 - 3.1 (ALT #28605) - removed "noreplace" tag for bumblebee.conf * Tue Jan 24 2012 Yuri N. Sedunov <aris@altlinux.org> 3.0-alt2 - enabled power management via bbswitch kernel module * Mon Jan 23 2012 Yuri N. Sedunov <aris@altlinux.org> 3.0-alt1 - first test build for Sisyphus - set bumblebeed group to xgrp - set nvidia driver by default - TODO: power management via bbswitch |