You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
205 lines
7.2 KiB
205 lines
7.2 KiB
## |
|
## python-util.spec -- OpenPKG RPM Package Specification |
|
## Copyright (c) 2000-2022 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 3.10 |
|
%define V_utils 0.9.0 |
|
%define V_zope_component 5.0.1 |
|
%define V_zope_interface 5.4.0 |
|
%define V_zope_event 4.5.0 |
|
%define V_zope_hookable 5.1.0 |
|
%define V_attrs 21.4.0 |
|
%define V_constantly 15.1.0 |
|
%define V_automat 20.2.0 |
|
%define V_monk 0.13.2 |
|
%define V_pluginbase 1.0.1 |
|
|
|
# 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: 20211231 |
|
|
|
# list of sources |
|
Source0: https://files.pythonhosted.org/packages/source/u/utils/utils-%{V_utils}.tar.gz |
|
Source1: https://files.pythonhosted.org/packages/source/z/zope.component/zope.component-%{V_zope_component}.tar.gz |
|
Source2: https://files.pythonhosted.org/packages/source/z/zope.interface/zope.interface-%{V_zope_interface}.tar.gz |
|
Source3: https://files.pythonhosted.org/packages/source/z/zope.event/zope.event-%{V_zope_event}.tar.gz |
|
Source4: https://files.pythonhosted.org/packages/source/z/zope.hookable/zope.hookable-%{V_zope_hookable}.tar.gz |
|
Source5: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{V_attrs}.tar.gz |
|
Source6: https://files.pythonhosted.org/packages/source/c/constantly/constantly-%{V_constantly}.tar.gz |
|
Source7: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{V_automat}.tar.gz |
|
Source8: https://files.pythonhosted.org/packages/source/m/monk/monk-%{V_monk}.tar.gz |
|
Source9: https://files.pythonhosted.org/packages/source/p/pluginbase/pluginbase-%{V_pluginbase}.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:utils = { |
|
version = %{V_utils} |
|
url = https://pypi.python.org/pypi/utils |
|
regex = utils-(__VER__)\.tar\.gz |
|
} |
|
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:zope_hookable = { |
|
version = %{V_zope_hookable} |
|
url = https://pypi.python.org/pypi/zope.hookable |
|
regex = zope.hookable-(__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 |
|
} |
|
prog python-util:pluginbase = { |
|
version = %{V_pluginbase} |
|
url = https://pypi.python.org/pypi/pluginbase |
|
regex = pluginbase-(__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 |
|
%setup -q -T -D -a 8 |
|
%setup -q -T -D -a 9 |
|
%patch -p0 |
|
|
|
%build |
|
|
|
%install |
|
export PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python%{V_python}/site-packages |
|
( cd utils-%{V_utils} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd zope.component-%{V_zope_component} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd zope.interface-%{V_zope_interface} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd zope.event-%{V_zope_event} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd zope.hookable-%{V_zope_hookable} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd attrs-%{V_attrs} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd constantly-%{V_constantly} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd Automat-%{V_automat} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd monk-%{V_monk} |
|
%{l_prefix}/bin/python \ |
|
setup.py install \ |
|
--root=$RPM_BUILD_ROOT \ |
|
--prefix=%{l_prefix} |
|
) || exit $? |
|
( cd pluginbase-%{V_pluginbase} |
|
%{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 |
|
|
|
|