Commit 29ef613f authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore: remove debian/fedora packaging

parent 0989c9b4a009
Pipeline #68911 waiting for manual action with stages
in 2 minutes and 41 seconds
......@@ -6,7 +6,6 @@ recursive-include cubicweb_treeview/i18n *.po
recursive-include cubicweb_treeview/wdoc *
recursive-include test/data bootstrap_cubes *.py
include *.ini
recursive-include debian changelog compat control copyright rules
include cubicweb-treeview.spec
exclude .gitlab-ci.yml
include README.rst
......
# 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-treeview
Version: 0.1.1
Release: logilab.1%{?dist}
Summary: tree-building adapters, widgets
Group: Applications/Internet
License: LGPL
Source0: cubicweb-treeview-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.16.0
%description
tree-building adapters, widgets
%prep
%setup -q -n cubicweb-treeview-%{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)
/*
cubicweb-treeview (0.1.2-1) unstable; urgency=medium
* new upstream relase.
-- Noe Gaumont <ngaumont@logilab.fr> Tue, 25 Jun 2019 15:34:09 +0200
cubicweb-treeview (0.1.1-1) unstable; urgency=low
* new upstream release
-- Adrien Di Mascio <Adrien.DiMascio@logilab.fr> Tue, 25 Nov 2014 10:37:33 +0100
cubicweb-treeview (0.1.0-1) unstable; urgency=low
* initial release
-- Florent Cayré <florent.cayre@logilab.fr> Thu, 20 Mar 2014 12:48:10 +0100
Source: cubicweb-treeview
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends: debhelper (>= 7), python (>=2.5), python-support
Standards-Version: 3.9.3
XS-Python-Version: >= 2.5
Package: cubicweb-treeview
Architecture: all
Depends: cubicweb-common (>= 3.24.0), ${python:Depends}
Description: tree-building adapters, widgets
CubicWeb is a semantic web application framework.
.
tree-building adapters, widgets, views
.
This package will install all the components you need to run the
cubicweb-treeview application (cube :)..
Upstream Author:
LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Copyright:
Copyright (c) 2013 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-arch build-indep
build-arch:
# Nothing to do
build-indep: build-stamp
build-stamp:
dh_testdir
NO_SETUPTOOLS=1 python setup.py -q build
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
rm -rf build
find . -name "*.pyc" | xargs rm -f
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -i
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-treeview/usr/
# remove generated .egg-info file
rm -rf debian/cubicweb-treeview/usr/lib/python*
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_install -i
dh_installchangelogs -i
dh_installexamples -i
dh_installdocs -i
dh_installman -i
dh_pysupport -i /usr/share/cubicweb
dh_link -i
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch:
binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary
......@@ -43,24 +43,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