kmod-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. Name: kmod
  2. Version: 8
  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. Provides: module-init-tools = 4.0-1
  16. Obsoletes: module-init-tools < 4.0-1
  17. Provides: modutils = 4.0-1
  18. Obsoletes: modutils < 4.0-1
  19. Provides: /sbin/modprobe
  20. Distribution: Vine Linux
  21. Vendor: Project Vine
  22. Packager: daisuke
  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): Libraries to handle kernel module loading and unloading
  31. License: LGPLv2+
  32. Group: System Environment/Libraries
  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): Header files for kmod development
  39. Group: Development/Libraries
  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. %prep
  45. %setup -q
  46. %build
  47. export V=1
  48. %configure \
  49. --bindir=%{_sysbindir} \
  50. --sbindir=%{_syssbindir} \
  51. --with-zlib \
  52. --with-xz
  53. make %{?_smp_mflags}
  54. %install
  55. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  56. make install DESTDIR=$RPM_BUILD_ROOT
  57. pushd $RPM_BUILD_ROOT/%{_mandir}/man5
  58. ln -s modprobe.d.5.gz modprobe.conf.5.gz
  59. popd
  60. install -m755 tools/kmod-nolib $RPM_BUILD_ROOT%{_sysbindir}/
  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. %{_sysbindir}/kmod-nolib
  88. %{_syssbindir}/modprobe
  89. %{_syssbindir}/modinfo
  90. %{_syssbindir}/insmod
  91. %{_syssbindir}/rmmod
  92. %{_syssbindir}/lsmod
  93. %{_syssbindir}/depmod
  94. %attr(0644,root,root) %{_mandir}/man5/*.5*
  95. %attr(0644,root,root) %{_mandir}/man8/*.8*
  96. %doc NEWS README TODO COPYING
  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. * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 8-1
  106. - initial build for Vine Linux
  107. * Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
  108. - Provide modprobe.conf(5) (rhbz 824552)
  109. * Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
  110. - Update to version 8
  111. * Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
  112. - update to version 7
  113. - fix issue with --show-depends, where built-in
  114. modules of the running kernel fail to include
  115. loadable modules of the kernel specified
  116. * Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
  117. - update to version 6
  118. - remove all patches, they are included in the release
  119. * Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
  120. - try to address brc#771285
  121. * Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
  122. - fix infinite loop with softdeps
  123. * Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
  124. - add upstream patch to fix "modprobe --ignore-install --show-depends"
  125. otherwise dracut misses a lot of modules, which are already loaded
  126. * Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
  127. - add "lsmod"
  128. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-4
  129. - remove temporarily added fake-provides
  130. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-3
  131. - temporarily add fake-provides to be able to bootstrap
  132. the new udev which pulls the old udev into the buildroot
  133. * Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-1
  134. - Update to version 5
  135. - replace the module-init-tools package and provide all tools
  136. as compatibility symlinks
  137. * Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
  138. - Update to version 4
  139. - set --with-rootprefix=
  140. - enable zlib and xz support
  141. * Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
  142. - Update to latest upstream (adds new depmod replacement utility)
  143. - For the moment, use the "kmod" utility to test the various functions
  144. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
  145. - Update kmod-2-with-rootlibdir patch with rebuild automake files
  146. * Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
  147. - Initial build for Fedora following package import
  148. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
  149. - There is no generic macro for non-multilib "/lib", hardcode like others
  150. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
  151. - Update package incorporating fixes from initial review feedback
  152. - Cleaups to SPEC, rpath, documentation, library and binary locations
  153. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
  154. - Update package for posting to wider test audience (initial review submitted)
  155. * Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
  156. - Initial Fedora package for module-init-tools replacement (kmod) library