2011-12-23 07:12:52 +00:00
|
|
|
Name: kmod
|
2012-12-06 18:41:14 +00:00
|
|
|
Version: 12
|
2013-03-18 14:31:19 +00:00
|
|
|
Release: 3%{?dist}
|
2011-12-23 07:12:52 +00:00
|
|
|
Summary: Linux kernel module management utilities
|
|
|
|
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
License: GPLv2+
|
2012-03-04 15:25:29 +00:00
|
|
|
URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
|
|
|
|
Source0: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
|
2011-12-23 07:12:52 +00:00
|
|
|
Exclusiveos: Linux
|
|
|
|
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
2012-01-16 20:24:37 +00:00
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: xz-devel
|
2012-11-08 14:40:58 +00:00
|
|
|
BuildRequires: libxslt
|
2011-12-23 07:12:52 +00:00
|
|
|
|
2013-03-18 14:31:19 +00:00
|
|
|
Patch0: fix-rmmod-builtin.patch
|
|
|
|
|
2012-02-07 00:48:43 +00:00
|
|
|
Provides: module-init-tools = 4.0-1
|
|
|
|
Obsoletes: module-init-tools < 4.0-1
|
|
|
|
Provides: /sbin/modprobe
|
2011-12-23 07:12:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The kmod package provides various programs needed for automatic
|
|
|
|
loading and unloading of modules under 2.6, 3.x, and later kernels, as well
|
|
|
|
as other module management programs. Device drivers and filesystems are two
|
|
|
|
examples of loaded and unloaded modules.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries to handle kernel module loading and unloading
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
The kmod-libs package provides runtime libraries for any application that
|
|
|
|
wishes to load or unload Linux kernel modules from the running system.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for kmod development
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The kmod-devel package provides header files used for development of
|
|
|
|
applications that wish to load or unload Linux kernel modules.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-03-18 14:31:19 +00:00
|
|
|
%patch0 -p1
|
2011-12-23 07:12:52 +00:00
|
|
|
|
|
|
|
%build
|
2012-02-12 16:05:14 +00:00
|
|
|
export V=1
|
2012-01-16 20:24:37 +00:00
|
|
|
%configure \
|
|
|
|
--with-zlib \
|
|
|
|
--with-xz
|
2011-12-23 07:12:52 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2012-05-23 19:06:34 +00:00
|
|
|
pushd $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
|
ln -s modprobe.d.5.gz modprobe.conf.5.gz
|
|
|
|
popd
|
2011-12-23 07:12:52 +00:00
|
|
|
|
2012-01-16 20:24:37 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
|
2012-02-07 00:48:43 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modprobe
|
|
|
|
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modinfo
|
|
|
|
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/insmod
|
|
|
|
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/rmmod
|
|
|
|
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/depmod
|
2012-02-08 14:37:11 +00:00
|
|
|
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/lsmod
|
2012-02-07 00:48:43 +00:00
|
|
|
|
2012-01-16 20:24:37 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
|
2012-02-07 00:48:43 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
|
2011-12-23 07:12:52 +00:00
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_sysconfdir}/depmod.d
|
|
|
|
%dir %{_sysconfdir}/modprobe.d
|
2012-02-07 00:48:43 +00:00
|
|
|
%dir %{_prefix}/lib/modprobe.d
|
|
|
|
%{_bindir}/kmod
|
|
|
|
%{_sbindir}/modprobe
|
|
|
|
%{_sbindir}/modinfo
|
|
|
|
%{_sbindir}/insmod
|
|
|
|
%{_sbindir}/rmmod
|
2012-02-08 14:37:11 +00:00
|
|
|
%{_sbindir}/lsmod
|
2012-02-07 00:48:43 +00:00
|
|
|
%{_sbindir}/depmod
|
|
|
|
%attr(0644,root,root) %{_mandir}/man5/*.5*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*.8*
|
2011-12-23 07:12:52 +00:00
|
|
|
%doc NEWS README TODO COPYING
|
|
|
|
|
|
|
|
%files libs
|
2012-02-07 00:48:43 +00:00
|
|
|
%{_libdir}/libkmod.so.*
|
2011-12-23 07:12:52 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/libkmod.h
|
|
|
|
%{_libdir}/pkgconfig/libkmod.pc
|
2012-02-07 00:48:43 +00:00
|
|
|
%{_libdir}/libkmod.so
|
2011-12-23 07:12:52 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-03-18 14:31:19 +00:00
|
|
|
* Mon Mar 18 2013 Josh Boyer <jwboyer@redhat.com>
|
|
|
|
- Add patch to make rmmod understand built-in modules (rhbz 922187)
|
|
|
|
|
2013-02-14 03:26:59 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-12-06 18:41:14 +00:00
|
|
|
* Thu Dec 06 2012 Josh Boyer <jwboyer@redhat.com>
|
|
|
|
- Update to version 12
|
|
|
|
|
2012-11-08 13:43:09 +00:00
|
|
|
* Thu Nov 08 2012 Josh Boyer <jwboyer@redhat.com>
|
|
|
|
- Update to version 11
|
|
|
|
|
2012-09-07 12:39:56 +00:00
|
|
|
* Fri Sep 07 2012 Josh Boyer <jwboyer@redaht.com>
|
|
|
|
- Update to version 10
|
|
|
|
|
2012-08-27 13:01:22 +00:00
|
|
|
* Mon Aug 27 2012 Josh Boyer <jwboyer@redhat.com>
|
|
|
|
- Update to version 9
|
|
|
|
|
2012-07-19 18:16:28 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-23 19:06:34 +00:00
|
|
|
* Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
|
|
|
|
- Provide modprobe.conf(5) (rhbz 824552)
|
|
|
|
|
2012-05-08 13:32:54 +00:00
|
|
|
* Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
|
|
|
|
- Update to version 8
|
|
|
|
|
2012-03-19 11:52:07 +00:00
|
|
|
* Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
|
|
|
|
- update to version 7
|
|
|
|
- fix issue with --show-depends, where built-in
|
|
|
|
modules of the running kernel fail to include
|
|
|
|
loadable modules of the kernel specified
|
|
|
|
|
2012-03-04 15:25:29 +00:00
|
|
|
* Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
|
|
|
|
- update to version 6
|
|
|
|
- remove all patches, they are included in the release
|
|
|
|
|
2012-02-24 00:26:54 +00:00
|
|
|
* Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
|
|
|
|
- try to address brc#771285
|
|
|
|
|
2012-02-12 16:05:14 +00:00
|
|
|
* Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
|
|
|
|
- fix infinite loop with softdeps
|
|
|
|
|
2012-02-09 12:05:58 +00:00
|
|
|
* Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
|
|
|
|
- add upstream patch to fix "modprobe --ignore-install --show-depends"
|
|
|
|
otherwise dracut misses a lot of modules, which are already loaded
|
|
|
|
|
2012-02-08 14:37:11 +00:00
|
|
|
* Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
|
|
|
|
- add "lsmod"
|
|
|
|
|
2012-02-07 04:34:17 +00:00
|
|
|
* Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-4
|
|
|
|
- remove temporarily added fake-provides
|
|
|
|
|
2012-02-07 03:59:00 +00:00
|
|
|
* Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-3
|
|
|
|
- temporarily add fake-provides to be able to bootstrap
|
2012-02-07 03:31:23 +00:00
|
|
|
the new udev which pulls the old udev into the buildroot
|
|
|
|
|
|
|
|
* Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-1
|
2012-02-07 00:48:43 +00:00
|
|
|
- Update to version 5
|
|
|
|
- replace the module-init-tools package and provide all tools
|
|
|
|
as compatibility symlinks
|
|
|
|
|
2012-02-07 03:31:23 +00:00
|
|
|
* Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
|
2012-01-16 20:24:37 +00:00
|
|
|
- Update to version 4
|
|
|
|
- set --with-rootprefix=
|
|
|
|
- enable zlib and xz support
|
|
|
|
|
2012-01-05 12:36:46 +00:00
|
|
|
* Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
|
|
|
|
- Update to latest upstream (adds new depmod replacement utility)
|
|
|
|
- For the moment, use the "kmod" utility to test the various functions
|
|
|
|
|
2011-12-23 18:04:36 +00:00
|
|
|
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
|
|
|
|
- Update kmod-2-with-rootlibdir patch with rebuild automake files
|
|
|
|
|
2011-12-23 07:15:48 +00:00
|
|
|
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
|
|
|
|
- Initial build for Fedora following package import
|
|
|
|
|
2011-12-23 07:12:52 +00:00
|
|
|
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
|
|
|
|
- There is no generic macro for non-multilib "/lib", hardcode like others
|
|
|
|
|
|
|
|
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
|
|
|
|
- Update package incorporating fixes from initial review feedback
|
|
|
|
- Cleaups to SPEC, rpath, documentation, library and binary locations
|
|
|
|
|
|
|
|
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
|
|
|
|
- Update package for posting to wider test audience (initial review submitted)
|
|
|
|
|
|
|
|
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
|
|
|
|
- Initial Fedora package for module-init-tools replacement (kmod) library
|