068827
Name:		kmod
068827
Version:	25
5fb698
Release:	19%{?dist}
068827
Summary:	Linux kernel module management utilities
068827
068827
Group:		System Environment/Kernel
068827
License:	GPLv2+
068827
URL:		http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
068827
Source0:	https://www.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
068827
Source1:	weak-modules
068827
Source2:	depmod.conf.dist
068827
Exclusiveos:	Linux
068827
068827
Patch01:	kmod-signature-do-not-report-wrong-data-for-pkc-7-signatu.patch
068827
Patch02:	kmod-libkmod-signature-implement-pkcs7-parsing-with-opens.patch
8e4cb0
Patch03:	kmod-modprobe-ignore-builtin-module-on-recursive-removing.patch
5fb698
Patch04:	0001-depmod-prevent-module-dependency-files-missing-durin.patch
5fb698
Patch05:	0002-depmod-prevent-module-dependency-files-corruption-du.patch
068827
068827
BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
068827
BuildRequires:	chrpath
068827
BuildRequires:	zlib-devel
068827
BuildRequires:	xz-devel
068827
BuildRequires:  libxslt
068827
BuildRequires:  openssl-devel
068827
# Remove it as soon as no need for Patch02 anymore (Makefile.am updated)
068827
BuildRequires:  automake autoconf libtool
068827
068827
Provides:	module-init-tools = 4.0-1
068827
Obsoletes:	module-init-tools < 4.0-1
068827
Provides:	/sbin/modprobe
068827
068827
%description
068827
The kmod package provides various programs needed for automatic
068827
loading and unloading of modules under 2.6, 3.x, and later kernels, as well
068827
as other module management programs. Device drivers and filesystems are two
068827
examples of loaded and unloaded modules.
068827
068827
%package libs
068827
Summary:	Libraries to handle kernel module loading and unloading
068827
License:	LGPLv2+
068827
Group:		System Environment/Libraries
068827
068827
%description libs
068827
The kmod-libs package provides runtime libraries for any application that
068827
wishes to load or unload Linux kernel modules from the running system.
068827
068827
%package devel
068827
Summary:	Header files for kmod development
068827
Group:		Development/Libraries
068827
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
068827
068827
%description devel
068827
The kmod-devel package provides header files used for development of
068827
applications that wish to load or unload Linux kernel modules.
068827
068827
%prep
068827
%setup -q
068827
%patch01 -p1
068827
%patch02 -p1
8e4cb0
%patch03 -p1
5fb698
%patch04 -p1
5fb698
%patch05 -p1
068827
068827
%build
068827
export V=1
068827
aclocal
068827
autoreconf --install --symlink
068827
%configure \
068827
  --with-zlib \
068827
  --with-xz   \
068827
  --with-openssl
068827
make %{?_smp_mflags}
068827
068827
%install
068827
make install DESTDIR=$RPM_BUILD_ROOT
068827
pushd $RPM_BUILD_ROOT/%{_mandir}/man5
068827
ln -s modprobe.d.5.gz modprobe.conf.5.gz
068827
popd
068827
068827
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
068827
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
068827
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modprobe
068827
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modinfo
068827
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/insmod
068827
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/rmmod
068827
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/depmod
068827
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/lsmod
068827
068827
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
068827
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
068827
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
068827
068827
mkdir -p $RPM_BUILD_ROOT/sbin
068827
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
068827
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
068827
068827
%post libs -p /sbin/ldconfig
068827
068827
%postun libs -p /sbin/ldconfig
068827
068827
%files
068827
%defattr(-,root,root,-)
068827
%dir %{_sysconfdir}/depmod.d
068827
%dir %{_sysconfdir}/modprobe.d
068827
%dir %{_prefix}/lib/modprobe.d
068827
%{_bindir}/kmod
068827
%{_sbindir}/modprobe
068827
%{_sbindir}/modinfo
068827
%{_sbindir}/insmod
068827
%{_sbindir}/rmmod
068827
%{_sbindir}/lsmod
068827
%{_sbindir}/depmod
068827
%{_sbindir}/weak-modules
068827
%{_datadir}/bash-completion/
068827
%{_sysconfdir}/depmod.d/dist.conf
068827
%attr(0644,root,root) %{_mandir}/man5/*.5*
068827
%attr(0644,root,root) %{_mandir}/man8/*.8*
068827
%doc NEWS README TODO
068827
068827
%files libs
068827
%{!?_licensedir:%global license %%doc}
068827
%license COPYING
068827
%{_libdir}/libkmod.so.*
068827
068827
%files devel
068827
%{_includedir}/libkmod.h
068827
%{_libdir}/pkgconfig/libkmod.pc
068827
%{_libdir}/libkmod.so
068827
068827
%changelog
5fb698
* Mon Nov 29 2021 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-19
5fb698
- depmod: fix parallel execution issues
5fb698
  Resolves: rhbz#2026938
5fb698
38675a
* Fri Apr 16 2021 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-18
38675a
- weak-modules: do not require dracut wneh using --no-initramfs
38675a
  Resolves: rhbz#1935416
38675a
c1081f
* Fri Dec 18 2020 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-17
b6fb57
- weak-modules: reset compatible_modules if configuration is not valid
c1081f
  Resolves: rhbz#1907855
b6fb57
8e4cb0
* Mon Dec  9 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-16
8e4cb0
- weak-modules: update_modules_for_krel: always finish sandbox
8e4cb0
- weak-modules: groupping: use dependencies of extra/ provider
8e4cb0
  Resolves: rhbz#1778889
8e4cb0
8e4cb0
* Mon Dec  9 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-15
8e4cb0
- weak-modules: reverse checking order for add-kernel
8e4cb0
  Resolves: rhbz#1755196
8e4cb0
8e4cb0
* Mon Dec  2 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-14
8e4cb0
- modprobe: do not fail on built-in modules
8e4cb0
  Resolves: rhbz#1767513
8e4cb0
ec4b2c
* Tue Apr 16 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-13
ec4b2c
- weak-modules: handle independent modules in one run
ec4b2c
  Resolves: rhbz#1695763
adf0ca
ec4b2c
* Tue Apr  2 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-12
adf0ca
- weak-modules: use asterisk for kernel version in sandbox
ec4b2c
  Resolves: rhbz#1689052
adf0ca
068827
* Tue Feb  5 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-11
068827
- add PKCS7/openssl support.
068827
  Resolves: rhbz#1668459.
068827
068827
* Tue Dec 11 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-10
068827
- weak-modules: group modules on add-kernel
068827
- weak-modules: do not make groups if there are no extra modules
068827
  Resolves: rhbz#1649211
068827
068827
* Tue Oct  2 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-9
068827
- Rebuild with updated flags.
068827
  Resolves: rhbz#1630574.
068827
068827
* Tue Sep  4 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-8
068827
- weak-modules: fix initial state creation for dry-run
068827
- weak-modules: check compatibility in a temporary directory
068827
  Resolves: rhbz#1622990.
068827
068827
* Tue Aug 28 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-7
068827
- weak-modules: use is_kernel_installed wrapper in update_modules_for_krel.
068827
- weak-modules: more abstract symvers search implementation.
068827
- weak-modules: use additional paths for System.map file.
068827
  Resolves: rhbz#1621306.
068827
068827
* Thu Aug 09 2018 Eugene Syromiatnikov <esyr@redhat.com> - 25-6
068827
- weak-modules: check also for /lib/modules/$krel/symvers.gz as a possible
068827
  symvers file path.
068827
  Resolves: rhbz#1614119.
068827
068827
* Mon Jul 30 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-5
068827
- weak-modules: handle versions with + and other special regex symbols
068827
- weak-modules: fix misleading message when cannot find dracut.
068827
  Resolves: rhbz#1609372.
068827
068827
* Fri Jul 27 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-4
068827
- fix dracut path, /usr/bin/dracut
068827
068827
* Wed Jul 25 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-3
068827
- Add depmod.d/dist.conf.
068827
- Update weak-modules to RHEL version.
068827
068827
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25-2
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
068827
068827
* Tue Jan 09 2018 Josh Boyer <jwboyer@fedoraproject.org> - 25-1
068827
- Update to version 25 (rhbz 1532597)
068827
068827
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 24-3
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
068827
068827
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 24-2
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
068827
068827
* Fri Feb 24 2017 Josh Boyer <jwboyer@fedoraproject.org> - 24-1
068827
- Update to version 24 (rhbz 1426589)
068827
068827
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 23-3
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
068827
068827
* Fri Jul 22 2016 Josh Boyer <jwboyer@fedoraproject.org> - 23-1
068827
- Update to version 23
068827
068827
* Thu Feb 25 2016 Peter Robinson <pbrobinson@fedoraproject.org> 22-4
068827
- Add powerpc patch to fix ToC on 4.5 ppc64le kernel
068827
068827
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 22-3
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
068827
068827
* Thu Jan 07 2016 Josh Boyer <jwboyer@fedoraproject.org> - 22-2
068827
- Fix path to dracut in weak-modules (rhbz 1295038)
068827
068827
* Wed Nov 18 2015 Josh Boyer <jwboyer@fedoraproject.org> - 22-1
068827
- Update to version 22
068827
068827
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 21-3
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
068827
068827
* Mon Jun 15 2015 Ville Skyttä <ville.skytta@iki.fi> - 21-2
068827
- Own bash completion dirs not owned by anything in dep chain
068827
068827
* Tue Jun 09 2015 Josh Boyer <jwboyer@fedoraproject.org> - 21-1
068827
- Update to verion 21
068827
068827
* Mon Mar 02 2015 Josh Boyer <jwboyer@fedoraproject.org> - 20.1
068827
- Update to version 20
068827
068827
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 19-2
068827
- Rebuilt for Fedora 23 Change
068827
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
068827
068827
* Sun Nov 16 2014 Josh Boyer <jwboyer@fedoraproject.org> - 19-1
068827
- Update to version 19
068827
068827
* Wed Oct 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 18-4
068827
- Backport patch to fix device node permissions (rhbz 1147248)
068827
068827
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 18-3
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
068827
068827
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org> - 18-2
068827
- fix license handling
068827
068827
* Tue Jun 24 2014 Josh Boyer <jwboyer@fedoraproject.org> - 18-1
068827
- Update to version 18
068827
068827
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 17-2
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
068827
068827
* Wed Apr 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 17-1
068827
- Update to version 17
068827
068827
* Thu Jan 02 2014 Václav Pavlín <vpavlin@redhat.com> - 16-1
068827
- Update to version 16
068827
068827
* Thu Aug 22 2013 Josh Boyer <jwboyer@fedoraproject.org> - 15-1
068827
- Update to version 15
068827
068827
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14-2
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
068827
068827
* Fri Jul 05 2013 Josh Boyer <jwboyer@redhat.com> - 14-1
068827
- Update to version 14
068827
068827
* Fri Apr 19 2013 Václav Pavlín <vpavlin@redhat.com> - 13-2
068827
- Main package should require -libs
068827
068827
* Wed Apr 10 2013 Josh Boyer <jwboyer@redhat.com> - 13-1
068827
- Update to version 13
068827
068827
* Wed Mar 20 2013 Weiping Pan <wpan@redhat.com> - 12-3
38675a
- Pull in weak-modules for kABI from Jon Masters <jcm@redhat.com>
068827
068827
* Mon Mar 18 2013 Josh Boyer <jwboyer@redhat.com>
068827
- Add patch to make rmmod understand built-in modules (rhbz 922187)
068827
068827
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12-2
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
068827
068827
* Thu Dec 06 2012 Josh Boyer <jwboyer@redhat.com>
068827
- Update to version 12
068827
068827
* Thu Nov 08 2012 Josh Boyer <jwboyer@redhat.com>
068827
- Update to version 11
068827
068827
* Fri Sep 07 2012 Josh Boyer <jwboyer@redaht.com>
068827
- Update to version 10
068827
068827
* Mon Aug 27 2012 Josh Boyer <jwboyer@redhat.com>
068827
- Update to version 9
068827
068827
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-3
068827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
068827
068827
* Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
068827
- Provide modprobe.conf(5) (rhbz 824552)
068827
068827
* Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
068827
- Update to version 8
068827
068827
* Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
068827
- update to version 7
068827
  - fix issue with --show-depends, where built-in
068827
    modules of the running kernel fail to include
068827
    loadable modules of the kernel specified
068827
068827
* Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
068827
- update to version 6
068827
- remove all patches, they are included in the release
068827
068827
* Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
068827
- try to address brc#771285
068827
068827
* Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
068827
- fix infinite loop with softdeps
068827
068827
* Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
068827
- add upstream patch to fix "modprobe --ignore-install --show-depends"
068827
  otherwise dracut misses a lot of modules, which are already loaded
068827
068827
* Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
068827
- add "lsmod"
068827
068827
* Tue Feb  7 2012 Kay Sievers <kay@redhat.com> - 5-4
068827
- remove temporarily added fake-provides
068827
068827
* Tue Feb  7 2012 Kay Sievers <kay@redhat.com> - 5-3
068827
- temporarily add fake-provides to be able to bootstrap
068827
  the new udev which pulls the old udev into the buildroot
068827
068827
* Tue Feb  7 2012 Kay Sievers <kay@redhat.com> - 5-1
068827
- Update to version 5
068827
- replace the module-init-tools package and provide all tools
068827
  as compatibility symlinks
068827
068827
* Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
068827
- Update to version 4
068827
- set --with-rootprefix=
068827
- enable zlib and xz support
068827
068827
* Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
068827
- Update to latest upstream (adds new depmod replacement utility)
068827
- For the moment, use the "kmod" utility to test the various functions
068827
068827
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
068827
- Update kmod-2-with-rootlibdir patch with rebuild automake files
068827
068827
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
068827
- Initial build for Fedora following package import
068827
068827
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
068827
- There is no generic macro for non-multilib "/lib", hardcode like others
068827
068827
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
068827
- Update package incorporating fixes from initial review feedback
068827
- Cleaups to SPEC, rpath, documentation, library and binary locations
068827
068827
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
068827
- Update package for posting to wider test audience (initial review submitted)
068827
068827
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
068827
- Initial Fedora package for module-init-tools replacement (kmod) library