|
|
bc8dfe9 |
%global pypi_name pipsi
|
|
|
bc8dfe9 |
|
|
|
f4aaaaf |
# test suite is disabled by default for koji builds,
|
|
|
f4aaaaf |
# because tests require internet connection
|
|
|
f4aaaaf |
|
|
|
f4aaaaf |
# Conditial build macro
|
|
|
f4aaaaf |
# http://www.rpm.org/wiki/PackagerDocs/ConditionalBuilds
|
|
|
f4aaaaf |
%bcond_with tests
|
|
|
f4aaaaf |
|
|
|
bc8dfe9 |
Name: %{pypi_name}
|
|
|
bc8dfe9 |
Version: 0.9
|
|
|
f6e3260 |
Release: 13%{?dist}
|
|
|
bc8dfe9 |
Summary: Wraps pip and virtualenv to install scripts
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
License: BSD
|
|
|
bc8dfe9 |
URL: http://github.com/mitsuhiko/pipsi/
|
|
|
bc8dfe9 |
Source0: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
bc8dfe9 |
BuildArch: noarch
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
BuildRequires: python3-devel
|
|
|
bc8dfe9 |
BuildRequires: python3-click
|
|
|
bc8dfe9 |
BuildRequires: python3-virtualenv
|
|
|
bc8dfe9 |
|
|
|
f4aaaaf |
%if %{with tests}
|
|
|
bc8dfe9 |
# Required for tests
|
|
|
bc8dfe9 |
BuildRequires: python3-pytest
|
|
|
bc8dfe9 |
BuildRequires: openssl-devel
|
|
|
bc8dfe9 |
BuildRequires: libacl-devel
|
|
|
f4aaaaf |
%endif
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
Requires: python3-click
|
|
|
bc8dfe9 |
Requires: python3-setuptools
|
|
|
bc8dfe9 |
Requires: python3-virtualenv
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
%description
|
|
|
bc8dfe9 |
Pipsi is a wrapper around virtualenv and pip which installs scripts provided
|
|
|
bc8dfe9 |
by python packages into separate virtualenvs to shield them from your system
|
|
|
bc8dfe9 |
and each other.
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
%prep
|
|
|
bc8dfe9 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
bc8dfe9 |
# Remove bundled egg-info
|
|
|
bc8dfe9 |
rm -rf %{pypi_name}.egg-info
|
|
|
bc8dfe9 |
|
|
|
974d0ec |
# Point to namespaced Python 3 version of virtualenv executable if available
|
|
|
974d0ec |
for cand in virtualenv-3 py3-virtualenv; do
|
|
|
974d0ec |
if [ -e "%{_bindir}/$cand" ]; then
|
|
|
974d0ec |
sed -i "233 s/virtualenv/$cand/" %{pypi_name}.py
|
|
|
974d0ec |
sed -i "70 s/virtualenv/$cand/" get-%{pypi_name}.py
|
|
|
974d0ec |
break
|
|
|
974d0ec |
fi
|
|
|
974d0ec |
done
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
%build
|
|
|
bc8dfe9 |
%py3_build
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
%install
|
|
|
bc8dfe9 |
%py3_install
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
|
|
|
f4aaaaf |
%if %{with tests}
|
|
|
bc8dfe9 |
%check
|
|
|
bc8dfe9 |
# Tests need UTF-8 encoding
|
|
|
bc8dfe9 |
export LC_CTYPE="C.UTF-8"
|
|
|
bc8dfe9 |
# Invoke tests and disable the test that checks if pipsi is already installed
|
|
|
bc8dfe9 |
%{__python3} -m pytest -k "not test_find_scripts" -vv
|
|
|
f4aaaaf |
%endif
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
%files
|
|
|
bc8dfe9 |
%doc README.rst
|
|
|
bc8dfe9 |
%license LICENSE
|
|
|
bc8dfe9 |
%{_bindir}/pipsi
|
|
|
bc8dfe9 |
%{python3_sitelib}/%{pypi_name}.py
|
|
|
bc8dfe9 |
%{python3_sitelib}/__pycache__/*
|
|
|
bc8dfe9 |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
bc8dfe9 |
|
|
|
bc8dfe9 |
%changelog
|
|
|
f6e3260 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-13
|
|
|
f6e3260 |
- Rebuilt for Python 3.8
|
|
|
f6e3260 |
|
|
|
4275d62 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-12
|
|
|
4275d62 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
4275d62 |
|
|
|
61cafab |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-11
|
|
|
61cafab |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
61cafab |
|
|
|
974d0ec |
* Fri Oct 12 2018 Nils Philippsen <nils@redhat.com> - 0.9-10
|
|
|
974d0ec |
- only point to namespaced Python 3 version of virtualenv if it's available
|
|
|
974d0ec |
(#1638088)
|
|
|
974d0ec |
|
|
|
fa84dca |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-9
|
|
|
fa84dca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
fa84dca |
|
|
|
cb67f18 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9-8
|
|
|
cb67f18 |
- Rebuilt for Python 3.7
|
|
|
cb67f18 |
|
|
|
0cd6c63 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-7
|
|
|
0cd6c63 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0cd6c63 |
|
|
|
156f594 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-6
|
|
|
156f594 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
156f594 |
|
|
|
6a8349d |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
|
|
|
6a8349d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
6a8349d |
|
|
|
0c21336 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9-4
|
|
|
0c21336 |
- Rebuild for Python 3.6
|
|
|
0c21336 |
|
|
|
370e51d |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
|
|
|
370e51d |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
370e51d |
|
|
|
f4aaaaf |
* Wed Apr 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.9-2
|
|
|
f4aaaaf |
- Disable test suite for koji builds.
|
|
|
f4aaaaf |
|
|
|
bc8dfe9 |
* Thu Apr 07 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.9-1
|
|
|
974d0ec |
- Initial package.
|