Accepting request 96968 from home:jengelh:dev

Prospective module-init-tools replacement

OBS-URL: https://build.opensuse.org/request/show/96968
OBS-URL: https://build.opensuse.org/package/show/Base:System/kmod?expand=0&rev=1
This commit is contained in:
Cristian Rodríguez 2011-12-18 20:28:33 +00:00 committed by Git OBS Bridge
commit cac10b49d5
5 changed files with 123 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
kmod-1.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b627491ab0793ca0e677accfac00add5a6042d85ae0f1ad88c1e8f78ea689b6d
size 251584

4
kmod.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun Dec 18 20:16:11 UTC 2011 - jengelh@medozas.de
- Initial package for build.opensuse.org

92
kmod.spec Normal file
View File

@ -0,0 +1,92 @@
#
# spec file for package kmod
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kmod
%define lname libkmod1
Summary: Utilities to load modules into the kernel
Version: 1
Release: 0
License: LGPL-2.1+, GPL-2.0+
Group: System/Kernel
URL: http://www.politreco.com/2011/12/announce-kmod-1/
#Git-Clone: git://git.profusion.mobi/kmod
Source: %name-%version.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig, xz
%description
kmod is a set of tools to handle common tasks with Linux kernel
modules like insert, remove, list, check properties, resolve
dependencies and aliases.
These tools are designed on top of libkmod, a library that is shipped
with kmod. The aim is to be compatible with tools, configurations and
indexes from module-init-tools project.
%package -n %lname
Summary: Library to interact with Linux kernel modules
License: LGPL-2.1+
Group: System/Libraries
%description -n %lname
libkmod was created to allow programs to easily insert, remove and
list modules, also checking its properties, dependencies and aliases.
%package -n libkmod-devel
Summary: Development files for libkmod
Group: Development/Libraries/C and C++
License: LGPL-2.1+
Requires: %lname = %version
%description -n libkmod-devel
libkmod was created to allow programs to easily insert, remove and
list modules, also checking its properties, dependencies and aliases.
%prep
%setup -q
%build
# The extra --includedir gives us the possibility to detect dependent
# packages which fail to properly use pkgconfig.
%configure --includedir=%_includedir/%name-%version
make %{?_smp_mflags}
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_bindir/kmod-*
%files -n %lname
%defattr(-,root,root)
%_libdir/libkmod.so.1*
%files -n libkmod-devel
%defattr(-,root,root)
%_includedir/*
%_libdir/pkgconfig/*.pc
%_libdir/libkmod.so
%changelog