Skip to content

Instantly share code, notes, and snippets.

@jamespo
Created March 8, 2018 12:59
Show Gist options
  • Save jamespo/ac5a7b1b605e4bfc3c196aab68af4dc5 to your computer and use it in GitHub Desktop.
Save jamespo/ac5a7b1b605e4bfc3c196aab68af4dc5 to your computer and use it in GitHub Desktop.
Modified spec file for pipenv package for Fedora 27
# Created by pyp2rpm-3.2.2
%global pypi_name pipenv
Name: python-%{pypi_name}
Version: 11.1.3
Release: 1%{?dist}
Summary: Sacred Marriage of Pipfile, Pip, & Virtualenv
License: MIT
URL: https://github.com/kennethreitz/pipenv
Source0: https://pypi.python.org/packages/f1/b5/b6d5fe8b38a813853d036a889ae98b264fd872be7cc47b390a098879f285/${pypi_name}-${version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
Pipenv: Sacred Marriage of Pipfile, Pip, & Virtualenv **Pipenv** is an
experimental project that aims to bring the best of all packaging worlds to the
Python world. It harnesses Pipfile < pip < and virtualenv < into one single
toolchain. It features very pretty terminal colors.It automatically creates and
manages a virtualenv for your projects, as well as adds/removes packages from
your...
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-pexpect
Requires: python3-virtualenv
Requires: pew >= 0.1.26
Requires: python3-pip
Requires: python3-setuptools
Requires: python3-pexpect
%description -n python3-%{pypi_name}
Pipenv: Sacred Marriage of Pipfile, Pip, & Virtualenv **Pipenv** is an
experimental project that aims to bring the best of all packaging worlds to the
Python world. It harnesses Pipfile < pip < and virtualenv < into one single
toolchain. It features very pretty terminal colors.It automatically creates and
manages a virtualenv for your projects, as well as adds/removes packages from
your...
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
# Unbundle the packages under the vendor and use system bundled packages.
rm -rf build/lib/pipenv/vendor/pexpect
# not needed for py3
rm -rf build/lib/pipenv/vendor/concurrent27
%install
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install.
%py3_install
cp %{buildroot}/%{_bindir}/pipenv %{buildroot}/%{_bindir}/pipenv-%{python3_version}
ln -s %{_bindir}/pipenv-%{python3_version} %{buildroot}/%{_bindir}/pipenv-3
%check
%files -n python3-%{pypi_name}
%doc README.rst
%{_bindir}/pipenv-3
%{_bindir}/pipenv
%{_bindir}/pipenv-%{python3_version}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Thu Mar 8 2018 James Powell <jamespo.REMOVETHESPAM@gmail.com>
* Thu Apr 20 2017 Jun Aruga <jaruga@redhat.com> - 3.5.6-1
- Initial package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment