Blame SPECS/kmod.spec

ca9082
Name:		kmod
ca9082
Version:	20
ca9082
Release:	27%{?dist}
ca9082
Summary:	Linux kernel module management utilities
ca9082
ca9082
Group:		System Environment/Kernel
ca9082
License:	GPLv2+
ca9082
URL:		http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
ca9082
Source0:	ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
ca9082
Source1:	weak-modules
ca9082
Source2:	depmod.conf.dist
ca9082
Exclusiveos:	Linux
ca9082
ca9082
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
ca9082
ca9082
Patch01:	kmod-0001-depmod-Don-t-fall-back-to-uname-on-bad-version.patch
ca9082
Patch02:	kmod-0002-depmod-Ignore-PowerPC64-ABIv2-.TOC.-symbol.patch
ca9082
Patch03:	kmod-0003-libkmod-Handle-long-lines-in-proc-modules.patch
ca9082
Patch04:	kmod-0004-libkmod-elf-resolve-CRC-if-module-is-built-with-MODU.patch
ca9082
Patch05:	kmod-0005-depmod-backport-external-directories-support.patch
ca9082
Patch06:	kmod-0006-depmod-module_is_higher_priority-fix-modname-length-.patch
ca9082
ca9082
BuildRequires:	chrpath
ca9082
BuildRequires:	zlib-devel
ca9082
BuildRequires:	xz-devel
ca9082
BuildRequires:  libxslt
ca9082
# Remove it as soon as no need for Patch05 anymore (Makefile.am updated)
ca9082
BuildRequires:  automake autoconf libtool
ca9082
ca9082
Provides:	module-init-tools = 4.0-1
ca9082
Obsoletes:	module-init-tools < 4.0-1
ca9082
Provides:	/sbin/modprobe
ca9082
ca9082
# Required for the weak-modules script
ca9082
Requires:	/usr/bin/nm
ca9082
Requires:	/usr/bin/gzip
ca9082
Requires:	/usr/bin/xz
ca9082
Requires:	/usr/bin/cpio
ca9082
Requires:       dracut
ca9082
Requires:       diffutils
ca9082
ca9082
%description
ca9082
The kmod package provides various programs needed for automatic
ca9082
loading and unloading of modules under 2.6, 3.x, and later kernels, as well
ca9082
as other module management programs. Device drivers and filesystems are two
ca9082
examples of loaded and unloaded modules.
ca9082
ca9082
%package libs
ca9082
Summary:	Libraries to handle kernel module loading and unloading
ca9082
License:	LGPLv2+
ca9082
Group:		System Environment/Libraries
ca9082
ca9082
%description libs
ca9082
The kmod-libs package provides runtime libraries for any application that
ca9082
wishes to load or unload Linux kernel modules from the running system.
ca9082
ca9082
%package devel
ca9082
Summary:	Header files for kmod development
ca9082
Group:		Development/Libraries
ca9082
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
ca9082
ca9082
%description devel
ca9082
The kmod-devel package provides header files used for development of
ca9082
applications that wish to load or unload Linux kernel modules.
ca9082
ca9082
%prep
ca9082
%setup -q
ca9082
%patch01 -p1 -b .0001-depmod-Don-t-fall-back-to-uname-on-bad-version
ca9082
%patch02 -p1 -b .0002-depmod-Ignore-PowerPC64-ABIv2-.TOC.-symbol
ca9082
%patch03 -p1 -b .0003-libkmod-Handle-long-lines-in-proc-modules
ca9082
%patch04 -p1 -b .0004-libkmod-elf-resolve-CRC-if-module-is-built-with-MODU
ca9082
%patch05 -p1 -b .0005-depmod-backport-external-directories-support
ca9082
%patch06 -p1 -b .0006-depmod-module_is_higher_priority-fix-modname-length-.patch
ca9082
ca9082
%build
ca9082
export V=1
ca9082
aclocal
ca9082
autoreconf --install --symlink
ca9082
%configure \
ca9082
  --with-zlib \
ca9082
  --with-xz
ca9082
make %{?_smp_mflags}
ca9082
#make check
ca9082
ca9082
%install
ca9082
make install DESTDIR=$RPM_BUILD_ROOT
ca9082
pushd $RPM_BUILD_ROOT/%{_mandir}/man5
ca9082
ln -s modprobe.d.5.gz modprobe.conf.5.gz
ca9082
popd
ca9082
ca9082
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
ca9082
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
ca9082
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modprobe
ca9082
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modinfo
ca9082
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/insmod
ca9082
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/rmmod
ca9082
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/depmod
ca9082
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/lsmod
ca9082
ca9082
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
ca9082
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
ca9082
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
ca9082
ca9082
mkdir -p $RPM_BUILD_ROOT/sbin
ca9082
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
ca9082
ca9082
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
ca9082
ca9082
%post libs -p /sbin/ldconfig
ca9082
ca9082
%postun libs -p /sbin/ldconfig
ca9082
ca9082
%files
ca9082
%defattr(-,root,root,-)
ca9082
%dir %{_sysconfdir}/depmod.d
ca9082
%dir %{_sysconfdir}/modprobe.d
ca9082
%dir %{_prefix}/lib/modprobe.d
ca9082
%{_bindir}/kmod
ca9082
%{_sbindir}/modprobe
ca9082
%{_sbindir}/modinfo
ca9082
%{_sbindir}/insmod
ca9082
%{_sbindir}/rmmod
ca9082
%{_sbindir}/lsmod
ca9082
%{_sbindir}/depmod
ca9082
%{_sbindir}/weak-modules
ca9082
%{_datadir}/bash-completion/completions/kmod
ca9082
%{_sysconfdir}/depmod.d/dist.conf
ca9082
%attr(0644,root,root) %{_mandir}/man5/*.5*
ca9082
%attr(0644,root,root) %{_mandir}/man8/*.8*
ca9082
%doc NEWS README TODO COPYING
ca9082
ca9082
%files libs
ca9082
%{_libdir}/libkmod.so.*
ca9082
ca9082
%files devel
ca9082
%{_includedir}/libkmod.h
ca9082
%{_libdir}/pkgconfig/libkmod.pc
ca9082
%{_libdir}/libkmod.so
ca9082
ca9082
%changelog
ca9082
* Tue Sep 24 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-27
ca9082
- weak-modules: reverse checking order for add-kernel
ca9082
  Resolves: rhbz#1752902
ca9082
ca9082
* Wed Jun 12 2019 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-26
ca9082
- weak-modules: handle independent modules in one run
ca9082
- weak-modules: use asterisk for kernel version in sandbox
ca9082
  Resolves: rhbz#1695547
ca9082
ca9082
* Wed Nov 21 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-25
ca9082
- weak-modules: do not make groups if there are no extra modules
ca9082
  Related: rhbz#1643299
ca9082
ca9082
* Mon Nov 12 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-24
ca9082
- weak-modules: group modules on add-kernel.
ca9082
  Resolves: rhbz#1643299.
ca9082
ca9082
* Tue Aug 28 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-23
ca9082
- weak-modules: fix initial state creation for dry-run
ca9082
- weak-modules: check compatibility in a temporary directory
ca9082
  Resolves: rhbz#1619889.
ca9082
ca9082
* Thu Jun 21 2018 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-22
ca9082
- weak-modules: add compressed modules support.
ca9082
  Resolves: rhbz#1593448
ca9082
ca9082
* Fri Dec  8 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-21
ca9082
- depmod: module_is_higher_priority: fix modname length calculation.
ca9082
  Resolves: rhbz#1522994
ca9082
ca9082
* Thu Nov  9 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-20
ca9082
- weak-modules: use function to generate weak_updates_dir
ca9082
- weak-modules: implement dry-run on the tempdir
ca9082
  Resolves: rhbz#1510058
ca9082
ca9082
* Thu Sep 14 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-19
ca9082
- weak-modules: fix dry-run for non-lib-modules installation
ca9082
  Resolves: rhbz#1477073
ca9082
ca9082
* Thu Aug 17 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-18
ca9082
- depmod: external directories support.
ca9082
  Resolves: rhbz#1361857
ca9082
- BuildRequires automake autoconf libtool.
ca9082
ca9082
* Mon Aug  7 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-17
ca9082
- libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS.
ca9082
- weak-modules: process only weak-updates related depmod output.
ca9082
  Resolves: rhbz#1468305
ca9082
- weak-modules: implement dry run by symlink restoration.
ca9082
  Resolves: rhbz#1477073
ca9082
ca9082
* Wed Jul 12 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-16
ca9082
- weak-modules: fallback weak-modules state if incompatible installed.
ca9082
  Resolved: rhbz#1468042
ca9082
ca9082
* Fri May 12 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-15
ca9082
- weak-modules: install weak link even if there is same name in extra.
ca9082
  Resolves: rhbz#1450003
ca9082
ca9082
* Fri May  5 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-14
ca9082
- weak-modules: check if kernel installed for the final depmod.
ca9082
  Resolves: rhbz#1448349
ca9082
ca9082
* Mon Mar 27 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-13
ca9082
- Remove kmod-20.tar from sources, kmod-20.tar.xz is used.
ca9082
  Resolves: rhbz#1434319
ca9082
ca9082
* Tue Feb 21 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-12
ca9082
- weak-modules: fix coverity introduced by latest changes
ca9082
- weak-modules: fix "permission denied" on some upgrades.
ca9082
  Resolves: rhbz#1416566
ca9082
ca9082
* Thu Feb 16 2017 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-11
ca9082
- Rebuild package with updated rpm macros.
ca9082
  Resolves: rhbz#1420768
ca9082
ca9082
* Thu Feb  2 2017 Tony Camuso <tcamuso@redhat.com> - 20-10
ca9082
- Rename patches so they are not specific to the build. This was
ca9082
  causing problems with z-stream builds.
ca9082
  Resolves: rhbz#1416498
ca9082
ca9082
* Mon Nov 28 2016 Yauheni Kaliuta <ykaliuta@redhat.com> - 20-10
ca9082
- weak-modules: deprecate --delete-modules switch.
ca9082
- weak-modules: implement some pathes configuration from cmdline.
ca9082
- weak-modules: redesign to reuse depmod -aeE functionality
ca9082
  (with some preparation changes).
ca9082
  This is an updated version of the script which doesn't support
ca9082
  multiple installation of the same out-of-tree module (stored in the
ca9082
  'extra' subdirectory). But it more correctly checks dependencies
ca9082
  between the modules.
ca9082
  Resolves: rhbz#1367942
ca9082
ca9082
* Fri Sep  2 2016 Tony Camuso <tcamuso@redhat.com> - 20-9
ca9082
- Must be bumped to 20-9 due to changes and version bumps in the
ca9082
  7.2-z stream.
ca9082
  Resolves: rhbz#1320204
ca9082
ca9082
* Sat Jun 25 2016 Tony Camuso <tcamuso@redhat.com> - 20-7
ca9082
- Backported some needed fixes.
ca9082
  Resolves: rhbz#1320204
ca9082
ca9082
* Fri Feb 26 2016 David Shea <dshea@redhat.com> - 20-6
ca9082
- Accept '.' as part of a symbol exported by the kernel
ca9082
  Resolves: rhbz#1283486
ca9082
- Check the addon modules of the new kernel for exported symbols
ca9082
  Resolves: rhbz#1296465
ca9082
ca9082
* Wed Jun  3 2015 David Shea <dshea@redhat.com> - 20-5
ca9082
- Check for changes in non-module files that affect that initramfs
ca9082
  Resolves: rhbz#1108166
ca9082
- Use dracut to skip early cpio archives in the initramfs
ca9082
  Resolves: rhbz#1210449
ca9082
ca9082
* Mon Apr 13 2015 David Shea <dshea@redhat.com> - 20-4
ca9082
- Do not remove the weak-updates directory
ca9082
  Resolves: rhbz#1124352
ca9082
ca9082
* Thu Apr  2 2015 David Shea <dshea@redhat.com> - 20-3
ca9082
- Require kmod-libs instead of kmod from kmod-devel
ca9082
  Related: rhbz#1199646
ca9082
ca9082
* Thu Apr  2 2015 David Shea <dshea@redhat.com> - 20-2
ca9082
- Remove the explicit requirement on kmod-libs
ca9082
  Related: rhbz#1199646
ca9082
ca9082
* Wed Mar 11 2015 David Shea <dshea@redhat.com> - 20-1
ca9082
- Rebase to kmod-20
ca9082
  Resolves: rhbz#1199646
ca9082
ca9082
* Wed Jan 14 2015 David Shea <dshea@redhat.com> - 14-10
ca9082
- Allow module paths to start with /usr
ca9082
  Resolves: rhbz#1177266
ca9082
ca9082
* Tue Apr  1 2014 David Shea <dshea@redhat.com> - 14-9
ca9082
- Support initramfs files with early_cpio
ca9082
  Resolves: rhbz#1070035
ca9082
ca9082
* Wed Feb 26 2014 David Shea <dshea@redhat.com> - 14-8
ca9082
- Support xz-compressed and uncompressed initramfs files
ca9082
  Resolves: rhbz#1070035
ca9082
ca9082
* Tue Feb 25 2014 David Shea <dshea@redhat.com> - 14-7
ca9082
- Require binutils for weak-modules
ca9082
  Resolves: rhbz#1069612
ca9082
ca9082
* Mon Feb 17 2014 David Shea <dshea@redhat.com> - 14-6
ca9082
- Added a depmod search order as /etc/depmod.d/dist.conf
ca9082
  Resolves: rhbz#1065354
ca9082
ca9082
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 14-5
ca9082
- Mass rebuild 2014-01-24
ca9082
ca9082
* Mon Jan 06 2014 Václav Pavlín <vpavlin@redhat.com> - 14-4
ca9082
- Version bump due to build fail
ca9082
  Resolves: rhbz#1048868
ca9082
ca9082
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 14-3
ca9082
- Mass rebuild 2013-12-27
ca9082
ca9082
* Wed Aug 07 2013 Václav Pavlín <vpavlin@redhat.com> - 14-2
ca9082
- Run tests during build
ca9082
ca9082
* Fri Jul 05 2013 Josh Boyer <jwboyer@redhat.com> - 14-1
ca9082
- Update to version 14
ca9082
ca9082
* Fri Apr 19 2013 Václav Pavlín <vpavlin@redhat.com> - 13-2
ca9082
- Main package should require -libs
ca9082
ca9082
* Wed Apr 10 2013 Josh Boyer <jwboyer@redhat.com> - 13-1
ca9082
- Update to version 13
ca9082
ca9082
* Wed Mar 20 2013 Weiping Pan <wpan@redhat.com> - 12-3
ca9082
- Pull in weak-modules for kABI from Jon Masters <jcm@redhat.com> 
ca9082
ca9082
* Mon Mar 18 2013 Josh Boyer <jwboyer@redhat.com>
ca9082
- Add patch to make rmmod understand built-in modules (rhbz 922187)
ca9082
ca9082
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12-2
ca9082
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ca9082
ca9082
* Thu Dec 06 2012 Josh Boyer <jwboyer@redhat.com>
ca9082
- Update to version 12
ca9082
ca9082
* Thu Nov 08 2012 Josh Boyer <jwboyer@redhat.com>
ca9082
- Update to version 11
ca9082
ca9082
* Fri Sep 07 2012 Josh Boyer <jwboyer@redaht.com>
ca9082
- Update to version 10
ca9082
ca9082
* Mon Aug 27 2012 Josh Boyer <jwboyer@redhat.com>
ca9082
- Update to version 9
ca9082
ca9082
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-3
ca9082
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ca9082
ca9082
* Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
ca9082
- Provide modprobe.conf(5) (rhbz 824552)
ca9082
ca9082
* Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
ca9082
- Update to version 8
ca9082
ca9082
* Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
ca9082
- update to version 7
ca9082
  - fix issue with --show-depends, where built-in
ca9082
    modules of the running kernel fail to include
ca9082
    loadable modules of the kernel specified
ca9082
ca9082
* Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
ca9082
- update to version 6
ca9082
- remove all patches, they are included in the release
ca9082
ca9082
* Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
ca9082
- try to address brc#771285
ca9082
ca9082
* Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
ca9082
- fix infinite loop with softdeps
ca9082
ca9082
* Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
ca9082
- add upstream patch to fix "modprobe --ignore-install --show-depends"
ca9082
  otherwise dracut misses a lot of modules, which are already loaded
ca9082
ca9082
* Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
ca9082
- add "lsmod"
ca9082
ca9082
* Tue Feb  7 2012 Kay Sievers <kay@redhat.com> - 5-4
ca9082
- remove temporarily added fake-provides
ca9082
ca9082
* Tue Feb  7 2012 Kay Sievers <kay@redhat.com> - 5-3
ca9082
- temporarily add fake-provides to be able to bootstrap
ca9082
  the new udev which pulls the old udev into the buildroot
ca9082
ca9082
* Tue Feb  7 2012 Kay Sievers <kay@redhat.com> - 5-1
ca9082
- Update to version 5
ca9082
- replace the module-init-tools package and provide all tools
ca9082
  as compatibility symlinks
ca9082
ca9082
* Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
ca9082
- Update to version 4
ca9082
- set --with-rootprefix=
ca9082
- enable zlib and xz support
ca9082
ca9082
* Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
ca9082
- Update to latest upstream (adds new depmod replacement utility)
ca9082
- For the moment, use the "kmod" utility to test the various functions
ca9082
ca9082
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
ca9082
- Update kmod-2-with-rootlibdir patch with rebuild automake files
ca9082
ca9082
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
ca9082
- Initial build for Fedora following package import
ca9082
ca9082
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
ca9082
- There is no generic macro for non-multilib "/lib", hardcode like others
ca9082
ca9082
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
ca9082
- Update package incorporating fixes from initial review feedback
ca9082
- Cleaups to SPEC, rpath, documentation, library and binary locations
ca9082
ca9082
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
ca9082
- Update package for posting to wider test audience (initial review submitted)
ca9082
ca9082
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
ca9082
- Initial Fedora package for module-init-tools replacement (kmod) library