kmod-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. Name: kmod
  2. Summary: Linux kernel module management utilities
  3. Summary(ja): Linux カーネルモジュール管理ユーティリティ
  4. Version: 28
  5. Release: 1%{?_dist_release}
  6. Group: system
  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. Group: system
  32. License: LGPLv2+
  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: programming
  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. %debug_package
  45. %prep
  46. %setup -q
  47. %build
  48. export V=1
  49. %configure \
  50. --bindir=%{_sysbindir} \
  51. --sbindir=%{_syssbindir} \
  52. --with-zlib \
  53. --with-xz
  54. make %{?_smp_mflags}
  55. %install
  56. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  57. make install DESTDIR=$RPM_BUILD_ROOT
  58. pushd $RPM_BUILD_ROOT/%{_mandir}/man5
  59. ln -s modprobe.d.5.gz modprobe.conf.5.gz
  60. popd
  61. mkdir -p $RPM_BUILD_ROOT/%{_lib}
  62. mv $RPM_BUILD_ROOT/%{_libdir}/*.so* $RPM_BUILD_ROOT/%{_lib}/
  63. ln -sf ../../%{_lib}/libkmod.so $RPM_BUILD_ROOT/%{_libdir}/libkmod.so
  64. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  65. mkdir -p $RPM_BUILD_ROOT%{_syssbindir}
  66. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/modprobe
  67. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/modinfo
  68. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/insmod
  69. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/rmmod
  70. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/depmod
  71. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/lsmod
  72. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
  73. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
  74. mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
  75. %clean
  76. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  77. %post libs -p /sbin/ldconfig
  78. %postun libs -p /sbin/ldconfig
  79. %files
  80. %defattr(-,root,root,-)
  81. %dir %{_sysconfdir}/depmod.d
  82. %dir %{_sysconfdir}/modprobe.d
  83. %dir %{_prefix}/lib/modprobe.d
  84. %{_sysbindir}/kmod
  85. %{_syssbindir}/modprobe
  86. %{_syssbindir}/modinfo
  87. %{_syssbindir}/insmod
  88. %{_syssbindir}/rmmod
  89. %{_syssbindir}/lsmod
  90. %{_syssbindir}/depmod
  91. %attr(0644,root,root) %{_mandir}/man5/*.5*
  92. %attr(0644,root,root) %{_mandir}/man8/*.8*
  93. %doc NEWS README TODO
  94. %license COPYING
  95. %dir %{_datadir}/bash-completion/completions
  96. %dir %{_datadir}/bash-completion
  97. %{_datadir}/bash-completion/completions/kmod
  98. %files libs
  99. /%{_lib}/libkmod.so.*
  100. %files devel
  101. %{_includedir}/libkmod.h
  102. %{_libdir}/pkgconfig/libkmod.pc
  103. %{_libdir}/libkmod.so
  104. /%{_lib}/libkmod.so
  105. %changelog
  106. * Thu Feb 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 28-1
  107. - updated to 28.
  108. * Tue Jul 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 27-1
  109. - updated to 27.
  110. * Fri Feb 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 25-1
  111. - updated to 25.
  112. * Sat Jul 23 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 23-1
  113. - update to 23
  114. * Sat Nov 21 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 22-1
  115. - update to 22
  116. * Wed Jun 10 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 21-1
  117. - update to 21
  118. * Sun May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 20-1
  119. - update to 20
  120. * Wed Nov 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 11-1
  121. - update to 11
  122. - add BR: libxslt
  123. * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 8-1
  124. - initial build for Vine Linux
  125. * Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
  126. - Provide modprobe.conf(5) (rhbz 824552)
  127. * Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
  128. - Update to version 8
  129. * Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
  130. - update to version 7
  131. - fix issue with --show-depends, where built-in
  132. modules of the running kernel fail to include
  133. loadable modules of the kernel specified
  134. * Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
  135. - update to version 6
  136. - remove all patches, they are included in the release
  137. * Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
  138. - try to address brc#771285
  139. * Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
  140. - fix infinite loop with softdeps
  141. * Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
  142. - add upstream patch to fix "modprobe --ignore-install --show-depends"
  143. otherwise dracut misses a lot of modules, which are already loaded
  144. * Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
  145. - add "lsmod"
  146. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-4
  147. - remove temporarily added fake-provides
  148. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-3
  149. - temporarily add fake-provides to be able to bootstrap
  150. the new udev which pulls the old udev into the buildroot
  151. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-1
  152. - Update to version 5
  153. - replace the module-init-tools package and provide all tools
  154. as compatibility symlinks
  155. * Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
  156. - Update to version 4
  157. - set --with-rootprefix=
  158. - enable zlib and xz support
  159. * Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
  160. - Update to latest upstream (adds new depmod replacement utility)
  161. - For the moment, use the "kmod" utility to test the various functions
  162. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
  163. - Update kmod-2-with-rootlibdir patch with rebuild automake files
  164. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
  165. - Initial build for Fedora following package import
  166. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
  167. - There is no generic macro for non-multilib "/lib", hardcode like others
  168. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
  169. - Update package incorporating fixes from initial review feedback
  170. - Cleaups to SPEC, rpath, documentation, library and binary locations
  171. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
  172. - Update package for posting to wider test audience (initial review submitted)
  173. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
  174. - Initial Fedora package for module-init-tools replacement (kmod) library