Commit 71ad63d8 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Drop rpm packaging

We're going to drop python2 support.
Drop rpm python packaging util someone make a python3 rpm packaging.
parent 5adb6c32a237
# for el5, force use of python2.6
%if 0%{?el5}
%define python python26
%define __python /usr/bin/python2.6
%define python python
%define __python /usr/bin/python
%{!?_python_sitelib: %define _python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define project_name logilab-mtconverter
%define project_version 0.9.0
Name: %{python}-%{project_name}
Version: %{project_version}
Release: logilab.1%{?dist}
Summary: a library to convert from a MIME type to another
Group: Development/Languages/Python
License: LGPLv2+
Vendor: Logilab <>
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python}
BuildRequires: %{python}-setuptools
Requires: %{python}
Requires: %{python}-setuptools
Requires: %{python}-six
Requires: %{python}-html2text
Requires: %{python}-logilab-common >= 0.55.2
Requires: %{python}-lxml
This package originally a backport of Zope's PortalTransforms tool with
all Zope's internal removed (i.e. most of the code).
%setup -n %{project_name}-%{version}
%{__python} build
%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;'
%{__python} install -O1 --skip-build --root="$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_ROOT%{_python_sitelib}/logilab/*
%defattr(-, root, root)
Supports Markdown
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