/[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 195771 - (show annotations) (download)
Fri Jan 13 18:25:45 2012 UTC (2 years, 11 months ago) by tv
File size: 2039 byte(s)
disable static library
1 %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 Version: 3
8 Release: %mkrel 2
9 Source0: http://packages.profusion.mobi/kmod/%{name}-%{version}.tar.xz
10 License: GPLv2+
11 Group: System/Kernel and hardware
12 #Url1: http://www.politreco.com/2011/12/announce-kmod-1/
13 Url: http://git.profusion.mobi/cgit.cgi/kmod.git/
14 BuildRequires: zlib-devel
15 BuildRequires: lzma-devel
16
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 License: LGPLv2+
24
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 License: LGPLv2+
46
47 %description -n %{develname}
48 Development files and headers for %{name}.
49
50
51
52 %prep
53 %setup -q
54
55 %build
56 %configure --with-zlib --with-xz
57 %make
58
59 %install
60 rm -rf %{buildroot}
61 %makeinstall_std
62 cp tools/.libs/kmod-* %buildroot/%_bindir
63 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 %_libdir/pkgconfig/libkmod.pc
77 %_includedir/libkmod.h
78 %_libdir/*.so
79 %_libdir/*.a
80
81

  ViewVC Help
Powered by ViewVC 1.1.15