kmod-vl.spec 6.5 KB

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