[6449] | 1 | Name: kmod |
---|
[10654] | 2 | Version: 23 |
---|
[6449] | 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: Linux kernel module management utilities |
---|
| 5 | Summary(ja): Linux カーネルモジュール管理ユーティリティ |
---|
| 6 | |
---|
| 7 | Group: System Environment/Kernel |
---|
| 8 | License: GPLv2+ |
---|
| 9 | URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary |
---|
| 10 | Source0: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz |
---|
| 11 | Exclusiveos: Linux |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 14 | BuildRequires: chrpath |
---|
| 15 | BuildRequires: zlib-devel |
---|
| 16 | BuildRequires: xz-devel |
---|
[7139] | 17 | BuildRequires: libxslt |
---|
[6449] | 18 | |
---|
| 19 | Provides: module-init-tools = 4.0-1 |
---|
| 20 | Obsoletes: module-init-tools < 4.0-1 |
---|
| 21 | Provides: modutils = 4.0-1 |
---|
| 22 | Obsoletes: modutils < 4.0-1 |
---|
| 23 | Provides: /sbin/modprobe |
---|
| 24 | |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | Vendor: Project Vine |
---|
| 27 | Packager: daisuke |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | The kmod package provides various programs needed for automatic |
---|
| 31 | loading and unloading of modules under 2.6, 3.x, and later kernels, as well |
---|
| 32 | as other module management programs. Device drivers and filesystems are two |
---|
| 33 | examples of loaded and unloaded modules. |
---|
| 34 | |
---|
| 35 | %package libs |
---|
| 36 | Summary: Libraries to handle kernel module loading and unloading |
---|
[7139] | 37 | Summary(ja): kernelモジュールのロード/アンロードを扱うライブラリ |
---|
[6449] | 38 | License: LGPLv2+ |
---|
| 39 | Group: System Environment/Libraries |
---|
| 40 | |
---|
| 41 | %description libs |
---|
| 42 | The kmod-libs package provides runtime libraries for any application that |
---|
| 43 | wishes to load or unload Linux kernel modules from the running system. |
---|
| 44 | |
---|
| 45 | %package devel |
---|
| 46 | Summary: Header files for kmod development |
---|
[7139] | 47 | Summary(ja): kmodを使うアプリケーション開発のためのヘッダファイル |
---|
[6449] | 48 | Group: Development/Libraries |
---|
| 49 | Requires: %{name} = %{version}-%{release} |
---|
| 50 | |
---|
| 51 | %description devel |
---|
| 52 | The kmod-devel package provides header files used for development of |
---|
| 53 | applications that wish to load or unload Linux kernel modules. |
---|
| 54 | |
---|
| 55 | %prep |
---|
| 56 | %setup -q |
---|
| 57 | |
---|
| 58 | %build |
---|
| 59 | export V=1 |
---|
| 60 | %configure \ |
---|
| 61 | --bindir=%{_sysbindir} \ |
---|
| 62 | --sbindir=%{_syssbindir} \ |
---|
| 63 | --with-zlib \ |
---|
| 64 | --with-xz |
---|
| 65 | make %{?_smp_mflags} |
---|
| 66 | |
---|
| 67 | %install |
---|
| 68 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
| 69 | |
---|
| 70 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 71 | pushd $RPM_BUILD_ROOT/%{_mandir}/man5 |
---|
| 72 | ln -s modprobe.d.5.gz modprobe.conf.5.gz |
---|
| 73 | popd |
---|
| 74 | |
---|
| 75 | mkdir -p $RPM_BUILD_ROOT/%{_lib} |
---|
| 76 | mv $RPM_BUILD_ROOT/%{_libdir}/*.so* $RPM_BUILD_ROOT/%{_lib}/ |
---|
| 77 | ln -sf ../../%{_lib}/libkmod.so $RPM_BUILD_ROOT/%{_libdir}/libkmod.so |
---|
| 78 | |
---|
| 79 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 80 | mkdir -p $RPM_BUILD_ROOT%{_syssbindir} |
---|
| 81 | ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/modprobe |
---|
| 82 | ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/modinfo |
---|
| 83 | ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/insmod |
---|
| 84 | ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/rmmod |
---|
| 85 | ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/depmod |
---|
| 86 | ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/lsmod |
---|
| 87 | |
---|
| 88 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d |
---|
| 89 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d |
---|
| 90 | mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d |
---|
| 91 | |
---|
| 92 | %clean |
---|
| 93 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
| 94 | |
---|
| 95 | %post libs |
---|
| 96 | /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | %postun libs |
---|
| 99 | /sbin/ldconfig |
---|
| 100 | |
---|
| 101 | %files |
---|
| 102 | %defattr(-,root,root,-) |
---|
| 103 | %dir %{_sysconfdir}/depmod.d |
---|
| 104 | %dir %{_sysconfdir}/modprobe.d |
---|
| 105 | %dir %{_prefix}/lib/modprobe.d |
---|
| 106 | %{_sysbindir}/kmod |
---|
| 107 | %{_syssbindir}/modprobe |
---|
| 108 | %{_syssbindir}/modinfo |
---|
| 109 | %{_syssbindir}/insmod |
---|
| 110 | %{_syssbindir}/rmmod |
---|
| 111 | %{_syssbindir}/lsmod |
---|
| 112 | %{_syssbindir}/depmod |
---|
| 113 | %attr(0644,root,root) %{_mandir}/man5/*.5* |
---|
| 114 | %attr(0644,root,root) %{_mandir}/man8/*.8* |
---|
| 115 | %doc NEWS README TODO COPYING |
---|
[9823] | 116 | %exclude %{_datadir}/bash-completion/completions/kmod |
---|
[6449] | 117 | |
---|
| 118 | %files libs |
---|
| 119 | /%{_lib}/libkmod.so.* |
---|
| 120 | |
---|
| 121 | %files devel |
---|
| 122 | %{_includedir}/libkmod.h |
---|
| 123 | %{_libdir}/pkgconfig/libkmod.pc |
---|
| 124 | %{_libdir}/libkmod.so |
---|
| 125 | /%{_lib}/libkmod.so |
---|
| 126 | |
---|
| 127 | %changelog |
---|
[10654] | 128 | * Sat Jul 23 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 23-1 |
---|
| 129 | - update to 23 |
---|
| 130 | |
---|
[9823] | 131 | * Sat Nov 21 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 22-1 |
---|
| 132 | - update to 22 |
---|
| 133 | |
---|
[9591] | 134 | * Wed Jun 10 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 21-1 |
---|
| 135 | - update to 21 |
---|
| 136 | |
---|
[9577] | 137 | * Sun May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 20-1 |
---|
| 138 | - update to 20 |
---|
| 139 | |
---|
| 140 | * Wed Nov 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 11-1 |
---|
[7139] | 141 | - update to 11 |
---|
| 142 | - add BR: libxslt |
---|
| 143 | |
---|
[6449] | 144 | * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 8-1 |
---|
| 145 | - initial build for Vine Linux |
---|
| 146 | |
---|
| 147 | * Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2 |
---|
| 148 | - Provide modprobe.conf(5) (rhbz 824552) |
---|
| 149 | |
---|
| 150 | * Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1 |
---|
| 151 | - Update to version 8 |
---|
| 152 | |
---|
| 153 | * Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1 |
---|
| 154 | - update to version 7 |
---|
| 155 | - fix issue with --show-depends, where built-in |
---|
| 156 | modules of the running kernel fail to include |
---|
| 157 | loadable modules of the kernel specified |
---|
| 158 | |
---|
| 159 | * Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1 |
---|
| 160 | - update to version 6 |
---|
| 161 | - remove all patches, they are included in the release |
---|
| 162 | |
---|
| 163 | * Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8 |
---|
| 164 | - try to address brc#771285 |
---|
| 165 | |
---|
| 166 | * Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7 |
---|
| 167 | - fix infinite loop with softdeps |
---|
| 168 | |
---|
| 169 | * Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6 |
---|
| 170 | - add upstream patch to fix "modprobe --ignore-install --show-depends" |
---|
| 171 | otherwise dracut misses a lot of modules, which are already loaded |
---|
| 172 | |
---|
| 173 | * Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5 |
---|
| 174 | - add "lsmod" |
---|
| 175 | |
---|
| 176 | * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-4 |
---|
| 177 | - remove temporarily added fake-provides |
---|
| 178 | |
---|
| 179 | * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-3 |
---|
| 180 | - temporarily add fake-provides to be able to bootstrap |
---|
| 181 | the new udev which pulls the old udev into the buildroot |
---|
| 182 | |
---|
| 183 | * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-1 |
---|
| 184 | - Update to version 5 |
---|
| 185 | - replace the module-init-tools package and provide all tools |
---|
| 186 | as compatibility symlinks |
---|
| 187 | |
---|
| 188 | * Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1 |
---|
| 189 | - Update to version 4 |
---|
| 190 | - set --with-rootprefix= |
---|
| 191 | - enable zlib and xz support |
---|
| 192 | |
---|
| 193 | * Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1 |
---|
| 194 | - Update to latest upstream (adds new depmod replacement utility) |
---|
| 195 | - For the moment, use the "kmod" utility to test the various functions |
---|
| 196 | |
---|
| 197 | * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6 |
---|
| 198 | - Update kmod-2-with-rootlibdir patch with rebuild automake files |
---|
| 199 | |
---|
| 200 | * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5 |
---|
| 201 | - Initial build for Fedora following package import |
---|
| 202 | |
---|
| 203 | * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4 |
---|
| 204 | - There is no generic macro for non-multilib "/lib", hardcode like others |
---|
| 205 | |
---|
| 206 | * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3 |
---|
| 207 | - Update package incorporating fixes from initial review feedback |
---|
| 208 | - Cleaups to SPEC, rpath, documentation, library and binary locations |
---|
| 209 | |
---|
| 210 | * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2 |
---|
| 211 | - Update package for posting to wider test audience (initial review submitted) |
---|
| 212 | |
---|
| 213 | * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1 |
---|
| 214 | - Initial Fedora package for module-init-tools replacement (kmod) library |
---|