File osc-plugin-kernel.spec of Package osc-plugin-kernel

#
# spec file for package osc-plugin-kernel
#
# Copyright (c) 2014 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/
#


%if %(if test -d %{_libexecdir}/osc-plugins; then echo 1; else echo 0; fi)
%define oscplugindir %{_libexecdir}/osc-plugins
%else
%define oscplugindir %{_localstatedir}/lib/osc-plugins
%endif
Name:           osc-plugin-kernel
Version:        0
Release:        0
Summary:        Plugin to make kernel maintanance easier
License:        GPL-2.0+
Group:          Development/Tools/Other
Url:            https://github.com/matwey/osc-plugin-kernel
Source0:        osc-plugin-kernel-%{version}.tar.bz2
# Needed for directory ownership
BuildRequires:  osc
Requires:       osc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%if 0%{?!fedora_version:1} && 0%{?!centos_version:1} && 0%{?!scientificlinux_version:1} && 0%{?!rhel_version:1}
Recommends:     rpm-python
Recommends:     rpmdevtools
%endif

%description
This is the kernel plugin for osc (open build service console client). The main purpose of this application is to make it easy to see that the kernel is failed again for ARM architecture ;-)

%prep
%setup -q

%build

%install
install -D -m0644 osc-kernel.py %{buildroot}%{oscplugindir}/osc-kernel.py

%files
%defattr(-, root, root)
%doc README.md LICENSE
# also glob for byte-compiled (pyc) and optimized byte-compiled (pyo)
# files (they are generated by fedora's brp-python-bytecompile script)
%{oscplugindir}/*.py*

%changelog
openSUSE Build Service is sponsored by