|
|
|
|
##
|
|
|
|
|
## python-util.spec -- OpenPKG RPM Package Specification
|
|
|
|
|
## Copyright (c) 2000-2018 OpenPKG Project <http://openpkg.org/>
|
|
|
|
|
##
|
|
|
|
|
## Permission to use, copy, modify, and distribute this software for
|
|
|
|
|
## any purpose with or without fee is hereby granted, provided that
|
|
|
|
|
## the above copyright notice and this permission notice appear in all
|
|
|
|
|
## copies.
|
|
|
|
|
##
|
|
|
|
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
|
|
|
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
|
|
|
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
|
|
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
|
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
## SUCH DAMAGE.
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
# package versions
|
|
|
|
|
%define V_python 2.7
|
|
|
|
|
%define V_zope_component 4.4.1
|
|
|
|
|
%define V_zope_interface 4.4.3
|
|
|
|
|
%define V_zope_event 4.3.0
|
|
|
|
|
%define V_futures 3.2.0
|
|
|
|
|
%define V_attrs 17.4.0
|
|
|
|
|
%define V_constantly 15.1.0
|
|
|
|
|
%define V_automat 0.6.0
|
|
|
|
|
%define V_monk 0.13.2
|
|
|
|
|
|
|
|
|
|
# package information
|
|
|
|
|
Name: python-util
|
|
|
|
|
Summary: Python Modules for Utility Functionalities
|
|
|
|
|
URL: http://www.python.org/
|
|
|
|
|
Vendor: Python Community
|
|
|
|
|
Packager: OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG Community
|
|
|
|
|
Class: BASE
|
|
|
|
|
Group: Language
|
|
|
|
|
License: GPL
|
|
|
|
|
Version: %{V_python}
|
|
|
|
|
Release: 20180123
|
|
|
|
|
|
|
|
|
|
# list of sources
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/z/zope.component/zope.component-%{V_zope_component}.tar.gz
|
|
|
|
|
Source1: https://files.pythonhosted.org/packages/source/z/zope.interface/zope.interface-%{V_zope_interface}.tar.gz
|
|
|
|
|
Source2: https://files.pythonhosted.org/packages/source/z/zope.event/zope.event-%{V_zope_event}.tar.gz
|
|
|
|
|
Source3: https://files.pythonhosted.org/packages/source/f/futures/futures-%{V_futures}.tar.gz
|
|
|
|
|
Source4: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{V_attrs}.tar.gz
|
|
|
|
|
Source5: https://files.pythonhosted.org/packages/source/c/constantly/constantly-%{V_constantly}.tar.gz
|
|
|
|
|
Source6: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{V_automat}.tar.gz
|
|
|
|
|
Source7: https://files.pythonhosted.org/packages/source/m/monk/monk-%{V_monk}.tar.gz
|
|
|
|
|
Patch0: python-util.patch
|
|
|
|
|
|
|
|
|
|
# build information
|
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is a set of Python extension modules for utility
|
|
|
|
|
functionalities.
|
|
|
|
|
|
|
|
|
|
%track
|
|
|
|
|
prog python-util:zope_component = {
|
|
|
|
|
version = %{V_zope_component}
|
|
|
|
|
url = https://pypi.python.org/pypi/zope.component
|
|
|
|
|
regex = zope.component-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
prog python-util:zope_interface = {
|
|
|
|
|
version = %{V_zope_interface}
|
|
|
|
|
url = https://pypi.python.org/pypi/zope.interface
|
|
|
|
|
regex = zope.interface-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
prog python-util:zope_event = {
|
|
|
|
|
version = %{V_zope_event}
|
|
|
|
|
url = https://pypi.python.org/pypi/zope.event
|
|
|
|
|
regex = zope.event-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
prog python-util:futures = {
|
|
|
|
|
version = %{V_futures}
|
|
|
|
|
url = https://pypi.python.org/pypi/futures
|
|
|
|
|
regex = futures-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
prog python-util:attrs = {
|
|
|
|
|
version = %{V_attrs}
|
|
|
|
|
url = https://pypi.python.org/pypi/attrs
|
|
|
|
|
regex = attrs-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
prog python-util:constantly = {
|
|
|
|
|
version = %{V_constantly}
|
|
|
|
|
url = https://pypi.python.org/pypi/constantly
|
|
|
|
|
regex = constantly-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
prog python-util:automat = {
|
|
|
|
|
version = %{V_automat}
|
|
|
|
|
url = https://pypi.python.org/pypi/Automat
|
|
|
|
|
regex = Automat-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
prog python-util:monk = {
|
|
|
|
|
version = %{V_monk}
|
|
|
|
|
url = https://pypi.python.org/pypi/Automat
|
|
|
|
|
regex = monk-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c
|
|
|
|
|
%setup -q -T -D -a 1
|
|
|
|
|
%setup -q -T -D -a 2
|
|
|
|
|
%setup -q -T -D -a 3
|
|
|
|
|
%setup -q -T -D -a 4
|
|
|
|
|
%setup -q -T -D -a 5
|
|
|
|
|
%setup -q -T -D -a 6
|
|
|
|
|
%setup -q -T -D -a 7
|
|
|
|
|
%patch -p0
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
( cd zope.component-%{V_zope_component}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
( cd zope.interface-%{V_zope_interface}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
( cd zope.event-%{V_zope_event}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
( cd futures-%{V_futures}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
( cd attrs-%{V_attrs}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
( cd constantly-%{V_constantly}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
( cd Automat-%{V_automat}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
( cd monk-%{V_monk}
|
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
|
|
|
|
|
%{l_prefix}/bin/python \
|
|
|
|
|
setup.py install \
|
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
|
--prefix=%{l_prefix}
|
|
|
|
|
) || exit $?
|
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
|
|
|
|
%files -f files
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|