Blame SPECS/kmod.spec

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