[pkg] prepare 1.7.0 and provide a .spec file (closes #3603278) cubicweb-keyword-centos-version-1.7.0-1 cubicweb-keyword-debian-version-1.7.0-1 cubicweb-keyword-version-1.7.0
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 05 Mar 2014 18:03:55 +0100
changeset 131 baf594692e62
parent 130 7554a27b274b
child 132 a5c5d224031c
[pkg] prepare 1.7.0 and provide a .spec file (closes #3603278)
__pkginfo__.py
cubicweb-keyword.spec
debian/changelog
--- a/__pkginfo__.py	Mon Mar 03 15:08:41 2014 +0100
+++ b/__pkginfo__.py	Wed Mar 05 18:03:55 2014 +0100
@@ -4,7 +4,7 @@
 modname = 'keyword'
 distname = "cubicweb-keyword"
 
-numversion = (1, 6, 2)
+numversion = (1, 7, 0)
 version = '.'.join(str(num) for num in numversion)
 
 license = 'LGPL'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb-keyword.spec	Wed Mar 05 18:03:55 2014 +0100
@@ -0,0 +1,48 @@
+# for el5, force use of python2.6
+%if 0%{?el5}
+%define python python26
+%define __python /usr/bin/python2.6
+%else
+%define python python
+%define __python /usr/bin/python
+%endif
+%{!?_python_sitelib: %define _python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:           cubicweb-keyword
+Version:        1.7.0
+Release:        logilab.1%{?dist}
+Summary:        keyword component for the CubicWeb framework
+Group:          Applications/Internet
+License:        LGPL
+Source0:        cubicweb-keyword-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+
+BuildRequires:  %{python} %{python}-setuptools
+Requires:       cubicweb >= 3.15.0
+
+%description
+keyword component for the CubicWeb framework
+This Cubicweb component provides classification (hierarchies of keywords)
+to classify content. See also cubicweb-tag.
+
+%prep
+%setup -q -n cubicweb-keyword-%{version}
+%if 0%{?el5}
+# change the python version in shebangs
+find . -name '*.py' -type f -print0 |  xargs -0 sed -i '1,3s;^#!.*python.*$;#! /usr/bin/python2.6;'
+%endif
+
+%install
+NO_SETUPTOOLS=1 %{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
+# remove generated .egg-info file
+rm -rf $RPM_BUILD_ROOT/usr/lib/python*
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+/*
--- a/debian/changelog	Mon Mar 03 15:08:41 2014 +0100
+++ b/debian/changelog	Wed Mar 05 18:03:55 2014 +0100
@@ -1,3 +1,9 @@
+cubicweb-keyword (1.7.0-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Adrien Di Mascio <Adrien.DiMascio@logilab.fr>  Wed, 05 Mar 2014 18:03:33 +0100
+
 cubicweb-keyword (1.6.2-1) unstable; urgency=low
 
   * new upstream release