/[packages]/cauldron/kmod/current/SPECS/kmod.spec
ViewVC logotype

Contents of /cauldron/kmod/current/SPECS/kmod.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 192240 - (hide annotations) (download)
Fri Jan 6 02:54:38 2012 UTC (2 years, 9 months ago) by tv
File size: 2055 byte(s)
install kmod-* tools in order to test
1 tv 183406 %define major 1
2     %define libname %mklibname %{name} %{major}
3     %define develname %mklibname %{name} -d
4    
5     Summary: Kernel modules management tools
6     Name: kmod
7 tmb 191693 Version: 3
8 tv 192240 Release: %mkrel 2
9 tmb 187109 Source0: http://packages.profusion.mobi/kmod/%{name}-%{version}.tar.xz
10 tv 183406 License: GPLv2+
11     Group: System/Kernel and hardware
12 tv 183409 #Url1: http://www.politreco.com/2011/12/announce-kmod-1/
13 tv 183406 Url: http://git.profusion.mobi/cgit.cgi/kmod.git/
14 tv 190165 BuildRequires: zlib-devel
15 tv 192235 BuildRequires: lzma-devel
16 tv 183406
17     %description
18     Simple tools for managing kernel modules.
19    
20     %package -n %{libname}
21     Summary: Kernel modules management library
22     Group: System/Libraries
23 tv 183408 License: LGPLv2+
24 tv 183406
25     %description -n %{libname}
26     Dynamic libraries for %{name}.
27    
28     The goal of the libkmod library is to offer to other programs the
29     needed flexibility and fine grained control over insertion, removal,
30     configuration and listing of kernel modules. Using the library, with
31     simple pieces of code it's possible to interact with kernel modules
32     and then there's no need to rely on other tools for that. This is a
33     thing lacking on Linux for a while and it's one of the items in the
34     Plumber's Wish List for Linux. Quoting it:
35    
36     provide a proper libmodprobe.so from module-init-tools:
37     Early boot tools, installers, driver install disks want to access
38     information about available modules to optimize boot up handling.
39    
40     %package -n %{develname}
41     Summary: Development files for %{name}
42     Group: Development/C
43     Requires: %{libname} = %{version}-%{release}
44     Provides: %{name}-devel = %{version}-%{release}
45 tv 183408 License: LGPLv2+
46 tv 183406
47     %description -n %{develname}
48     Development files and headers for %{name}.
49    
50    
51    
52     %prep
53     %setup -q
54 tv 192235 %configure --with-zlib --with-xz --enable-static
55 tv 183406
56     %build
57     %make
58    
59     %install
60     rm -rf %{buildroot}
61     %makeinstall_std
62 tv 192240 cp tools/.libs/kmod-* %buildroot/%_bindir
63 tv 183406 rm -f %buildroot/%_libdir/libkmod.la
64    
65     %clean
66     rm -rf %{buildroot}
67    
68     %files
69     %_bindir/*
70    
71     %files -n %{libname}
72     %_libdir/libkmod.so.%major
73     %_libdir/libkmod.so.%major.*
74    
75     %files -n %{develname}
76 tmb 187113 %_libdir/pkgconfig/libkmod.pc
77 tv 183406 %_includedir/libkmod.h
78     %_libdir/*.so
79 tv 192229 %_libdir/*.a
80 tv 183406
81    

  ViewVC Help
Powered by ViewVC 1.1.15