Пакет open-vm-tools: 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 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | %define _unpackaged_files_terminate_build 1 %def_enable vgauth %def_enable xmlsec1 %def_disable xmlsecurity %def_enable deploypkg %def_enable multimon %def_without dnet %def_enable resolutionkms %def_enable servicediscovery %def_without gtk2 %def_without gtkmm %def_with gtk3 %def_with gtkmm3 %global majorversion 11.1 %global minorversion 5 %global toolsbuild 16036546 %global toolsversion %majorversion.%minorversion %global toolsdaemon vmtoolsd %global vgauthdaemon vgauthd Name: open-vm-tools Version: %toolsversion Release: alt1 Summary: Open Virtual Machine Tools for virtual machines hosted on VMware Group: System/Kernel and hardware License: GPLv2 Url: http://%name.sourceforge.net/ Source0: %name-%version.tar Source1: %toolsdaemon.service Source11: %vgauthdaemon.service Source2: %toolsdaemon.init Source12: %vgauthdaemon.init Source3: %name.rules Source4: %name-desktop.tmpfile Source5: %toolsdaemon.pam Source6: %name-%vgauthdaemon.tmpfile Source99: 99-vmware-scsi-udev.rules Patch100: add-altlinux-open-vm-tools.patch ExclusiveArch: %ix86 x86_64 aarch64 # Need for vgauth %{?_enable_xmlsec1:Requires: libxmlsec1-openssl >= 1.2.24-alt2} BuildRequires: gcc-c++ BuildRequires: doxygen # Fuse is optional and enables vmblock-fuse BuildRequires: libfuse-devel BuildRequires: glib2-devel >= 2.34.0 BuildRequires: gtk2-devel >= 2.4.0 BuildRequires: libgtkmm2-devel libsigc++2-devel BuildRequires: libgtk+3-devel >= 2.4.0 BuildRequires: libgtkmm3-devel libsigc++2-devel BuildRequires: libpam-devel BuildRequires: libtirpc-devel %{?_with_dnet:BuildRequires: libdnet-devel} %{?_enable_multimon:BuildRequires: libX11-devel libXext-devel libXinerama-devel libXi-devel libXrender-devel libXrandr-devel libXtst-devel libICE-devel libSM-devel libXcomposite-devel} %{?_enable_deploypkg:BuildRequires: libmspack-devel} %{?_enable_vgauth:BuildRequires: libssl-devel} %{?_enable_xmlsec1:BuildRequires: libxmlsec1-devel libxml2-devel} %{?_enable_xmlsecurity:BuildRequires: libxml-security-c-devel libxerces-c-devel} %{?_enable_resolutionkms:BuildRequires: libdrm-devel libudev-devel} #BuildRequires: kernel-headers-modules-std-def %description The %name project is an open source implementation of VMware Tools. It is a suite of open source virtualization utilities and drivers to improve the functionality, user experience and administration of VMware virtual machines. This package contains only the core user-space programs and libraries of %name. %package desktop Summary: User experience components for Open Virtual Machine Tools Group: System/Configuration/Other Requires: %name = %version-%release %description desktop This package contains only the user-space programs and libraries of %name that are essential for improved user experience of VMware virtual machines. %package devel Summary: Development libraries for Open Virtual Machine Tools Group: Development/C Requires: %name = %version-%release %description devel This package contains only the user-space programs and libraries of %name that are essential for developing customized applications for VMware virtual machines. %package test Summary: Test utilities for Open Virtual Machine Tools Group: Development/Other Requires: %name = %version-%release %description test This package contains only the test utilities for %name that are useful for verifying the functioning of %name in VMware virtual machines. %prep %setup #%%patch100 -p1 rm -rf autom4te.cache rm -f configure %build export CXXFLAGS="$RPM_OPT_FLAGS -std=gnu++11" %autoreconf %undefine _configure_gettext %configure \ --without-kernel-modules \ --without-root-privileges \ %{subst_enable vgauth} \ %{subst_enable xmlsec1} \ %{subst_enable xmlsecurity} \ %{subst_enable deploypkg} \ %{subst_enable multimon} \ %{subst_with dnet} \ %{subst_with gtk2} \ %{subst_with gtkmm} \ %{subst_with gtk3} \ %{subst_with gtkmm3} \ %{subst_enable resolutionkms} \ %{subst_enable servicediscovery} \ --disable-static # sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %make_build %install # export DONT_STRIP=1 %makeinstall_std mv %buildroot%_sysconfdir/vmware-tools/tools.conf.example %buildroot%_sysconfdir/vmware-tools/tools.conf chmod a-x %buildroot%_sysconfdir/vmware-tools/*.conf # Remove exec bit from config files chmod a-x %buildroot%_sysconfdir/pam.d/* %if_enabled vgauth chmod a-x %buildroot%_sysconfdir/vmware-tools/vgauth/schemas/* %endif # Remove exec bit on udev rules chmod a-x %buildroot%_udevrulesdir/99-vmware-scsi-udev.rules # Remove the DOS line endings sed -i "s|\r||g" README # Remove "Encoding" key from the "Desktop Entry" sed -i "s|^Encoding.*$||g" %buildroot%_sysconfdir/xdg/autostart/vmware-user.desktop # Remove unnecessary files from packaging find %buildroot%_libdir -name '*.la' -delete rm -fr %buildroot%_defaultdocdir rm -f docs/api/build/html/FreeSans.ttf # Remove mount.vmhgfs & symlink rm -fr %buildroot%_sbindir %buildroot/sbin/mount.vmhgfs # Systemd unit files install -p -m 644 -D %SOURCE1 %buildroot%_unitdir/%toolsdaemon.service install -p -m 644 -D %SOURCE11 %buildroot%_unitdir/%vgauthdaemon.service # SysV init script install -p -m 755 -D %SOURCE2 %buildroot%_initdir/%toolsdaemon install -p -m 755 -D %SOURCE12 %buildroot%_initdir/%vgauthdaemon # udev rules install -p -m 644 -D %SOURCE3 %buildroot%_udevrulesdir/98-%name.rules # install fixed udev rules install -p -m 644 -D %SOURCE99 %buildroot%_udevrulesdir/99-vmware-scsi-udev.rules # tmpfiles install -p -m 644 -D %SOURCE4 %buildroot%_tmpfilesdir/%name-desktop.conf install -p -m 644 -D %SOURCE6 %buildroot%_tmpfilesdir/%name-%vgauthdaemon.conf # pam install -p -m 644 -D %SOURCE5 %buildroot%_sysconfdir/pam.d/%toolsdaemon mkdir -p %buildroot%_runtimedir/vmware # 'make check' in open-vm-tools rebuilds docs and ends up regenerating # the font file. We can add %%check secion once 'make check' is fixed # upstream %post # Setup mount point for Shared Folders if [ -f %_bindir/vmware-checkvm -a \ -f %_bindir/vmhgfs-fuse ] && \ %_bindir/vmware-checkvm &> /dev/null && \ %_bindir/vmware-checkvm -p | grep -q Workstation && \ %_bindir/vmhgfs-fuse -e &> /dev/null; then mkdir -p /mnt/hgfs fi %post_service %vgauthdaemon %post_service %toolsdaemon %preun %preun_service %toolsdaemon %preun_service %vgauthdaemon # Tell VMware that open-vm-tools is being uninstalled if [ "$1" = "0" -a \ -e %_bindir/vmware-checkvm -a \ -e %_bindir/vmware-rpctool ] && \ %_bindir/vmware-checkvm &> /dev/null; then %_bindir/vmware-rpctool 'tools.set.version 0' &> /dev/null || /bin/true if [ -d /mnt/hgfs ] && \ %{_bindir}/vmware-checkvm -p | grep -q Workstation; then umount /mnt/hgfs &> /dev/null || /bin/true rmdir /mnt/hgfs &> /dev/null || /bin/true fi fi %files %doc AUTHORS ChangeLog COPYING NEWS README %config(noreplace) %_sysconfdir/pam.d/* %dir %_sysconfdir/vmware-tools %if_enabled vgauth %dir %_sysconfdir/vmware-tools/vgauth %dir %_sysconfdir/vmware-tools/vgauth/schemas %config(noreplace) %_sysconfdir/vmware-tools/*.conf %config %_sysconfdir/vmware-tools/vgauth/schemas/* %_initdir/%vgauthdaemon %_unitdir/%vgauthdaemon.service %_runtimedir/vmware %_tmpfilesdir/%name-%vgauthdaemon.conf %_bindir/vmware-vgauth-cmd %_bindir/VGAuthService %_libdir/libvgauth.so.* %endif %_sysconfdir/vmware-tools/*-vm-default %_sysconfdir/vmware-tools/scripts %_sysconfdir/vmware-tools/statechange.subr %_bindir/vm-support %_bindir/vmhgfs-fuse %_bindir/vmtoolsd %_bindir/vmware-checkvm %_bindir/vmware-hgfsclient %_bindir/vmware-namespace-cmd %_bindir/vmware-rpctool %_bindir/vmware-toolbox-cmd %_bindir/vmware-xferlogs %_libdir/libDeployPkg.so.* %_libdir/libguestlib.so.* %_libdir/libhgfs.so.* %_libdir/libvmtools.so.* %dir %_libdir/%name/ %dir %_libdir/%name/plugins %dir %_libdir/%name/plugins/common %_libdir/%name/plugins/common/*.so %dir %_libdir/%name/plugins/vmsvc %_libdir/%name/plugins/vmsvc/*.so %_datadir/%name/ %_unitdir/%toolsdaemon.service %_initdir/%toolsdaemon %_udevrulesdir/*.rules %if_enabled servicediscovery %_libdir/%name/serviceDiscovery %endif %files desktop %_sysconfdir/xdg/autostart/*.desktop %_bindir/vmware-user %_bindir/vmware-user-suid-wrapper %_bindir/vmware-vmblock-fuse %_libdir/%name/plugins/vmusr/ %_tmpfilesdir/%name-desktop.conf %files devel %doc docs/api/build/* %_includedir/vmGuestLib %_includedir/libDeployPkg %_libdir/pkgconfig/*.pc %_libdir/libDeployPkg.so %_libdir/libguestlib.so %_libdir/libhgfs.so %_libdir/libvmtools.so %if_enabled vgauth %_libdir/libvgauth.so %endif %if_enabled vgauth %files test %_bindir/vmware-vgauth-smoketest %endif %changelog * Tue Sep 08 2020 Andrew A. Vasilyev <andy@altlinux.org> 11.1.5-alt1 - 11.1.5 * Sun May 31 2020 Alexey Shabalin <shaba@altlinux.org> 11.1.0-alt1 - 11.1.0 - build for aarch64 - enable servicediscovery * Fri Mar 06 2020 Alexey Shabalin <shaba@altlinux.org> 11.0.5-alt3 - readd detect ALT Distro * Thu Mar 05 2020 Alexey Shabalin <shaba@altlinux.org> 11.0.5-alt2 - enable deploypkg support - add test package * Fri Feb 21 2020 Alexey Shabalin <shaba@altlinux.org> 11.0.5-alt1 - 11.0.5 * Sat Sep 28 2019 Alexey Shabalin <shaba@altlinux.org> 11.0.0-alt1 - 11.0.0 * Sun Mar 24 2019 Alexey Shabalin <shaba@altlinux.org> 10.3.10-alt1 - 10.3.10 * Wed Nov 28 2018 Alexey Shabalin <shaba@altlinux.org> 10.3.5-alt1 - 10.3.5 * Mon Sep 10 2018 Alexey Shabalin <shaba@altlinux.org> 10.3.0-alt1 - 10.3.0 * Thu Sep 06 2018 Grigory Ustinov <grenka@altlinux.org> 10.1.10-alt1.S1.1 - NMU: rebuild with new openssl. * Sun Aug 06 2017 Alexey Shabalin <shaba@altlinux.ru> 10.1.10-alt1 - 10.1.10 - build with gtk3 to sisyphus, and with gtk2 to p8 - build with vgauth * Thu Jul 21 2016 Sergey V Turchin <zerg@altlinux.org> 10.0.7-alt4 - add basealt detection * Wed Mar 23 2016 Sergey V Turchin <zerg@altlinux.org> 10.0.7-alt3 - fix to use git repo for source instead of tarball * Thu Feb 25 2016 Sergey V Turchin <zerg@altlinux.org> 10.0.7-alt1.M70P.1 - build for M70P * Wed Feb 24 2016 Sergey V Turchin <zerg@altlinux.org> 10.0.7-alt2 - fix search for alt linux - clean package release from toolsbuild * Wed Feb 24 2016 Sergey V Turchin <zerg@altlinux.org> 10.0.7-alt1.3227872 - new version * Fri Dec 25 2015 Alexey Shabalin <shaba@altlinux.ru> 10.0.5-alt1.3227872 - 10.0.5 * Mon Sep 14 2015 Alexey Shabalin <shaba@altlinux.ru> 10.0.0-alt1.3000743 - open-vm-tools-10.0.0-3000743 * Thu Aug 13 2015 Alexey Shabalin <shaba@altlinux.ru> 9.10.2-alt1 - 9.10.2 * Sat Jun 13 2015 Gleb F-Malinovskiy <glebfm@altlinux.org> 9.10.0-alt1.1 - Rebuilt for gcc5 C++11 ABI. * Mon Apr 13 2015 Alexey Shabalin <shaba@altlinux.ru> 9.10.0-alt1 - 9.10.0 * Sat Apr 11 2015 Andrey Cherepanov <cas@altlinux.org> 9.4.6-alt1 - Initial build in Sisyphus (from Fedora) |