Fix build deps, use %%License, cleanup spec
This commit is contained in:
parent
e338e84821
commit
ba239f3781
@ -1,11 +1,10 @@
|
||||
Name: sysfsutils
|
||||
Version: 2.1.0
|
||||
Release: 25%{?dist}
|
||||
Summary: Utilities for interfacing with sysfs
|
||||
URL: http://sourceforge.net/projects/linux-diag/
|
||||
License: GPLv2
|
||||
Group: Development/Tools
|
||||
Version: 2.1.0
|
||||
Release: 24%{?dist}
|
||||
|
||||
Summary: Utilities for interfacing with sysfs
|
||||
Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
|
||||
Patch0: sysfsutils-2.0.0-redhatify.patch
|
||||
Patch1: sysfsutils-2.0.0-class-dup.patch
|
||||
@ -13,13 +12,14 @@ Patch2: sysfsutils-2.1.0-get_link.patch
|
||||
Patch3: sysfsutils-2.1.0-manpages.patch
|
||||
Patch4: sysfsutils-aarch64.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
This package's purpose is to provide a set of utilities for interfacing
|
||||
with sysfs.
|
||||
|
||||
%package -n libsysfs
|
||||
Summary: Shared library for interfacing with sysfs
|
||||
Group: System Environment/Libraries
|
||||
License: LGPLv2+
|
||||
|
||||
%description -n libsysfs
|
||||
@ -27,7 +27,6 @@ Library used in handling linux kernel sysfs mounts and their various files.
|
||||
|
||||
%package -n libsysfs-devel
|
||||
Summary: Static library and headers for libsysfs
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2+
|
||||
Requires: libsysfs = %{version}-%{release}
|
||||
|
||||
@ -48,26 +47,25 @@ to build programs using the libsysfs API.
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/dlist_test $RPM_BUILD_ROOT%{_bindir}/get_bus_devices_list $RPM_BUILD_ROOT%{_bindir}/get_class_dev $RPM_BUILD_ROOT%{_bindir}/get_classdev_parent $RPM_BUILD_ROOT%{_bindir}/get_device $RPM_BUILD_ROOT%{_bindir}/get_driver $RPM_BUILD_ROOT%{_bindir}/testlibsysfs $RPM_BUILD_ROOT%{_bindir}/write_attr
|
||||
rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
|
||||
find %{buildroot} -type f -name "*.la" -delete
|
||||
|
||||
%post -n libsysfs -p /sbin/ldconfig
|
||||
|
||||
%postun -n libsysfs -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING cmd/GPL
|
||||
%doc AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt
|
||||
%{_bindir}/systool
|
||||
%{_bindir}/get_module
|
||||
%{_mandir}/man1/systool.1.gz
|
||||
%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL
|
||||
|
||||
%files -n libsysfs
|
||||
%license COPYING lib/LGPL
|
||||
/%{_lib}/libsysfs.so.*
|
||||
%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt lib/LGPL
|
||||
|
||||
%files -n libsysfs-devel
|
||||
%dir %{_includedir}/sysfs
|
||||
@ -77,6 +75,9 @@ rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0-25
|
||||
- Fix build deps, use %%License, cleanup spec
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user