|
| 1 | +# |
| 2 | +# This file is auto-generated. DO NOT EDIT |
| 3 | +# Generated by: autospec.py |
| 4 | +# |
| 5 | +Name : pypi-pre_commit |
| 6 | +Version : 2.16.0 |
| 7 | +Release : 13 |
| 8 | +URL : https://files.pythonhosted.org/packages/8e/e2/a5c93bd312072003117408cf87e2cb7dcf4992d28ce3cab9bc5eeabecf43/pre_commit-2.16.0.tar.gz |
| 9 | +Source0 : https://files.pythonhosted.org/packages/8e/e2/a5c93bd312072003117408cf87e2cb7dcf4992d28ce3cab9bc5eeabecf43/pre_commit-2.16.0.tar.gz |
| 10 | +Summary : A framework for managing and maintaining multi-language pre-commit hooks. |
| 11 | +Group : Development/Tools |
| 12 | +License : MIT |
| 13 | +Requires: pypi-pre_commit-bin = %{version}-%{release} |
| 14 | +Requires: pypi-pre_commit-license = %{version}-%{release} |
| 15 | +Requires: pypi-pre_commit-python = %{version}-%{release} |
| 16 | +Requires: pypi-pre_commit-python3 = %{version}-%{release} |
| 17 | +BuildRequires : buildreq-distutils3 |
| 18 | +Provides: pre_commit |
| 19 | +Provides: pre_commit-python |
| 20 | +Provides: pre_commit-python3 |
| 21 | +BuildRequires : buildreq-golang |
| 22 | +BuildRequires : pypi(cfgv) |
| 23 | +BuildRequires : pypi(identify) |
| 24 | +BuildRequires : pypi(nodeenv) |
| 25 | +BuildRequires : pypi(pyyaml) |
| 26 | +BuildRequires : pypi(toml) |
| 27 | +BuildRequires : pypi(virtualenv) |
| 28 | + |
| 29 | +%description |
| 30 | +[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=21&branchName=master) |
| 31 | +[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=21&branchName=master) |
| 32 | +[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit/master) |
| 33 | + |
| 34 | +%package bin |
| 35 | +Summary: bin components for the pypi-pre_commit package. |
| 36 | +Group: Binaries |
| 37 | +Requires: pypi-pre_commit-license = %{version}-%{release} |
| 38 | + |
| 39 | +%description bin |
| 40 | +bin components for the pypi-pre_commit package. |
| 41 | + |
| 42 | + |
| 43 | +%package license |
| 44 | +Summary: license components for the pypi-pre_commit package. |
| 45 | +Group: Default |
| 46 | + |
| 47 | +%description license |
| 48 | +license components for the pypi-pre_commit package. |
| 49 | + |
| 50 | + |
| 51 | +%package python |
| 52 | +Summary: python components for the pypi-pre_commit package. |
| 53 | +Group: Default |
| 54 | +Requires: pypi-pre_commit-python3 = %{version}-%{release} |
| 55 | + |
| 56 | +%description python |
| 57 | +python components for the pypi-pre_commit package. |
| 58 | + |
| 59 | + |
| 60 | +%package python3 |
| 61 | +Summary: python3 components for the pypi-pre_commit package. |
| 62 | +Group: Default |
| 63 | +Requires: python3-core |
| 64 | +Provides: pypi(pre_commit) |
| 65 | +Requires: pypi(cfgv) |
| 66 | +Requires: pypi(identify) |
| 67 | +Requires: pypi(nodeenv) |
| 68 | +Requires: pypi(pyyaml) |
| 69 | +Requires: pypi(toml) |
| 70 | +Requires: pypi(virtualenv) |
| 71 | + |
| 72 | +%description python3 |
| 73 | +python3 components for the pypi-pre_commit package. |
| 74 | + |
| 75 | + |
| 76 | +%prep |
| 77 | +%setup -q -n pre_commit-2.16.0 |
| 78 | +cd %{_builddir}/pre_commit-2.16.0 |
| 79 | + |
| 80 | +%build |
| 81 | +export http_proxy=http://127.0.0.1:9/ |
| 82 | +export https_proxy=http://127.0.0.1:9/ |
| 83 | +export no_proxy=localhost,127.0.0.1,0.0.0.0 |
| 84 | +export LANG=C.UTF-8 |
| 85 | +export SOURCE_DATE_EPOCH=1641471210 |
| 86 | +export GCC_IGNORE_WERROR=1 |
| 87 | +export AR=gcc-ar |
| 88 | +export RANLIB=gcc-ranlib |
| 89 | +export NM=gcc-nm |
| 90 | +export CFLAGS="$CFLAGS -O3 -ffat-lto-objects -flto=auto " |
| 91 | +export FCFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=auto " |
| 92 | +export FFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=auto " |
| 93 | +export CXXFLAGS="$CXXFLAGS -O3 -ffat-lto-objects -flto=auto " |
| 94 | +export MAKEFLAGS=%{?_smp_mflags} |
| 95 | +python3 setup.py build |
| 96 | + |
| 97 | +%install |
| 98 | +export MAKEFLAGS=%{?_smp_mflags} |
| 99 | +rm -rf %{buildroot} |
| 100 | +mkdir -p %{buildroot}/usr/share/package-licenses/pypi-pre_commit |
| 101 | +cp %{_builddir}/pre_commit-2.16.0/LICENSE %{buildroot}/usr/share/package-licenses/pypi-pre_commit/0a1b7c6ad0735b8a94231652bab67240e4b834f6 |
| 102 | +python3 -tt setup.py build install --root=%{buildroot} |
| 103 | +echo ----[ mark ]---- |
| 104 | +cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || : |
| 105 | +echo ----[ mark ]---- |
| 106 | + |
| 107 | +%files |
| 108 | +%defattr(-,root,root,-) |
| 109 | + |
| 110 | +%files bin |
| 111 | +%defattr(-,root,root,-) |
| 112 | +/usr/bin/pre-commit |
| 113 | +/usr/bin/pre-commit-validate-config |
| 114 | +/usr/bin/pre-commit-validate-manifest |
| 115 | + |
| 116 | +%files license |
| 117 | +%defattr(0644,root,root,0755) |
| 118 | +/usr/share/package-licenses/pypi-pre_commit/0a1b7c6ad0735b8a94231652bab67240e4b834f6 |
| 119 | + |
| 120 | +%files python |
| 121 | +%defattr(-,root,root,-) |
| 122 | + |
| 123 | +%files python3 |
| 124 | +%defattr(-,root,root,-) |
| 125 | +/usr/lib/python3*/* |
0 commit comments