kmod-vl.spec 6.4 KB

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