Accepting request 215234 from zypp:Head
Softwarestack update OBS-URL: https://build.opensuse.org/request/show/215234 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zypp-plugin?expand=0&rev=8
This commit is contained in:
commit
d0c1db1c57
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a2fb665be74035aa08d919c6e2d8b3877fe4b6ced9761db117c747ad1141f2e2
|
|
||||||
size 3923
|
|
3
zypp-plugin-0.4.tar.bz2
Normal file
3
zypp-plugin-0.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b6091a56745266dde22bc36edee314b75b1b29c8ec2b49f5457982ae7b5cd7dd
|
||||||
|
size 4082
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 25 17:21:49 CET 2014 - ma@suse.de
|
||||||
|
|
||||||
|
- Add .pyc/.pyo to package
|
||||||
|
- version 0.4
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 9 10:01:48 UTC 2012 - coolo@suse.com
|
Wed May 9 10:01:48 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package zypp-plugin
|
# spec file for package zypp-plugin
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011-2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -11,32 +11,37 @@
|
|||||||
# case the license is the MIT License). An "Open Source License" is a
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
Name: zypp-plugin
|
|
||||||
Version: 0.3
|
|
||||||
Release: 0
|
Name: zypp-plugin
|
||||||
Group: System/Packages
|
Version: 0.4
|
||||||
License: GPL-2.0
|
Release: 0
|
||||||
Url: https://gitorious.org/opensuse/zypp-plugin
|
Url: https://gitorious.org/opensuse/zypp-plugin
|
||||||
Summary: Helper that makes writing ZYpp plugins easier
|
Summary: Helper that makes writing ZYpp plugins easier
|
||||||
|
License: GPL-2.0
|
||||||
|
Group: System/Packages
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
# Actually libzypp(plugin) should be required. Unfortunately the corresponing
|
# Actually libzypp(plugin) should be required. Unfortunately the corresponing
|
||||||
# provides was introduced to late for SUSE Manager/SLE-11-SP1. We do not want to
|
# provides was introduced to late for SUSE Manager/SLE-11-SP1. We do not want to
|
||||||
# enforce libzypp update to satisfy this, so the Requires should saty disabled,
|
# enforce libzypp update to satisfy this, so the Requires should saty disabled,
|
||||||
# until libzypp on SUSE Manager/SLE-11-SP1 was updated and provides libzypp(plugin).
|
# until libzypp on SUSE Manager/SLE-11-SP1 was updated and provides libzypp(plugin).
|
||||||
#Requires: libzypp(plugin)
|
#Requires: libzypp(plugin)
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
Requires: python
|
Requires: python
|
||||||
|
|
||||||
|
%{?!py_sitearch: %global py_sitearch %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(True)')}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Empty main package. Helper for different languages reside in subpackages.
|
Empty main package. Helper for different languages reside in subpackages.
|
||||||
|
|
||||||
%package python
|
%package python
|
||||||
Group: System/Packages
|
Summary: Helper that makes writing ZYpp plugins in python easier
|
||||||
License: GPL-2.0
|
Group: System/Packages
|
||||||
Summary: Helper that makes writing ZYpp plugins in python easier
|
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
This API allows writing ZYpp plugins by just subclassing from a python class
|
This API allows writing ZYpp plugins by just subclassing from a python class
|
||||||
@ -48,9 +53,17 @@ and implementing the commands you want to respond to as python methods.
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__mkdir_p} %{buildroot}%{py_sitedir}
|
%{__mkdir_p} %{buildroot}%{py_sitearch}
|
||||||
%{__install} python/zypp_plugin.py %{buildroot}%{py_sitedir}/zypp_plugin.py
|
%{__install} python/zypp_plugin.py %{buildroot}%{py_sitearch}/zypp_plugin.py
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
pushd $RPM_BUILD_ROOT/%{python_sitearch}
|
||||||
|
python %py_libdir/py_compile.py *.py
|
||||||
|
python -O %py_libdir/py_compile.py *.py
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%files python
|
%files python
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{py_sitedir}/zypp_plugin.py
|
%{py_sitearch}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user