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

chore: remove debian/fedora packaging

parent 9493c911439c
Pipeline #68815 waiting for manual action with stages
in 1 minute and 20 seconds
......@@ -9,7 +9,6 @@ recursive-include cubicweb_ckeditor/i18n *.po
recursive-include cubicweb_ckeditor/wdoc *
recursive-include test/data bootstrap_cubes *.py
prune debian
exclude *.spec
exclude .gitlab-ci.yml
exclude .yamllint
......
# 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-ckeditor
Version: 0.1.2
Release: logilab.1%{?dist}
Summary: WYSIWYG js editor with ckeditor
Group: Applications/Internet
License: LGPL
Source0: cubicweb-ckeditor-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.22.2
Requires: %{python}-six >= 1.4.0
%description
WYSIWYG js editor with ckeditor
%prep
%setup -q -n cubicweb-ckeditor-%{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)
%{_prefix}/share/cubicweb/cubes/*
cubicweb-ckeditor (0.2.0-2) unstable; urgency=medium
* Use pybuild
* Introduce a python{,3}-cubicweb-file binary package
-- Katia Saurfelt <katia.saurfelt@logilab.fr> Sat, 10 Oct 2020 13:11:50 +0200
cubicweb-ckeditor (0.2.0-1) unstable; urgency=medium
* new upstream release
-- Katia Saurfelt <katia.saurfelt@logilab.fr> Fri, 09 Oct 2020 10:07:08 +0200
cubicweb-ckeditor (0.1.2-1) unstable; urgency=medium
* new upstream release
-- Katia Saurfelt <katia.saurfelt@logilab.fr> Wed, 26 Oct 2016 14:27:34 +0200
cubicweb-ckeditor (0.1.1-1) unstable; urgency=medium
* new upstream release
-- Katia Saurfelt <katia.saurfelt@logilab.fr> Wed, 20 Jul 2016 12:13:53 +0200
cubicweb-ckeditor (0.1.0-1) unstable; urgency=low
* initial release
-- Katia Saurfelt <katia.saurfelt@logilab.fr> Tue, 07 Jun 2016 14:00:34 +0200
Source: cubicweb-ckeditor
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-setuptools,
python-pytest,
python3-all,
python3-setuptools,
python3-pytest,
Standards-Version: 4.3.0
X-Python-Version: >= 2.7
Package: cubicweb-ckeditor
Architecture: all
Section: oldlibs
Depends:
python-cubicweb-ckeditor(= ${source:Version}),
${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
Package: python-cubicweb-ckeditor
Architecture: all
Section: web
Depends:
${python:Depends},
${misc:Depends},
Breaks: cubicweb-ckeditor (<< 0.2.0-2)
Replaces: cubicweb-ckeditor (<< 0.2.0-2)
Description: WYSIWYG js editor with ckeditor
.
CubicWeb is a semantic web framework, see http://www.cubicweb.org
Package: python3-cubicweb-ckeditor
Architecture: all
Section: web
Depends:
${python3:Depends},
${misc:Depends},
Description: WYSIWYG js editor with ckeditor
.
CubicWeb is a semantic web framework, see http://www.cubicweb.org
Upstream Author:
LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Copyright:
Copyright (c) 2016-2020 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr
cubicweb python-cubicweb
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-ckeditor
%:
dh $@ --with python2,python3 --buildsystem=pybuild
extend-diff-ignore = "^([^/]*\.spec$)"
......@@ -51,24 +51,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