From ccb7a40eb6a606179e230a04bec8ee9665f5dfe41008d9576db6fbef711c9439 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 24 Apr 2013 09:07:25 +0000 Subject: [PATCH 1/3] OBS-URL: https://build.opensuse.org/package/show/zypp:Head/zypp-plugin?expand=0&rev=9 --- zypp-plugin.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zypp-plugin.spec b/zypp-plugin.spec index d4cb841..d56eb50 100644 --- a/zypp-plugin.spec +++ b/zypp-plugin.spec @@ -30,6 +30,8 @@ Source0: %{name}-%{version}.tar.bz2 BuildRequires: python-devel Requires: python +%{?!py_sitedir: %global py_sitedir %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')} + %description Empty main package. Helper for different languages reside in subpackages. From 3c0ef127f4f72feb941f9207229b0a6a543f160ae32f3401e7d821ee7940f78a Mon Sep 17 00:00:00 2001 From: ZYpp Developers Date: Wed, 24 Apr 2013 09:39:51 +0000 Subject: [PATCH 2/3] Update to last successful build OBS-URL: https://build.opensuse.org/package/show/zypp:Head/zypp-plugin?expand=0&rev=10 --- zypp-plugin-0.3.tar.bz2 | 4 ++-- zypp-plugin.spec | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/zypp-plugin-0.3.tar.bz2 b/zypp-plugin-0.3.tar.bz2 index 0128640..41630bf 100644 --- a/zypp-plugin-0.3.tar.bz2 +++ b/zypp-plugin-0.3.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a2fb665be74035aa08d919c6e2d8b3877fe4b6ced9761db117c747ad1141f2e2 -size 3923 +oid sha256:3239d4b9dffc913601fabfcde75ef1f0bc07d720d4dc44614d8b100c68e2b5ed +size 4049 diff --git a/zypp-plugin.spec b/zypp-plugin.spec index d56eb50..07862c2 100644 --- a/zypp-plugin.spec +++ b/zypp-plugin.spec @@ -30,7 +30,7 @@ Source0: %{name}-%{version}.tar.bz2 BuildRequires: python-devel Requires: python -%{?!py_sitedir: %global py_sitedir %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')} +%{?!py_sitearch: %global py_sitearch %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(True)')} %description Empty main package. Helper for different languages reside in subpackages. @@ -50,9 +50,15 @@ and implementing the commands you want to respond to as python methods. %build %install -%{__mkdir_p} %{buildroot}%{py_sitedir} -%{__install} python/zypp_plugin.py %{buildroot}%{py_sitedir}/zypp_plugin.py +%{__mkdir_p} %{buildroot}%{py_sitearch} +%{__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 %defattr(-,root,root) -%{py_sitedir}/zypp_plugin.py +%{py_sitearch}/* From b2e6f7dd0c166228a26d35c221f40b88daac24999dd8657236299c2225fd797f Mon Sep 17 00:00:00 2001 From: ZYpp Developers Date: Sat, 25 Jan 2014 16:24:45 +0000 Subject: [PATCH 3/3] Update to last successful build OBS-URL: https://build.opensuse.org/package/show/zypp:Head/zypp-plugin?expand=0&rev=11 --- zypp-plugin-0.3.tar.bz2 | 3 --- zypp-plugin-0.4.tar.bz2 | 3 +++ zypp-plugin.changes | 6 ++++++ zypp-plugin.spec | 33 +++++++++++++++++++-------------- 4 files changed, 28 insertions(+), 17 deletions(-) delete mode 100644 zypp-plugin-0.3.tar.bz2 create mode 100644 zypp-plugin-0.4.tar.bz2 diff --git a/zypp-plugin-0.3.tar.bz2 b/zypp-plugin-0.3.tar.bz2 deleted file mode 100644 index 41630bf..0000000 --- a/zypp-plugin-0.3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3239d4b9dffc913601fabfcde75ef1f0bc07d720d4dc44614d8b100c68e2b5ed -size 4049 diff --git a/zypp-plugin-0.4.tar.bz2 b/zypp-plugin-0.4.tar.bz2 new file mode 100644 index 0000000..c239ea6 --- /dev/null +++ b/zypp-plugin-0.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6091a56745266dde22bc36edee314b75b1b29c8ec2b49f5457982ae7b5cd7dd +size 4082 diff --git a/zypp-plugin.changes b/zypp-plugin.changes index 3fde55f..5f954a0 100644 --- a/zypp-plugin.changes +++ b/zypp-plugin.changes @@ -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 diff --git a/zypp-plugin.spec b/zypp-plugin.spec index 07862c2..ba17b12 100644 --- a/zypp-plugin.spec +++ b/zypp-plugin.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -11,24 +11,28 @@ # 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: zypp-plugin -Version: 0.3 -Release: 0 -Group: System/Packages -License: GPL-2.0 -Url: https://gitorious.org/opensuse/zypp-plugin -Summary: Helper that makes writing ZYpp plugins easier + + +Name: zypp-plugin +Version: 0.4 +Release: 0 +Url: https://gitorious.org/opensuse/zypp-plugin +Summary: Helper that makes writing ZYpp plugins easier +License: GPL-2.0 +Group: System/Packages BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: %{name}-%{version}.tar.bz2 +Source0: %{name}-%{version}.tar.bz2 # 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 # 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). #Requires: libzypp(plugin) -BuildRequires: python-devel -Requires: python +BuildRequires: python-devel +Requires: python %{?!py_sitearch: %global py_sitearch %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(True)')} @@ -36,9 +40,8 @@ Requires: python Empty main package. Helper for different languages reside in subpackages. %package python -Group: System/Packages -License: GPL-2.0 -Summary: Helper that makes writing ZYpp plugins in python easier +Summary: Helper that makes writing ZYpp plugins in python easier +Group: System/Packages %description python This API allows writing ZYpp plugins by just subclassing from a python class @@ -62,3 +65,5 @@ popd %files python %defattr(-,root,root) %{py_sitearch}/* + +%changelog