commit 9a0fe83d9ad9f038994a890112c1251085fad83f
Author: Björn Esser <bjoern.esser(a)gmail.com>
Date: Thu May 1 16:41:42 2014 +0200
updated to new snapshot git20140423.e56d7fd1bb643d772030e645442af3961a4b88aa
dropped Patch0
python-six is now unbundled in upstream-tarball
python-gensim.spec | 40 ++++++++++++++++++++++------------------
1 files changed, 22 insertions(+), 18 deletions(-)
---
diff --git a/python-gensim.spec b/python-gensim.spec
index f75129c..41d2844 100644
--- a/python-gensim.spec
+++ b/python-gensim.spec
@@ -1,9 +1,9 @@
# Conditional for release and snapshot builds. Uncomment for release-builds.
-%global rel_build 1
+#%%global rel_build 1
# Settings used for build from snapshots.
-%{!?rel_build:%global commit 636daaddea28d4dc07a7c0df444efa8c38c3719a}
-%{!?rel_build:%global commit_date 201400419}
+%{!?rel_build:%global commit e56d7fd1bb643d772030e645442af3961a4b88aa}
+%{!?rel_build:%global commit_date 20140423}
%{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})}
%{!?rel_build:%global gitver git%{commit_date}-%{shortcommit}}
%{!?rel_build:%global gitrel .git%{commit_date}.%{shortcommit}}
@@ -37,8 +37,8 @@ multiple cores. \
%global pypi_name gensim
Name: python-%{pypi_name}
-Version: 0.9.1
-Release: 1%{?dist}
+Version: 0.9.2
+Release: 0.1%{?gitrel}%{?dist}
Summary: Python framework for fast Vector Space Modelling
License: LGPLv2
@@ -48,9 +48,6 @@ URL:
http://radimrehurek.com/%{pypi_name}/
# Sources for snapshot-builds.
%{!?rel_build:Source0:
https://github.com/piskvorky/%{pypi_name}/archive/%{commit}.tar.gz#/%{git...
-# See
https://github.com/piskvorky/gensim/pull/197
-Patch0: %{name}_build-addons.patch
-
%description
%{common_description}
@@ -128,28 +125,30 @@ for everyday usage.
%prep
-%setup -q%{?rel_build:n %{pypi_name}-%{version}}%{!?rel_build:n %{name}-%{commit}}
-%patch0 -b.addons -p 1
+%setup -q%{?rel_build:n %{pypi_name}-%{version}}%{!?rel_build:n %{pypi_name}-%{commit}}
# Clean-up examples for packaging.
find %{pypi_name}/examples -type f -name '*.addons' -print0 | xargs -0 rm -f
-# Unbundle python-six.
-rm -f %{pypi_name}/_six.py*
-for _file in `grep -Rl "%{pypi_name}._six"`
-do
- sed -i.orig -e 's!%{pypi_name}._six!six!g' ${_file} && \
- touch -r ${_file}.orig ${_file} && rm -rf ${_file}.orig
-done
-
# Fix EOL-encodings.
_file="docs/src/_static/js/jquery-migrate-1.1.1.min.js" && \
sed -i.orig -e 's!\r$!!g' ${_file} && \
touch -r ${_file}.orig ${_file} && rm -rf ${_file}.orig
+# Remove hashbangs
+for _file in `find . -type f -name '*.py'`
+do
+ sed '1{\@^#!/usr/bin/env python@d}' ${_file} > ${_file}.new &&
+ touch -r ${_file} ${_file}.new &&
+ mv -f ${_file}.new ${_file}
+done
+
# Fix too strict version of setuptools in ez_setup for epel7.
sed -i -e 's!^DEFAULT_VERSION = "1.3.2"!DEFAULT_VERSION =
"0.9"!' ez_setup.py
+# Bump version in setup.py
+%{!?rel_build:sed -i -e 's!0\.9\.1!%{version}!' setup.py}
+
%build
%{__python2} setup.py build
@@ -202,5 +201,10 @@ popd
%changelog
+* Thu May 01 2014 Björn Esser <bjoern.esser(a)gmail.com> -
0.9.2-0.1.git20140423.e56d7fd
+- updated to new snapshot git20140423.e56d7fd1bb643d772030e645442af3961a4b88aa
+- dropped Patch0
+- python-six is now unbundled in upstream-tarball
+
* Mon Apr 21 2014 Björn Esser <bjoern.esser(a)gmail.com> - 0.9.1-1
- initial rpm release (#1089710)