File osc-plugin-install.spec of Package osc-plugin-install
#
# spec file for package osc-plugin-install
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (C) 2012,2013, jw@suse.de, Novell Inc., openSUSE.org
#
# 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: osc-plugin-install
Version: 0.25
Release: 0
Summary: Plugin to make package installation easier
License: GPL-2.0 or GPL-3.0
Group: Development/Tools/Other
Url: https://github.com/jnweiger/%{name}
Source: https://raw.githubusercontent.com/jnweiger/%{name}/master/osc-install.py
# Needed for directory ownership
BuildRequires: osc
Requires: osc
%if 0%{?!fedora_version:1} && 0%{?!centos_version:1} && 0%{?!scientificlinux_version:1} && 0%{?!rhel_version:1}
Recommends: rpm-python rpmdevtools
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if %(if test -d %{_prefix}/lib/osc-plugins; then echo 1; else echo 0; fi)
%define oscplugindir %{_prefix}/lib/osc-plugins
%else
%define oscplugindir %{_localstatedir}/lib/osc-plugins
%endif
%description
This osc plugin extends osc with the subcommand 'osc install'.
The main effort of this plugin is to free the end-user of the sometimes tedious
task to look up the correct repository URL to be used with zypper.
Dependencies are resolved across projects, just as the online one-click mechanism
would do.
The plugin can also guess the best matching platform for your system.
Example usage:
osc co PROJ PACK ; cd PACK
do osc build ; vi ... ; osc ci ; osc results
osc in
Authors:
--------
Juergen Weigert <jw@suse.de>
%prep
%build
%install
install -D -m0644 %{S:0} %{buildroot}%{oscplugindir}/osc-install.py
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
# 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