Commit e6317747 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore: remove debian/fedora packaging

parent 90974b17ac7f
Pipeline #68875 waiting for manual action with stages
in 1 minute and 51 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-geocoding
Version: 0.3.0
Release: logilab.1%{?dist}
Summary: geocoding component for the CubicWeb framework
Group: Applications/Internet
License: LGPL
Source0: cubicweb-geocoding-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.24.0
%description
geocoding component for the CubicWeb framework
%prep
%setup -q -n cubicweb-geocoding-%{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}/*
cubicweb-geocoding (0.3.0-3) unstable; urgency=medium
* Add missing Breaks/Replaces against cubicweb-geocoding
-- Philippe Pepiot <philippe.pepiot@logilab.fr> Tue, 26 Nov 2019 11:07:30 +0100
cubicweb-geocoding (0.3.0-2) unstable; urgency=medium
* Update packaging with support for python3
-- Philippe Pepiot <philippe.pepiot@logilab.fr> Thu, 21 Nov 2019 12:44:56 +0100
cubicweb-geocoding (0.3.0-1) unstable; urgency=medium
* new upstream release
-- Philippe Pepiot <philippe.pepiot@logilab.fr> Tue, 05 Mar 2019 14:24:08 +0100
cubicweb-geocoding (0.2.1-1) unstable; urgency=low
* new upstream release
-- Adrien Di Mascio <Adrien.DiMascio@logilab.fr> Wed, 05 Mar 2014 17:42:19 +0100
cubicweb-geocoding (0.2.0-1) unstable; urgency=low
* new upstream release
-- Julien Cristau <julien.cristau@logilab.fr> Mon, 09 Dec 2013 17:25:33 +0100
cubicweb-geocoding (0.1.0-1) unstable; urgency=low
* initial release
-- Julien Cristau <julien.cristau@logilab.fr> Fri, 05 Oct 2012 17:40:11 +0200
Source: cubicweb-geocoding
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-cubicweb,
python-setuptools,
python3-all,
python3-cubicweb,
python3-setuptools
Standards-Version: 4.3.0
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.5
Package: python-cubicweb-geocoding
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Breaks: cubicweb-geocoding (<< 0.3.0-2~)
Replaces: cubicweb-geocoding (<< 0.3.0-2~)
Description: geocoding component for the CubicWeb framework
CubicWeb is a semantic web application framework.
.
This component contains views for geocodable objects.
.
This package will install all the components you need to run the
cubicweb-geocoding application (cube :)..
Package: python3-cubicweb-geocoding
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: geocoding component for the CubicWeb framework
CubicWeb is a semantic web application framework.
.
This component contains views for geocodable objects.
.
This package will install all the components you need to run the
cubicweb-geocoding application (cube :)..
Package: cubicweb-geocoding
Architecture: all
Section: oldlibs
Depends: python-cubicweb-geocoding, ${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
Upstream Author:
LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Copyright:
Copyright (c) 2012 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-geocoding
# This cube has no tests
export PYBUILD_DISABLE = test
%:
dh $@ --with python2,python3 --buildsystem=pybuild
extend-diff-ignore = "^(.hg(/|ignore$|tags$)|[^/]*\.spec$|__pkginfo__\.py$)"
......@@ -39,24 +39,6 @@ commands =
twine check dist/*
twine upload --skip-existing dist/*
[testenv:deb-publish]
passenv = JENKINS_USER JENKINS_TOKEN
basepython = python3
skip_install = true
whitelist_externals =
rm
sh
hg
deps =
httpie
commands =
hg clean --all --dirs --files
rm -rf build dist .egg .egg-info
python3 setup.py sdist
sh -c "PACKAGE_NAME=$(python3 setup.py --name) && VERSION=$(python3 setup.py --version) && cd dist && tar xf $PACKAGE_NAME-$VERSION.tar.gz && cd $PACKAGE_NAME-$VERSION && cp -a {toxinidir}/debian . && mk-origtargz --rename ../$PACKAGE_NAME-$VERSION.tar.gz && dpkg-buildpackage -us -uc --no-check-builddeps --build=source "
sh -c "cd dist && dcmd zip latest.zip *.changes"
http -f POST https://{env:JENKINS_USER}:{env:JENKINS_TOKEN}@jenkins.intra.logilab.fr/job/pkg-from-dsc/buildWithParameters DIST=buster source.zip@dist/latest.zip REPO=buster PUBLISH=true
[testenv:yamllint]
skip_install = true
deps = yamllint
......
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