Пакет lm_sensors3: 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 | %def_disable static Name: lm_sensors3 Version: 3.6.0 Release: alt1 Summary: Hardware Health Monitoring Tools License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain Group: System/Kernel and hardware Url: https://hwmon.wiki.kernel.org/ Packager: Afanasov Dmitry <ender@altlinux.org> # https://github.com/lm-sensors/lm-sensors Source: %name-%version.tar Source1: lm_sensors.init Source2: lm_sensors.service Source3: lm_sensors.sysconfig Source4: lm_sensors-modprobe-wrapper Source5: lm_sensors-modprobe-r-wrapper Source6: sensord.service Source7: sensord.sysconfig Source8: sensord-service-wrapper Patch1: lm_sensors3-3.4.0-alt-set_limit.patch Patch2: lm_sensors3-3.1.0-makefile-norpath.patch Requires: libsensors3 = %version-%release Provides: lm_sensors Obsoletes: lm_sensors Conflicts: lm_sensors < 3.1.0-alt1 Provides: lm_sensors = %version-%release BuildRequires: flex bison BuildRequires: librrd-devel >= 1.2.1 BuildPreReq: rpm-macros-make #define _unpackaged_files_terminate_build 1 %package utils Summary: Hardware Health Monitoring utils Group: Monitoring Requires: %name = %version-%release Provides: lm_sensors-utils Obsoletes: lm_sensors-utils Conflicts: sensorfw %package -n libsensors3 Summary: Shared library for hardware health monitoring tools Group: System/Libraries Provides: libsensors Obsoletes: libsensors %package -n libsensors3-devel Summary: Development environment for hardware health monitoring tools Group: Development/C Requires: libsensors3 = %version-%release Provides: %name-devel = %version Provides: libsensors-devel Obsoletes: libsensors-devel Conflicts: libsensors-devel %package -n libsensors3-devel-static Summary: Static library for developing hardware health monitoring tools Group: Development/C Requires: libsensors-devel = %version-%release Provides: libsensors-devel-static Obsoletes: libsensors-devel-static Conflicts: libsensors-devel-static %description This package contains a collection of user space tools for general SMBus access and hardware monitoring. SMBus, also known as System Management Bus, is a protocol for communicating through a I2C ('I squared C') bus. Many modern mainboards have a System Management Bus. There are a lot of devices which can be connected to a SMBus; the most notable are modern memory chips with EEPROM memories and chips for hardware monitoring. Most modern mainboards incorporate some form of hardware monitoring chips. These chips read things like chip temperatures, fan rotation speeds and voltage levels. There are quite a few different chips which can be used by mainboard builders for approximately the same results. %description utils lm_sensors utils %description -n libsensors3 This package contains shared library required for user space applications for general SMBus access and hardware monitoring. SMBus, also known as System Management Bus, is a protocol for communicating through a I2C ('I squared C') bus. Many modern mainboards have a System Management Bus. There are a lot of devices which can be connected to a SMBus; the most notable are modern memory chips with EEPROM memories and chips for hardware monitoring. %description -n libsensors3-devel This package contains environment for development of user space applications for general SMBus access and hardware monitoring. SMBus, also known as System Management Bus, is a protocol for communicating through a I2C ('I squared C') bus. Many modern mainboards have a System Management Bus. There are a lot of devices which can be connected to a SMBus; the most notable are modern memory chips with EEPROM memories and chips for hardware monitoring. %description -n libsensors3-devel-static This package contains static library for development of statically linked user space applications for general SMBus access and hardware monitoring. %prep %setup -q %patch1 -p2 %patch2 -p2 # fixing the sensord-service-wrapper path cp -p %SOURCE2 lm_sensors.service cp -p %SOURCE6 sensord.service sed -i "s|\@WRAPPER_DIR\@|%_libexecdir/%name|" lm_sensors.service sed -i "s|\@WRAPPER_DIR\@|%_libexecdir/%name|" sensord.service %build %add_optflags -D_FILE_OFFSET_BITS=64 %make_build_ext PROG_EXTRA=sensord %install %set_verify_elf_method strict %make DESTDIR=%buildroot \ PREFIX=/usr \ MANDIR=%_mandir \ ETCDIR=%_sysconfdir \ LIBDIR=%_libdir \ INCLUDEDIR=%_includedir \ LIBINCLUDEDIR=%_includedir/sensors \ PROG_EXTRA=sensord \ EXLDFLAGS= \ install mkdir -p %buildroot%_sysconfdir/sysconfig install -pm 644 %SOURCE3 %buildroot%_sysconfdir/sysconfig/lm_sensors install -pm 644 %SOURCE7 %buildroot%_sysconfdir/sysconfig/sensord # service files install -pD -m755 %SOURCE1 %buildroot%_initrddir/lm_sensors install -pD -m644 lm_sensors.service %buildroot%_unitdir/lm_sensors.service install -pD -m644 sensord.service %buildroot%_unitdir/sensord.service install -pD -m644 prog/init/fancontrol.service %buildroot%_unitdir/fancontrol.service # customized modprobe calls mkdir -p %buildroot%_libexecdir/%name install -pm 755 %SOURCE4 %buildroot%_libexecdir/%name/lm_sensors-modprobe-wrapper install -pm 755 %SOURCE5 %buildroot%_libexecdir/%name/lm_sensors-modprobe-r-wrapper # sensord service wrapper install -pm 755 %SOURCE8 %buildroot%_libexecdir/%name/sensord-service-wrapper install -pD -m755 prog/init/sensord.init %buildroot%_datadir/%name/sensord.init install -pD -m755 prog/init/fancontrol.init %buildroot%_datadir/%name/fancontrol.init install -pD -m755 prog/init/sysconfig-lm_sensors-convert %buildroot%_datadir/%name/sysconfig-lm_sensors-convert mkdir -p %buildroot%_datadir/%name cp -ar prog/tellerstats %buildroot%_datadir/%name %post %post_service lm_sensors %preun %preun_service lm_sensors %triggerun -- lm_sensors < 3 if [ $1 -eq 1 ] && [ $2 -eq 0 ] && [ -f /etc/sysconfig/lm_sensors ]; then echo "Try to convert /etc/sysconfig/lm_sensors to new format." cp /etc/sysconfig/lm_sensors /etc/sysconfig/lm_sensors.old if %_datadir/%name/sysconfig-lm_sensors-convert; then echo "Convertion OK" else echo "Convertion FAILED. Run sensors-detect." fi fi if [ $1 -eq 0 ] && [ $2 -eq 1 ] && [ -f /etc/sysconfig/lm_sensors.old ]; then echo "Restore saved /etc/sysconfig/lm_sensors for v2" mv /etc/sysconfig/lm_sensors.old /etc/sysconfig/lm_sensors fi %files %doc doc/ README CHANGES COPYING COPYING.LGPL %config(noreplace) %_sysconfdir/sensors3.conf %dir %_sysconfdir/sensors.d %config(noreplace) %_sysconfdir/sysconfig/lm_sensors %config %_initdir/lm_sensors %_unitdir/lm_sensors.service %_bindir/sensors %_bindir/sensors-conf-convert %_sbindir/sensors-detect %_man1dir/sensors.1* %_man5dir/sensors.conf.5* %_man5dir/sensors3.conf.5* %_man8dir/sensors-detect.8* %dir %_datadir/%name %_datadir/%name/sysconfig-lm_sensors-convert %dir %_libexecdir/%name %_libexecdir/%name/lm_sensors-modprobe*wrapper %files utils %_sbindir/sensord %_unitdir/sensord.service %_sbindir/fancontrol %_unitdir/fancontrol.service %ifarch %ix86 x86_64 %_sbindir/isadump %_sbindir/isaset %endif %_sbindir/pwmconfig %_datadir/%name %_man8dir/fancontrol.* %ifarch %ix86 x86_64 %_man8dir/isadump.* %_man8dir/isaset.* %endif %_man8dir/pwmconfig.* %_man8dir/sensors-conf-convert.8.* %_man8dir/sensord.* %exclude %_datadir/%name/sysconfig-lm_sensors-convert %_libexecdir/%name/sensord-service-wrapper %config(noreplace) %{_sysconfdir}/sysconfig/sensord %files -n libsensors3 %_libdir/*.so.* %exclude %_libdir/*.a %files -n libsensors3-devel %doc doc/libsensors-API.txt doc/developers %_libdir/*.so %_includedir/sensors %_man3dir/* %if_enabled static %files -n libsensors3-devel-static %_libdir/*.a %endif #static %changelog * Thu Jun 03 2021 L.A. Kostis <lakostis@altlinux.ru> 3.6.0-alt1 - new version 3.6.0. * Sat Apr 06 2019 L.A. Kostis <lakostis@altlinux.ru> 3.5.0-alt1 - new version 3.5.0 - update URL * Thu Apr 05 2018 Sergey Bolshakov <sbolshakov@altlinux.ru> 3.4.0-alt4 - lets keep isadump and friends on x86 only * Wed Nov 01 2017 Lenar Shakirov <snejok@altlinux.ru> 3.4.0-alt3 - sensord.service packaging fixed * Wed Feb 22 2017 Michael Shigorin <mike@altlinux.org> 3.4.0-alt2 - E2K: don't expect isadump(8) and isaset(8), like on %%arm * Sat Jul 30 2016 Anton Midyukov <antohami@altlinux.org> 3.4.0-alt1 - new version 3.4.0 (Closes: 30090) - update license - added provides and obsoletes lm_sensors (Closes: 28974) - added conflict with sensorfw (both contain the file /usr/sbin/sensord) - added lsb-header in lm_sensors.init * Thu Aug 07 2014 Denis Smirnov <mithraen@altlinux.ru> 3.3.2-alt3 - add systemd unit (#30221) - add fancontrol.service (#30186) * Thu Feb 28 2013 Sergey Bolshakov <sbolshakov@altlinux.ru> 3.3.2-alt2 - rebuilt with LFS * Fri Mar 30 2012 Sergey Y. Afonin <asy@altlinux.ru> 3.3.2-alt1 - new version * Thu Sep 22 2011 Sergey Y. Afonin <asy@altlinux.ru> 3.3.1-alt1 - new version * Mon Apr 18 2011 Anton Farygin <rider@altlinux.ru> 3.3.0-alt1 - new version * Mon Mar 21 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1.2-alt2.1.2 - Rebuilt for debuginfo * Sun Nov 14 2010 Denis Smirnov <mithraen@altlinux.ru> 3.1.2-alt2.1.1 - rebuild (with the help of girar-nmu utility) * Thu May 06 2010 Anton V. Boyarshinov <boyarsh@altlinux.ru> 3.1.2-alt2.1 - isa* turned off on ARM * Mon Apr 26 2010 Afanasov Dmitry <ender@altlinux.org> 3.1.2-alt2 - rebuild with new rrd * Thu Feb 04 2010 Anton Farygin <rider@altlinux.ru> 3.1.2-alt1 - removed kernel requires (closes #22888) - updated to release 3.1.2 - fixed build (remove rpath entry from /usr/bin/sensors) * Wed Jul 08 2009 Afanasov Dmitry <ender@altlinux.org> 3.1.1-alt1 - 3.1.1 release * Sat Jun 27 2009 Afanasov Dmitry <ender@altlinux.org> 3.1.0-alt4 - place headers into /usr/include/sensors (closes: #20595) * Sun May 31 2009 Afanasov Dmitry <ender@altlinux.org> 3.1.0-alt3 - right fix: versioning conflict * Sun May 31 2009 Afanasov Dmitry <ender@altlinux.org> 3.1.0-alt2 - remove Provides: lm_sensors. * Mon Apr 13 2009 Afanasov Dmitry <ender@altlinux.org> 3.1.0-alt1 - Initial build (spec based upon lm_sensors-2.10) |