From 3b73c14be82937f93ab0ea1e99a8405b1d5f99bd Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 13 2021 21:31:42 +0000 Subject: Import sysfsutils-2.1.1-1.el9 in CloudSIG xena --- diff --git a/.sysfsutils.metadata b/.sysfsutils.metadata index 114c772..61e64a6 100644 --- a/.sysfsutils.metadata +++ b/.sysfsutils.metadata @@ -1 +1 @@ -b3cb316c652b09ec66f93f4ea98a93a7a1001678 SOURCES/sysfsutils-2.1.0.tar.gz +faa77ba9b0725027c4725f7bec26e91dd80e9c66 SOURCES/v2.1.1.tar.gz diff --git a/SOURCES/gating.yml b/SOURCES/gating.yml new file mode 100644 index 0000000..dfb0041 --- /dev/null +++ b/SOURCES/gating.yml @@ -0,0 +1,9 @@ +--- !Policy +product_versions: + - fedora-* + decision_context: + - bodhi_update_push_testing + - bodhi_update_push_stable + subject_type: koji_build + rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/SOURCES/sysfsutils.rpmlintrc b/SOURCES/sysfsutils.rpmlintrc new file mode 100644 index 0000000..23e7eff --- /dev/null +++ b/SOURCES/sysfsutils.rpmlintrc @@ -0,0 +1,4 @@ +# missing documentation from subpackages +addFilter(r'^(libsysfs.*|sysfsutils)\.[^:]+: (E|W): no-documentation') +# spurious spelling error +addFilter(r'^(libsysfs.*|sysfsutils)\.[^:]+: (E|W): spelling-error.*sysfs ->') diff --git a/SPECS/sysfsutils.spec b/SPECS/sysfsutils.spec index a13a90b..c344277 100644 --- a/SPECS/sysfsutils.spec +++ b/SPECS/sysfsutils.spec @@ -1,18 +1,21 @@ +%global so_major_version 2 +%global so_minor_version 0 +%global so_patch_version 1 + Name: sysfsutils -URL: http://sourceforge.net/projects/linux-diag/ +Version: 2.1.1 +Release: 1%{?dist} +Summary: Utilities for interfacing with sysfs +URL: https://github.com/linux-ras/sysfsutils License: GPLv2 -Group: Development/Tools -Version: 2.1.0 -Release: 24%{?dist} -Summary: Utilities for interfacing with sysfs -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -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 -Patch2: sysfsutils-2.1.0-get_link.patch -Patch3: sysfsutils-2.1.0-manpages.patch -Patch4: sysfsutils-aarch64.patch +Source0: https://github.com/linux-ras/sysfsutils/archive/v%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: make +BuildRequires: gcc %description This package's purpose is to provide a set of utilities for interfacing @@ -20,7 +23,6 @@ with sysfs. %package -n libsysfs Summary: Shared library for interfacing with sysfs -Group: System Environment/Libraries License: LGPLv2+ %description -n libsysfs @@ -28,7 +30,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} @@ -37,55 +38,78 @@ libsysfs-devel provides the header files and static libraries required to build programs using the libsysfs API. %prep -%setup -q -%patch0 -p1 -b .redhatify -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 +%autosetup -p1 %build -%configure --disable-static --prefix=/usr -make %{?_smp_mflags} +./autogen +%configure --disable-static +%{make_build} %install -rm -rf $RPM_BUILD_ROOT - -make DESTDIR=$RPM_BUILD_ROOT install +%{make_install} +find %{buildroot} -type f -name "*.la" -delete -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/%{_libdir}/*.la - -%post -n libsysfs -p /sbin/ldconfig - -%postun -n libsysfs -p /sbin/ldconfig - -%clean -rm -rf $RPM_BUILD_ROOT +%ldconfig_scriptlets -n libsysfs %files -%defattr(-,root,root) +%license COPYING cmd/GPL +%doc AUTHORS README CREDITS 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 -%defattr(-,root,root) -/%{_libdir}/libsysfs.so.* -%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt lib/LGPL +%license COPYING lib/LGPL +/%{_libdir}/libsysfs.so.%{so_major_version} +/%{_libdir}/libsysfs.so.%{so_major_version}.%{so_minor_version}.%{so_patch_version} %files -n libsysfs-devel -%defattr(-,root,root) %dir %{_includedir}/sysfs %{_includedir}/sysfs/libsysfs.h %{_includedir}/sysfs/dlist.h /%{_libdir}/libsysfs.so +/%{_libdir}/pkgconfig/libsysfs.pc %changelog -* Mon Oct 22 2018 Neil Horman 2.1.0-24 -- Fix annocheck build issues (bz 1630632) +* Sat Feb 20 2021 Christopher Engelhard - 2.1.1-1 +- Update to 2.1.1 +- Remove all patches merged upstream +- Switched build to autotools +- Include upstream pkgconfig module +- Sysfsutils no longer includes /usr/bin/get_module + +* Wed Jan 27 2021 Fedora Release Engineering - 2.1.0-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Sep 21 2020 Christopher Engelhard - 2.1.0-32 +- fix GCC-11 build failure due to buffer overread, h/t Jeff Law + +* Mon Aug 17 2020 Christopher Engelhard - 2.1.0-31 +- use tarball hosted at new upstream site +- Fedora's patches have been merged upstream, so use those instead +- apply various unreleased upstream fixes that deal with compiler warnings + +* Wed Jul 29 2020 Christopher Engelhard - 2.1.0-30 +- specify .so and release versions via global vars +- update URL to reflect new upstream + +* Tue Jun 23 2020 Christopher Engelhard - 2.1.0-29 +- list .so files explicitly in %%files instead of via glob, cleanup spec + +* Fri Jan 31 2020 Fedora Release Engineering - 2.1.0-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 2.1.0-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 2.1.0-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Jul 22 2018 Peter Robinson 2.1.0-25 +- Fix build deps, use %%License, cleanup spec + +* Sat Jul 14 2018 Fedora Release Engineering - 2.1.0-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.1.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -133,7 +157,7 @@ rm -rf $RPM_BUILD_ROOT - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jun 17 2010 Anton Arapov - 2.1.0-8 -- Move libraries from /usr/lib to /lib since we need them +- Move libraries from /usr/lib to /lib since we need them during the system boot. (#605546) * Mon Jan 18 2010 Anton Arapov - 2.1.0-7