From 16afd26e2ae8369447176b49fb5f42a6ba74fb45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 12 Oct 2012 09:06:34 +0200 Subject: [PATCH] Initial import of the package after review. --- .gitignore | 1 + python-dbusmock.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+) create mode 100644 python-dbusmock.spec diff --git a/.gitignore b/.gitignore index e69de29..7df914f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-dbusmock-0.1.1.tar.gz diff --git a/python-dbusmock.spec b/python-dbusmock.spec new file mode 100644 index 0000000..51677d4 --- /dev/null +++ b/python-dbusmock.spec @@ -0,0 +1,60 @@ +%global modname dbusmock + +Name: python-%{modname} +Version: 0.1.1 +Release: 2%{?dist} +Summary: Mock D-Bus objects + +Group: Development/Libraries +License: LGPLv3+ +URL: http://pypi.python.org/pypi/python-dbusmock +Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python-devel, python-setuptools, dbus-python, python-nose +BuildRequires: pygobject3, dbus-x11, upower +Requires: dbus-python, pygobject3, dbus-x11 + + + +%description +With this program/Python library you can easily create mock objects on +D-Bus. This is useful for writing tests for software which talks to +D-Bus services such as upower, systemd, ConsoleKit, gnome-session or +others, and it is hard (or impossible without root privileges) to set +the state of the real services to what you expect in your tests. + + +%prep +%setup -q -n %{name}-%{version} + +sed -i -e '/^#!\s*\/.*bin\/.*python/d' %{modname}.py + +rm -rf python-%{modname}.egg-info + +%build +%{__python} setup.py build + + +%install + +%{__python} setup.py install -O1 --skip-build --root=%{buildroot} + +%check +%{__python} setup.py test + + +%files +%doc README.rst COPYING +%{python_sitelib}/*%{modname}* + + +%changelog +* Mon Oct 08 2012 Matěj Cepl - 0.1.1-2 +- remove the bundled egg-info following the package review. + +* Fri Oct 05 2012 Matěj Cepl - 0.1.1-1 +- This version should actually work + +* Tue Oct 02 2012 Matěj Cepl 0.0.3-1 +- initial package for Fedora diff --git a/sources b/sources index e69de29..3e9bd45 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a9b32f61e74d3b1d4efa7304e8d45957 python-dbusmock-0.1.1.tar.gz