File osc-plugin-overview.spec of Package osc-plugin-overview
#
# spec file for package osc-plugin-overview
#
# Copyright (c) 2017 SUSE LINUX 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/
#
BuildRequires: osc
BuildRequires: python
Name: osc-plugin-overview
Version: 0.4.0+git.1500975670.b4db6d4
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
Summary: Plugins for the osc tool to assist comparing versions across repositories
License: GPL-2.0+
Group: Development/Tools/Other
Url: https://en.opensuse.org/openSUSE:OSC_overview_plugin
BuildArch: noarch
Requires: osc
%description
This package is a collection of osc plugins to assist comparison of build service
repositories against other repositories or even upstream repositories.
See https://en.opensuse.org/openSUSE:OSC_overview_plugin for an idea of what we are trying to achieve and http://en.opensuse.org/Build_Service/CLI for general information about osc.
%prep
%setup -q
%build
cd src
python setup.py build
%install
cd src
%{__mkdir_p} %{buildroot}/%{python_sitelib}/oscpluginoverview
python setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
%{__mkdir_p} %{buildroot}/var/lib/osc-plugins
%{__install} overview.py %{buildroot}/var/lib/osc-plugins
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
#% doc README AUTHORS NEWS COPYING
%{python_sitelib}/*.egg-info
%dir %{python_sitelib}/oscpluginoverview
%{python_sitelib}/oscpluginoverview/*
/var/lib/osc-plugins/*.py
%changelog