kmod-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. Name: kmod
  2. Summary: Linux kernel module management utilities
  3. Summary(ja): Linux カーネルモジュール管理ユーティリティ
  4. Version: 29
  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 Jul 01 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 29-1
  107. - updated to 29.
  108. * Thu Feb 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 28-1
  109. - updated to 28.
  110. * Tue Jul 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 27-1
  111. - updated to 27.
  112. * Fri Feb 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 25-1
  113. - updated to 25.
  114. * Sat Jul 23 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 23-1
  115. - update to 23
  116. * Sat Nov 21 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 22-1
  117. - update to 22
  118. * Wed Jun 10 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 21-1
  119. - update to 21
  120. * Sun May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 20-1
  121. - update to 20
  122. * Wed Nov 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 11-1
  123. - update to 11
  124. - add BR: libxslt
  125. * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 8-1
  126. - initial build for Vine Linux
  127. * Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
  128. - Provide modprobe.conf(5) (rhbz 824552)
  129. * Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
  130. - Update to version 8
  131. * Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
  132. - update to version 7
  133. - fix issue with --show-depends, where built-in
  134. modules of the running kernel fail to include
  135. loadable modules of the kernel specified
  136. * Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
  137. - update to version 6
  138. - remove all patches, they are included in the release
  139. * Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
  140. - try to address brc#771285
  141. * Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
  142. - fix infinite loop with softdeps
  143. * Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
  144. - add upstream patch to fix "modprobe --ignore-install --show-depends"
  145. otherwise dracut misses a lot of modules, which are already loaded
  146. * Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
  147. - add "lsmod"
  148. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-4
  149. - remove temporarily added fake-provides
  150. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-3
  151. - temporarily add fake-provides to be able to bootstrap
  152. the new udev which pulls the old udev into the buildroot
  153. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-1
  154. - Update to version 5
  155. - replace the module-init-tools package and provide all tools
  156. as compatibility symlinks
  157. * Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
  158. - Update to version 4
  159. - set --with-rootprefix=
  160. - enable zlib and xz support
  161. * Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
  162. - Update to latest upstream (adds new depmod replacement utility)
  163. - For the moment, use the "kmod" utility to test the various functions
  164. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
  165. - Update kmod-2-with-rootlibdir patch with rebuild automake files
  166. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
  167. - Initial build for Fedora following package import
  168. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
  169. - There is no generic macro for non-multilib "/lib", hardcode like others
  170. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
  171. - Update package incorporating fixes from initial review feedback
  172. - Cleaups to SPEC, rpath, documentation, library and binary locations
  173. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
  174. - Update package for posting to wider test audience (initial review submitted)
  175. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
  176. - Initial Fedora package for module-init-tools replacement (kmod) library