Package displaylink-driver: 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 | %define module_name evdi %define module_version 1.9.1 %define sover 0 %define rel 55.174 %ifarch x86_64 %define dl_dir x64-ubuntu-1604 %endif %ifarch %ix86 %define dl_dir x86-ubuntu-1604 %endif %ifarch armh %define dl_dir arm-linux-gnueabihf %endif Name: displaylink-driver Version: 5.4.1 Release: alt4.%rel Summary: DisplayLink library and tools Group: System/Kernel and hardware URL: https://www.synaptics.com/products/displaylink-graphics/ License: Proprietary Packager: L.A. Kostis <lakostis@altlinux.org> ExclusiveArch: %ix86 x86_64 armh BuildRequires: libdrm-devel libusb chrpath %ifarch armh BuildRequires: libgomp-devel %endif Source1: %name-%version-%rel.run Source2: %module_name.modprobe Source3: %name.service Source4: %name.sleep.sh Source5: %name-udev.sh Source6: %name.rules Requires: %name-firmware = %EVR lib%{module_name}%{sover} = %EVR %description DisplayLink technology makes it simple to connect any display to any computer that supports USB or Wi-Fi and provides universal solutions for a range of corporate, home and embedded applications where easy connectivity of displays enhances productivity. %package firmware Group: System/Kernel and hardware Summary: %name firmware BuildArch: noarch %description firmware Firmware files for %name. %package -n kernel-source-%module_name-%module_version Group: Development/Kernel Summary: Linux %module_name modules sources Packager: Kernel Maintainer Team <kernel@packages.altlinux.org> BuildRequires: kernel-build-tools BuildArch: noarch Provides: kernel-source-%module_name = %module_version %description -n kernel-source-%module_name-%module_version %module_name modules sources for Linux kernel %package -n lib%{module_name}%{sover} Group: System/Libraries Summary: %{module_name} support library Provides: lib%{module_name}%{sover} = %module_version %description -n lib%{module_name}%{sover} %{module_name} support library %prep %setup -T -c sh %SOURCE1 --nodiskspace --keep --target tmp ||: mv tmp/* . && rm -rf tmp %setup -D -T %build tar -xf %{module_name}.tar.gz && pushd library CFLAGS="%optflags" \ %make_build popd %install %brp_strip_none %_bindir/DisplayLinkManager %set_debuginfo_skiplist %_bindir/DisplayLinkManager install -pD -m644 %SOURCE2 %buildroot%_sysconfdir/modprobe.d/%module_name.conf # kernel-source install mkdir -p {kernel-source-%module_name-%module_version,%buildroot%_usrsrc/kernel/sources} install -m644 module/* kernel-source-%module_name-%module_version/ tar -c kernel-source-%module_name-%module_version | bzip2 -c > \ %buildroot%_usrsrc/kernel/sources/kernel-source-%module_name-%module_version.tar.bz2 # library pushd library %makeinstall DESTDIR=%buildroot LIBDIR=%_libdir popd # install scripts mkdir -p %buildroot{%_bindir,%_unitdir,%_udev_rulesdir,%_systemd_dir,%_datadir/%name,%_logdir/displaylink} install -m0755 %dl_dir/DisplayLinkManager %buildroot%_bindir/ chrpath -d %buildroot%_bindir/DisplayLinkManager install -m 0644 %SOURCE3 %buildroot%_unitdir/%name.service install -pD -m 0755 %SOURCE4 %buildroot%_systemd_dir/system-sleep/displaylink.sh install -m 0755 %SOURCE5 %buildroot%_bindir/ install -m 0644 %SOURCE6 %buildroot%_udev_rulesdir/99-displaylink.rules # firmware files install -m 0644 *.spkg %buildroot%_datadir/%name/ %post %post_service %name.service %preun %preun_service %name.service %files %doc LICENSE 3rd_party_licences.txt %_bindir/* %_unitdir/* %_sysconfdir/modprobe.d/%module_name.conf %_udev_rulesdir/99-displaylink.rules %_systemd_dir/system-sleep/displaylink.sh %dir %_logdir/displaylink %files -n lib%{module_name}%{sover} %_libdir/*.so* %files firmware %_datadir/%name %files -n kernel-source-%module_name-%module_version %_usrsrc/kernel/sources/kernel-source-%module_name-%module_version.tar.bz2 %changelog * Mon Nov 29 2021 L.A. Kostis <lakostis@altlinux.ru> 5.4.1-alt4.55.174 - kernel-source: make package noarch. * Fri Nov 26 2021 L.A. Kostis <lakostis@altlinux.ru> 5.4.1-alt3.55.174 - Update udev script: + fix add/remove actions + code cleanups. * Thu Nov 25 2021 L.A. Kostis <lakostis@altlinux.ru> 5.4.1-alt2.55.174 - Add logdir. - Add armh support. - Improve udev and service scripts. - Handle service changes. * Mon Nov 22 2021 L.A. Kostis <lakostis@altlinux.ru> 5.4.1-alt1.55.174 - Initial build for ALTLinux. |