commit 1d3624619acc492f7ed8fa4573849be53a6de6d6ad851c8d5a5ce001530620f3
Author: Denisart Benjamin
Date: Sun Nov 23 12:46:40 2014 +0000
Accepting request 262318 from home:cbosdonnat
Runtime dependency for kimchi
Changed: Get it to build on 13.1, the libparted-devel version constraint was too strict
OBS-URL: https://build.opensuse.org/request/show/262318
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=1
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..9b03811
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,23 @@
+## Default LFS
+*.7z filter=lfs diff=lfs merge=lfs -text
+*.bsp filter=lfs diff=lfs merge=lfs -text
+*.bz2 filter=lfs diff=lfs merge=lfs -text
+*.gem filter=lfs diff=lfs merge=lfs -text
+*.gz filter=lfs diff=lfs merge=lfs -text
+*.jar filter=lfs diff=lfs merge=lfs -text
+*.lz filter=lfs diff=lfs merge=lfs -text
+*.lzma filter=lfs diff=lfs merge=lfs -text
+*.obscpio filter=lfs diff=lfs merge=lfs -text
+*.oxt filter=lfs diff=lfs merge=lfs -text
+*.pdf filter=lfs diff=lfs merge=lfs -text
+*.png filter=lfs diff=lfs merge=lfs -text
+*.rpm filter=lfs diff=lfs merge=lfs -text
+*.tbz filter=lfs diff=lfs merge=lfs -text
+*.tbz2 filter=lfs diff=lfs merge=lfs -text
+*.tgz filter=lfs diff=lfs merge=lfs -text
+*.ttf filter=lfs diff=lfs merge=lfs -text
+*.txz filter=lfs diff=lfs merge=lfs -text
+*.whl filter=lfs diff=lfs merge=lfs -text
+*.xz filter=lfs diff=lfs merge=lfs -text
+*.zip filter=lfs diff=lfs merge=lfs -text
+*.zst filter=lfs diff=lfs merge=lfs -text
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..57affb6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.osc
diff --git a/pyparted-3.10.patch b/pyparted-3.10.patch
new file mode 100644
index 0000000..7e9ef62
--- /dev/null
+++ b/pyparted-3.10.patch
@@ -0,0 +1,12 @@
+diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-pyparted-3.10/src/parted/disk.py ./src/parted/disk.py
+--- ../orig-pyparted-3.10/src/parted/disk.py 2013-04-09 17:31:40.000000000 +0200
++++ ./src/parted/disk.py 2014-02-09 09:49:31.693576602 +0100
+@@ -486,4 +486,7 @@
+ if not __flag:
+ __readFlags = False
+ else:
+- diskFlag[__flag] = _ped.disk_flag_get_name(__flag)
++ try:
++ diskFlag[__flag] = _ped.disk_flag_get_name(__flag)
++ except:
++ print "Bad disk flag:", __flag
diff --git a/pyparted-3.10.tar.gz b/pyparted-3.10.tar.gz
new file mode 100644
index 0000000..da165a4
--- /dev/null
+++ b/pyparted-3.10.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb8de71ba54983af84cf036002511cfb6d8fab4fc5e9a9be7236ecba6d24989f
+size 189069
diff --git a/python-parted.changes b/python-parted.changes
new file mode 100644
index 0000000..7463c71
--- /dev/null
+++ b/python-parted.changes
@@ -0,0 +1,16 @@
+-------------------------------------------------------------------
+Thu Nov 6 12:48:20 UTC 2014 - cbosdonnat@suse.com
+
+- Fixed indentation error in pyparted-3.10.patch
+
+-------------------------------------------------------------------
+Sun Feb 9 08:50:51 UTC 2014 - kkaempf@suse.com
+
+- catch 'unknown disk flag' exception
+ add pyparted-3.10.patch
+
+-------------------------------------------------------------------
+Sat Feb 8 15:56:34 UTC 2014 - kkaempf@suse.com
+
+- Initial version 3.10
+
diff --git a/python-parted.spec b/python-parted.spec
new file mode 100644
index 0000000..7efb31d
--- /dev/null
+++ b/python-parted.spec
@@ -0,0 +1,57 @@
+#
+# spec file for package parted
+#
+# 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/
+#
+
+Summary: Python module for GNU parted
+Name: python-parted
+%define srcname pyparted
+Version: 3.10
+Release: 0
+License: GPL-2.0+
+Group: Developement/Languages/Python
+URL: http://fedorahosted.org/pyparted
+
+Source0: http://fedorahosted.org/releases/p/y/%{srcname}/%{srcname}-%{version}.tar.gz
+# catch exception for unknown 'disk flag', kkaempf@suse.de
+Patch: pyparted-3.10.patch
+
+BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
+BuildRequires: python-devel
+BuildRequires: parted-devel
+BuildRequires: pkgconfig
+
+%description
+Python module for the parted library. It is used for manipulating
+partition tables.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+%patch -p1
+
+%build
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
+%{python_sitearch}/_ped.so
+%{python_sitearch}/parted
+%{python_sitearch}/%{srcname}-%{version}-*.egg-info
+
+%changelog