From faccb722e6f1d8bc1accfa50d4655fb48cecbf93 Mon Sep 17 00:00:00 2001
From: Sergio Pascual <sergiopr(a)fis.ucm.es>
Date: Mon, 1 Jun 2015 00:49:03 +0200
Subject: Checkout from github, fixes bz #1225970
diff --git a/.gitignore b/.gitignore
index 8c9ffa3..c6ba12e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
scitools-0.6.tar.gz
/scitools-0.8.tar.gz
/scitools-0.9.0.tar.gz
+/scitools-14e67654aaf45edf83c1dc675dc214b535028ca1.tar.gz
diff --git a/scitools.spec b/scitools.spec
index 28b6dee..605d97d 100644
--- a/scitools.spec
+++ b/scitools.spec
@@ -4,15 +4,18 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
+%global commit 14e67654aaf45edf83c1dc675dc214b535028ca1
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
Name: scitools
Version: 0.9.0
-Release: 1%{?dist}
+Release: 2.20150601git14e67654%{?dist}
Summary: A Python library for scientific computing
Group: Applications/Engineering
License: BSD
-URL:
http://code.google.com/p/scitools/
-Source0:
http://scitools.googlecode.com/files/%{name}-%{version}.tar.gz
+URL:
https://github.com/hplgit/scitools
+Source0:
https://github.com/hplgit/scitools/archive/%{commit}/scitools-%{commit}.t...
Source1: README.Fedora
BuildArch: noarch
@@ -49,15 +52,14 @@ Please see the website,
http://code.google.com/p/scitools/wiki/Installation,
or details.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q -n %{name}-%{commit}
cp -p %{SOURCE1} .
%build
-%{__python} setup.py build
+%{__python2} setup.py build
%install
-rm -rf %{buildroot}
-%{__python} setup.py install --skip-build --root %{buildroot}
+%{__python2} setup.py install --skip-build --root %{buildroot}
# The bin directory is really code to interact with the upstream
# author's book. The package works fine without it for normal use.
@@ -66,15 +68,19 @@ rm -rf %{buildroot}/%{_bindir}/*
rm -rf %{buildroot}/%{_mandir}
%files
-%doc LICENSE README ChangeLog README.Fedora examples bin
-%{python_sitelib}/*egg-info
-%{python_sitelib}/%{name}
+%license LICENSE
+%doc README ChangeLog README.Fedora examples bin
+%{python2_sitelib}/*egg-info
+%{python2_sitelib}/%{name}
%files extras
%changelog
+* Mon Jun 01 2015 Sergio Pascual <sergiopr(a)fedoraproject.org> -
0.9.0-2.20150601git14e67654
+- Checkout from github, fixes bz #1225970
+
* Tue Jun 26 2012 Sergio Pascual <sergio.pasra(a)gmail.com> - 0.9.0-1
-- New upstream source
+- New upstream source (0.9.0)
* Wed Feb 08 2012 Sergio Pascual <sergio.pasra(a)gmail.com> - 0.8-3
- Spec cleanup
diff --git a/sources b/sources
index 56303b3..29e4fff 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-731e7ef3a708e2222f32cba726bfdb68 scitools-0.9.0.tar.gz
+e7b172e6522895483d86138663fa50bd
scitools-14e67654aaf45edf83c1dc675dc214b535028ca1.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/scitools.git/commit/?h=master&id=f...