kmod-vl.spec 6.7 KB

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