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 Name: lm_sensors
Version: 3.4.0 Version: 3.4.0
Release: 16.%{date}git%{shortcommit}%{?dist} Release: 17.%{date}git%{shortcommit}%{?dist}
Summary: Hardware monitoring tools Summary: Hardware monitoring tools
Group: Applications/System 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/ URL: http://github.com/groeck/lm-sensors/
Source0: http://github.com/groeck/lm-sensors/archive/%{commit}/lm-sensors-%{commit}.tar.gz Source0: http://github.com/groeck/lm-sensors/archive/%{commit}/lm-sensors-%{commit}.tar.gz
Source1: lm_sensors.sysconfig Source1: lm_sensors.sysconfig
# these 2 were taken from PLD-linux, Thanks! # This one was taken from PLD-linux, Thanks!
Source2: sensord.sysconfig Source2: sensord.sysconfig
Source3: lm_sensors-modprobe-wrapper Source3: lm_sensors-modprobe-wrapper
Source4: lm_sensors-modprobe-r-wrapper Source4: lm_sensors-modprobe-r-wrapper
@ -43,6 +49,7 @@ access and hardware monitoring.
%package libs %package libs
Summary: Lm_sensors core libraries Summary: Lm_sensors core libraries
Group: System Environment/Libraries Group: System Environment/Libraries
License: LGPLv2+
%description libs %description libs
Core libraries for lm_sensors applications 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 Summary: Development files for programs which will use lm_sensors
Group: Development/System Group: Development/System
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
# One manual page is licensed Verbatim (lib/libsensors.3). The rest is LGPLv2+.
License: LGPLv2+ and Verbatim
%description devel %description devel
The lm_sensors-devel package includes a header files and libraries for use 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 Summary: Daemon that periodically logs sensor readings
Group: System Environment/Daemons Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release} 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 %description sensord
Daemon that periodically logs sensor readings to syslog or a round-robin Daemon that periodically logs sensor readings to syslog or a round-robin
@ -71,6 +83,9 @@ database, and warns of sensor alarms.
%prep %prep
%setup -q -n lm-sensors-%{commit} %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 mv prog/init/README prog/init/README.initscripts
chmod -x prog/init/fancontrol.init chmod -x prog/init/fancontrol.init
@ -84,13 +99,12 @@ sed -i "s|\@WRAPPER_DIR\@|%{_libexecdir}/%{name}|" lm_sensors.service
%build %build
%set_build_flags %set_build_flags
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \ make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \
EXLDFLAGS="$LDFLAGS" PROG_EXTRA=sensord user EXLDFLAGS="$LDFLAGS" PROG_EXTRA=sensord BUILD_STATIC_LIB=0 user
%install %install
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} PROG_EXTRA=sensord \ make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} PROG_EXTRA=sensord \
DESTDIR=$RPM_BUILD_ROOT user_install DESTDIR=$RPM_BUILD_ROOT BUILD_STATIC_LIB=0 user_install
rm $RPM_BUILD_ROOT%{_libdir}/libsensors.a
ln -s sensors.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/sensors3.conf.5.gz ln -s sensors.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/sensors3.conf.5.gz
@ -172,6 +186,7 @@ fi
%files libs %files libs
%{_libdir}/*.so.* %{_libdir}/*.so.*
%license COPYING.LGPL
%files devel %files devel
%{_includedir}/sensors %{_includedir}/sensors
@ -188,6 +203,9 @@ fi
%changelog %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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild