Corrected the License tag

Also disabled building the static library.
This commit is contained in:
Ondřej Lysoněk 2018-07-18 10:51:46 +02:00
parent d82b916927
commit 3aaa411520

View File

@ -7,16 +7,22 @@
Name: lm_sensors
Version: 3.4.0
Release: 16.%{date}git%{shortcommit}%{?dist}
Release: 17.%{date}git%{shortcommit}%{?dist}
Summary: Hardware monitoring tools
Group: Applications/System
License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain
# Some man pages are licensed Verbatim (lib/sensors.conf.5,
# prog/sensors/sensors.1). Files from dist-git are licensed
# MIT (according to the Fedora Project Contributor Agreement
# https://fedoraproject.org/wiki/Licensing:Main#License_of_Fedora_SPEC_Files).
# The rest is GPLv2+.
License: GPLv2+ and Verbatim and MIT
URL: http://github.com/groeck/lm-sensors/
Source0: http://github.com/groeck/lm-sensors/archive/%{commit}/lm-sensors-%{commit}.tar.gz
Source1: lm_sensors.sysconfig
# these 2 were taken from PLD-linux, Thanks!
# This one was taken from PLD-linux, Thanks!
Source2: sensord.sysconfig
Source3: lm_sensors-modprobe-wrapper
Source4: lm_sensors-modprobe-r-wrapper
@ -43,6 +49,7 @@ access and hardware monitoring.
%package libs
Summary: Lm_sensors core libraries
Group: System Environment/Libraries
License: LGPLv2+
%description libs
Core libraries for lm_sensors applications
@ -52,6 +59,8 @@ Core libraries for lm_sensors applications
Summary: Development files for programs which will use lm_sensors
Group: Development/System
Requires: %{name}-libs = %{version}-%{release}
# One manual page is licensed Verbatim (lib/libsensors.3). The rest is LGPLv2+.
License: LGPLv2+ and Verbatim
%description devel
The lm_sensors-devel package includes a header files and libraries for use
@ -62,6 +71,9 @@ when building applications that make use of sensor data.
Summary: Daemon that periodically logs sensor readings
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
# One man page is licensed Verbatim (prog/sensord/sensord.8). Files from
# dist-git are licensed MIT according to the FPCA. The rest is GPLv2+.
License: GPLv2+ and Verbatim and MIT
%description sensord
Daemon that periodically logs sensor readings to syslog or a round-robin
@ -71,6 +83,9 @@ database, and warns of sensor alarms.
%prep
%setup -q -n lm-sensors-%{commit}
# Remove currently unused files to make sure we've got the license right
rm -f prog/init/sysconfig-lm_sensors-convert prog/hotplug/unhide_ICH_SMBus
mv prog/init/README prog/init/README.initscripts
chmod -x prog/init/fancontrol.init
@ -84,13 +99,12 @@ sed -i "s|\@WRAPPER_DIR\@|%{_libexecdir}/%{name}|" lm_sensors.service
%build
%set_build_flags
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \
EXLDFLAGS="$LDFLAGS" PROG_EXTRA=sensord user
EXLDFLAGS="$LDFLAGS" PROG_EXTRA=sensord BUILD_STATIC_LIB=0 user
%install
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} PROG_EXTRA=sensord \
DESTDIR=$RPM_BUILD_ROOT user_install
rm $RPM_BUILD_ROOT%{_libdir}/libsensors.a
DESTDIR=$RPM_BUILD_ROOT BUILD_STATIC_LIB=0 user_install
ln -s sensors.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/sensors3.conf.5.gz
@ -172,6 +186,7 @@ fi
%files libs
%{_libdir}/*.so.*
%license COPYING.LGPL
%files devel
%{_includedir}/sensors
@ -188,6 +203,9 @@ fi
%changelog
* Tue Jul 17 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.4.0-17.20180522git70f7e08
- Corrected the License tag
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-16.20180522git70f7e08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild