Blame SPECS/kmod.spec

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