[packages/python-PyGitUp] - disabled tests - cleaned up files - fixed deps
baggins
baggins at pld-linux.org
Fri Jul 4 22:19:52 CEST 2014
commit a0b5bf5d308ed63d2f27f7bca7d38be788f72d48
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Jul 4 22:19:50 2014 +0200
- disabled tests
- cleaned up files
- fixed deps
python-PyGitUp.spec | 15 ++++++++++-----
requirements.patch | 24 ++++++++++++++++++++++++
2 files changed, 34 insertions(+), 5 deletions(-)
---
diff --git a/python-PyGitUp.spec b/python-PyGitUp.spec
index 45e3e19..61aef7f 100644
--- a/python-PyGitUp.spec
+++ b/python-PyGitUp.spec
@@ -1,6 +1,6 @@
#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_with tests # do not perform "make test"
%define module PyGitUp
Summary: git-up(1) -- fetch and rebase all locally-tracked remote branches
@@ -11,6 +11,7 @@ License: BSD
Group: Libraries/Python
Source0: https://github.com/msiemens/PyGitUp/archive/v%{version}.tar.gz?/%{module}-v%{version}.tar.gz
# Source0-md5: fd7d89489bb045853077909fe0fd95aa
+Patch0: requirements.patch
URL: https://github.com/msiemens/PyGitUp
BuildRequires: rpm-pythonprov
# if py_postclean is used
@@ -41,6 +42,7 @@ git-up(1) -- fetch and rebase all locally-tracked remote branches.
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
%{__python} setup.py build %{?with_tests:test}
@@ -60,9 +62,12 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
-%{py_sitescriptdir}/*.py[co]
-%attr(755,root,root) %{py_sitescriptdir}/*.so
+%doc README.rst
+%attr(755,root,root) %{_bindir}/git-up
+%attr(755,root,root) %{_bindir}/gitup.py
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%{py_sitescriptdir}/%{module}/check-bundler.rb
%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/TEMPLATE-*.egg-info
+%{py_sitescriptdir}/git_up-*.egg-info
%endif
diff --git a/requirements.patch b/requirements.patch
new file mode 100644
index 0000000..d6d5fd4
--- /dev/null
+++ b/requirements.patch
@@ -0,0 +1,24 @@
+--- PyGitUp-1.1.4/requirements.txt~ 2014-04-18 15:16:40.000000000 +0200
++++ PyGitUp-1.1.4/requirements.txt 2014-07-04 21:58:53.752795470 +0200
+@@ -1,4 +1,4 @@
+-GitPython==0.3.2.RC1
+-colorama==0.2.4,==0.3.0
+-termcolor==1.1.0
+-docopt==0.6.1
++GitPython>=0.3.2.RC1
++colorama>=0.2.4
++termcolor>=1.1.0
++docopt>=0.6.1
+--- PyGitUp-1.1.4/setup.py~ 2014-04-18 15:16:40.000000000 +0200
++++ PyGitUp-1.1.4/setup.py 2014-07-04 22:00:21.402320632 +0200
+@@ -6,8 +6,8 @@
+ version="1.1.4",
+ packages=find_packages(exclude=["tests"]),
+ scripts=['PyGitUp/gitup.py'],
+- install_requires=['GitPython==0.3.2.RC1', 'colorama==0.2.4,==0.3.0',
+- 'termcolor==1.1.0', 'docopt==0.6.1'],
++ install_requires=['GitPython>=0.3.2.RC1', 'colorama>=0.2.4',
++ 'termcolor>=1.1.0', 'docopt>=0.6.1'],
+
+ # Tests
+ test_suite="nose.collector",
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-PyGitUp.git/commitdiff/a0b5bf5d308ed63d2f27f7bca7d38be788f72d48
More information about the pld-cvs-commit
mailing list