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

chore: remove debian/fedora packaging

parent 55954fe5923a
Pipeline #68957 failed with stages
in 1 minute and 44 seconds
......@@ -6,7 +6,6 @@ recursive-include cubicweb_s3storage/i18n *.po
recursive-include cubicweb_s3storage/wdoc *
recursive-include test/data bootstrap_cubes *.py
include tox.ini
recursive-include debian changelog compat control copyright rules
include cubicweb-s3storage.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-s3storage
Version: 0.1.0
Release: logilab.1%{?dist}
Summary: A Cubicweb Storage that stores the data on S3
Group: Applications/Internet
License: LGPL
Source0: cubicweb-s3storage-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.24.7
Requires: %{python}-six >= 1.4.0
%description
A Cubicweb Storage that stores the data on S3
%prep
%setup -q -n cubicweb-s3storage-%{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"
# 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-s3storage (0.1.0-1) UNRELEASED; urgency=low
* initial release
-- LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> Tue, 12 Jun 2018 13:58:07 +0000
Source: cubicweb-s3storage
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends:
debhelper (>= 7),
dh-python,
python (>= 2.6.5),
python-setuptools,
Standards-Version: 3.9.3
X-Python-Version: >= 2.6
Package: cubicweb-s3storage
Architecture: all
Depends:
python-cubicweb (>= 3.24.7),
python-six (>= 1.4.0),
${python:Depends},
${misc:Depends},
Description: A Cubicweb Storage that stores the data on S3
CubicWeb is a semantic web application framework.
.
A Cubicweb Storage that stores the data on S3
.
This package will install all the components you need to run an application
using the cubicweb-s3storage cube.
Upstream Author:
LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Copyright:
Copyright (c) 2018 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr
#!/usr/bin/make -f
%:
dh $@ --with python2
......@@ -45,24 +45,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