Commit de7962f8 authored by Nicola Spanti's avatar Nicola Spanti
Browse files

Upgrade miscellaneous things

- Versions of CubicWeb that are less than 3.26 are not supported
  anymore, because we don't support them.
- Setup that 2.7 is the minimum Python version.
- cubicweb-bootstrap.spec was used for Python 2.6, that is why
  it has been removed.
- Indicate that it intented to work in Python 2 and 3.
- Define a minimum version of `six`, the one of Debian 10 "Buster",
  because we don't test on older versions.
- HTTPS is better than HTTP.
parent 263334eb2355
Pipeline #30426 passed with stages
in 1 minute and 28 seconds
# 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-bootstrap
Version: 1.6.2
Release: logilab.1%{?dist}
Summary: bootstrap component for the CubicWeb framework
Group: Applications/Internet
License: LGPL
Source0: cubicweb-bootstrap-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.24.0
Requires: %{python}-six
%description
bootstrap component for the CubicWeb framework
Bootstrap-compatible widgets and views.
%prep
%setup -q -n cubicweb-bootstrap-%{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
%{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_python_sitelib}/*
......@@ -11,11 +11,11 @@ license = 'LGPL'
author = 'LOGILAB S.A. (Paris, FRANCE)'
author_email = 'contact@logilab.fr'
description = ''
web = 'http://www.cubicweb.org/project/%s' % distname
web = 'https://www.cubicweb.org/project/%s' % distname
__depends__ = {
'cubicweb': '>= 3.24.0',
'six': '',
'cubicweb': '>= 3.26.0',
'six': '>= 1.12.O',
}
__recommends__ = {}
......@@ -23,5 +23,7 @@ classifiers = [
'Environment :: Web Environment',
'Framework :: CubicWeb',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: JavaScript',
]
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Bootstrap v3.3.5 (https://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
......
......@@ -5,7 +5,7 @@
* organization: Logilab
* copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
* contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
* contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
......
......@@ -4,7 +4,7 @@ This rules provide the CubicWeb compatibily and are ment to be used in productio
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
*/
/* CW compatibility */
......
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Bootstrap v3.3.5 (https://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under the MIT license
*/
......
# -*- coding: utf-8 -*-
# copyright 2013-2021 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
# contact https://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
......@@ -13,7 +13,7 @@
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
# with this program. If not, see <https://www.gnu.org/licenses/>.
"""cubicweb-bootstrap postcreate script, executed at instance creation time or when
the cube is added to an existing instance.
......
# copyright 2013-2021 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
# contact https://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
......@@ -12,7 +12,7 @@
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
# with this program. If not, see <https://www.gnu.org/licenses/>.
"""this is where you could register procedures for instance"""
__docformat__ = "restructuredtext en"
......
......@@ -4,7 +4,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
# flake8: noqa
......
"""
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
from logilab.common.decorators import monkeypatch
......
......@@ -3,7 +3,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
......@@ -3,7 +3,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
......@@ -2,7 +2,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
......@@ -3,7 +3,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
......@@ -3,7 +3,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
......@@ -2,7 +2,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
......@@ -2,7 +2,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
......@@ -2,7 +2,7 @@
:organization: Logilab
:copyright: 2013 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment