kmod-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. Name: kmod
  2. Version: 11
  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. install -m755 tools/kmod-nolib $RPM_BUILD_ROOT%{_sysbindir}/
  62. mkdir -p $RPM_BUILD_ROOT/%{_lib}
  63. mv $RPM_BUILD_ROOT/%{_libdir}/*.so* $RPM_BUILD_ROOT/%{_lib}/
  64. ln -sf ../../%{_lib}/libkmod.so $RPM_BUILD_ROOT/%{_libdir}/libkmod.so
  65. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  66. mkdir -p $RPM_BUILD_ROOT%{_syssbindir}
  67. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/modprobe
  68. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/modinfo
  69. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/insmod
  70. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/rmmod
  71. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/depmod
  72. ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_syssbindir}/lsmod
  73. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
  74. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
  75. mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
  76. %clean
  77. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  78. %post libs
  79. /sbin/ldconfig
  80. %postun libs
  81. /sbin/ldconfig
  82. %files
  83. %defattr(-,root,root,-)
  84. %dir %{_sysconfdir}/depmod.d
  85. %dir %{_sysconfdir}/modprobe.d
  86. %dir %{_prefix}/lib/modprobe.d
  87. %{_sysbindir}/kmod
  88. %{_sysbindir}/kmod-nolib
  89. %{_syssbindir}/modprobe
  90. %{_syssbindir}/modinfo
  91. %{_syssbindir}/insmod
  92. %{_syssbindir}/rmmod
  93. %{_syssbindir}/lsmod
  94. %{_syssbindir}/depmod
  95. %attr(0644,root,root) %{_mandir}/man5/*.5*
  96. %attr(0644,root,root) %{_mandir}/man8/*.8*
  97. %doc NEWS README TODO COPYING
  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. *Wed Nov 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 11-1
  107. - update to 11
  108. - add BR: libxslt
  109. * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 8-1
  110. - initial build for Vine Linux
  111. * Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
  112. - Provide modprobe.conf(5) (rhbz 824552)
  113. * Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
  114. - Update to version 8
  115. * Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
  116. - update to version 7
  117. - fix issue with --show-depends, where built-in
  118. modules of the running kernel fail to include
  119. loadable modules of the kernel specified
  120. * Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
  121. - update to version 6
  122. - remove all patches, they are included in the release
  123. * Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
  124. - try to address brc#771285
  125. * Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
  126. - fix infinite loop with softdeps
  127. * Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
  128. - add upstream patch to fix "modprobe --ignore-install --show-depends"
  129. otherwise dracut misses a lot of modules, which are already loaded
  130. * Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
  131. - add "lsmod"
  132. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-4
  133. - remove temporarily added fake-provides
  134. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-3
  135. - temporarily add fake-provides to be able to bootstrap
  136. the new udev which pulls the old udev into the buildroot
  137. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-1
  138. - Update to version 5
  139. - replace the module-init-tools package and provide all tools
  140. as compatibility symlinks
  141. * Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
  142. - Update to version 4
  143. - set --with-rootprefix=
  144. - enable zlib and xz support
  145. * Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
  146. - Update to latest upstream (adds new depmod replacement utility)
  147. - For the moment, use the "kmod" utility to test the various functions
  148. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
  149. - Update kmod-2-with-rootlibdir patch with rebuild automake files
  150. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
  151. - Initial build for Fedora following package import
  152. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
  153. - There is no generic macro for non-multilib "/lib", hardcode like others
  154. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
  155. - Update package incorporating fixes from initial review feedback
  156. - Cleaups to SPEC, rpath, documentation, library and binary locations
  157. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
  158. - Update package for posting to wider test audience (initial review submitted)
  159. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
  160. - Initial Fedora package for module-init-tools replacement (kmod) library