From 132fec6547c945f7c65b551b1457366e6effa2b41e4be9f064b9faf6ec1dc2be Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 12 Nov 2024 06:19:13 +0000 Subject: [PATCH 1/3] - Update to version 20241111.a34b5d8: * Follow symlinks when replacing shebang with sed * Only sed the shebang in executable files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=205 --- .gitattributes | 23 + .gitignore | 1 + _service | 19 + _servicedata | 6 + python-rpm-macros-20240618.c146b29.tar.xz | 3 + python-rpm-macros-20241111.a34b5d8.tar.xz | 3 + python-rpm-macros.changes | 787 ++++++++++++++++++++++ python-rpm-macros.spec | 75 +++ 8 files changed, 917 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 python-rpm-macros-20240618.c146b29.tar.xz create mode 100644 python-rpm-macros-20241111.a34b5d8.tar.xz create mode 100644 python-rpm-macros.changes create mode 100644 python-rpm-macros.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..094fd6c --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + https://github.com/openSUSE/python-rpm-macros.git + git + .git + master + %cd.%h + enable + python-rpm-macros + mcepl@cepl.eu + + + python-rpm-macros-*.tar + xz + + + python-rpm-macros + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..1a63b15 --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + git://github.com/openSUSE/python-rpm-macros.git + 80d37568d9732beb7fcc2cf27c5c08f9c01fade1 + https://github.com/openSUSE/python-rpm-macros.git + a34b5d8fb71e6f7a08d87837d4b4c71fa5ffb280 \ No newline at end of file diff --git a/python-rpm-macros-20240618.c146b29.tar.xz b/python-rpm-macros-20240618.c146b29.tar.xz new file mode 100644 index 0000000..1a43569 --- /dev/null +++ b/python-rpm-macros-20240618.c146b29.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0af12eb84f7ff202b02fcaf46012bdc4e9e55727924418f490052cad88547379 +size 20084 diff --git a/python-rpm-macros-20241111.a34b5d8.tar.xz b/python-rpm-macros-20241111.a34b5d8.tar.xz new file mode 100644 index 0000000..6935e6b --- /dev/null +++ b/python-rpm-macros-20241111.a34b5d8.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebe7add03792ae05e255dbd9874e2dcab3f49257b5456449db3e5a786d543d1f +size 20104 diff --git a/python-rpm-macros.changes b/python-rpm-macros.changes new file mode 100644 index 0000000..adce38f --- /dev/null +++ b/python-rpm-macros.changes @@ -0,0 +1,787 @@ +------------------------------------------------------------------- +Tue Nov 12 06:16:35 UTC 2024 - mcepl@cepl.eu + +- Update to version 20241111.a34b5d8: + * Follow symlinks when replacing shebang with sed + * Only sed the shebang in executable files + +------------------------------------------------------------------- +Fri Jun 28 08:16:12 UTC 2024 - mcepl@cepl.eu + +- Update to version 20240618.c146b29: + * Add %FLAVOR_pytest and %FLAVOR_pyunittest variants + +------------------------------------------------------------------- +Tue Jun 18 10:24:42 UTC 2024 - mcepl@cepl.eu + +- Update to version 20240618.1e386da: + * Fix python_clone sed regex + +------------------------------------------------------------------- +Mon Jun 17 06:42:43 UTC 2024 - mcepl@cepl.eu + +- Update to version 20240614.02920b8: + * Make sure that RPM_BUILD_ROOT env is set + * don't eliminate any cmdline arguments in the shebang line + * Create python313 macros + +------------------------------------------------------------------- +Mon May 27 12:43:48 UTC 2024 - mcepl@cepl.eu + +- Update to version 20240415.c664b45: + * Fix typo 310 -> 312 in default-prjconf + +------------------------------------------------------------------- +Fri Feb 2 14:54:38 UTC 2024 - Ben Greiner + +- Update to version 20240202.501440e: + * SPEC0: Drop python39, add python312 to buildset (#169) + +------------------------------------------------------------------- +Wed Dec 20 16:33:59 UTC 2023 - Daniel Garcia + +- Update to version 20231220.98427f3: + * fix python2_compile macro + +------------------------------------------------------------------- +Tue Dec 19 10:13:29 UTC 2023 - Daniel Garcia + +- Update to version 20231207.46c2ec3: + * make FLAVOR_compile compatible with python2 + +------------------------------------------------------------------- +Mon Dec 04 08:34:09 UTC 2023 - mcepl@cepl.eu + +- Update to version 20231204.dd64e74: + * Combine fix_shebang in one line + * New macro FLAVOR_fix_shebang_path + * Use realpath in %python_clone macro shebang replacement + * Compile and fix_shebang in %python_install macros + +------------------------------------------------------------------- +Tue Oct 10 19:27:11 UTC 2023 - Ben Greiner + +- Update to version 20231010.0a1f0d9: + * Revert "Compile and fix_shebang in %python_install macros" + * gh#openSUSE/python-rpm-macros#163 + +------------------------------------------------------------------- +Tue Oct 10 10:38:31 UTC 2023 - mcepl@cepl.eu + +- Update to version 20231010.a32e110: + * Compile and fix_shebang in %python_install macros + +------------------------------------------------------------------- +Thu Oct 05 15:53:33 UTC 2023 - mcepl@cepl.eu + +- Update to version 20231005.bf2d3ab: + * Fix shebang also in sbin with macro _fix_shebang + +------------------------------------------------------------------- +Fri Jun 9 07:32:37 UTC 2023 - Ben Greiner + +- Update to version 20230609.6fe8111: + * move compile loop to python + * remove python38 + +------------------------------------------------------------------- +Tue Apr 04 09:02:04 UTC 2023 - mcepl@cepl.eu + +- Update to version 20230403.29b58f8: + * Add python311 to buildset + +------------------------------------------------------------------- +Sat Mar 04 20:22:41 UTC 2023 - mcepl@cepl.eu + +- Update to version 20230304.050c1a4 (bsc#1209881, bsc#1209353): + * Add %#FLAVOR#_fix_shebang macro, call in %#FLAVOR#_pyproject_install + +------------------------------------------------------------------- +Sat Jan 28 17:03:39 UTC 2023 - Ben Greiner + +- Update to version 20230128.e704796: + * Strip buildroot from pyc files (#151) + +------------------------------------------------------------------- +Thu Nov 17 12:17:12 UTC 2022 - Ben Greiner + +- Update to version 20221117.8687578: + * Create python312 macros + +------------------------------------------------------------------- +Tue Sep 13 06:11:03 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220912.f91cae2: + * fix double expanded compileall in %{$python_pyproject_install} + * forgotten '%' + +------------------------------------------------------------------- +Mon Sep 12 03:10:25 UTC 2022 - code@bnavigator.de + +- Update to version 20220911.111e4c9: + * fix gh#openSUSE/python-rpm-macros#141: allow parameters in sections + * more compact alternative scriptlets without newline + * Update flavor sets in README + * Document flavored PEP517 macros + * flavorize pyproject macros + * Avoid to install incorrect PEP610 metadata + +------------------------------------------------------------------- +Mon Aug 15 06:05:08 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220809.cf8a7b8 (bsc#1201041): + * Pass `--ignore-installed` to `pip install` in %pyproject_install + +------------------------------------------------------------------- +Mon Jul 25 21:27:08 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220725.2ae32d5: + * restore end-of-line in alternative scriptlets + +------------------------------------------------------------------- +Thu Jul 21 10:31:50 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220721.0a061eb: + * make python_flavored_alternatives less verbose + * Move install of libalts from sciptlets to python_clone -a -- close gh#openSUSE/python-rpm-macros#133 + * hard-code %py_ver -- fix gh#openSUSE/python-rpm-macros#131 + * fix gh#openSUSE/python-rpm-macros#130 print proper error on missing python interpreter + +------------------------------------------------------------------- +Sat Jun 18 19:59:31 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220618.1ed0055: + * Update compile-macros.sh + +------------------------------------------------------------------- +Fri Jun 10 15:52:23 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220610.6dc4cb8: + * create python_flavored_alternatives and use for testing + +------------------------------------------------------------------- +Thu May 05 14:44:30 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220505.4ab53ec: + * Switch primary_interpreter from python38 to python310 + * Avoid bashism in %() + * fix flavor executable substitution + * Keep python38 as primary python3 + * Add python310 to the buildset + * Move python39 to the primary place in %pythons + * Disable python36 flavor in Factory buildset + * Add python310 flavor macros to compile set + * no newline after python_install_alternative + +------------------------------------------------------------------- +Thu Jan 06 08:16:03 UTC 2022 - mcepl@cepl.eu + +- Update to version 20220106.80d3756: + * Keep python38 as primary python3 + * Add python310 to the buildset + * Move python39 to the primary place in %pythons + * Disable python36 flavor in Factory buildset + +------------------------------------------------------------------- +Thu Dec 09 00:06:51 UTC 2021 - mcepl@cepl.eu + +- Update to version 20211209.3834c04: + * fix flavor executable substitution + +------------------------------------------------------------------- +Wed Dec 08 14:19:11 UTC 2021 - mcepl@cepl.eu + +- Update to version 20211208.d090fb9: + * Add python310 flavor macros to compile set + +------------------------------------------------------------------- +Fri Oct 22 12:47:07 UTC 2021 - mcepl@cepl.eu + +- Update to version 20211022.38e7c70: + * no newline after python_install_alternative + +------------------------------------------------------------------- +Mon Oct 18 14:21:08 UTC 2021 - Ben Greiner + +- Update to version 20211018.c7614ad: + * remove ghost gh#openSUSE/python-rpm-macros#118 + * revert reset name change + * fix README + * move u-a/la switch for scriptlets to build phase + +------------------------------------------------------------------- +Fri Oct 01 15:47:31 UTC 2021 - mcepl@cepl.eu + +- Update to version 20211001.fc6c04e: + * Supporting libalternatives. + +------------------------------------------------------------------- +Tue Jun 29 20:51:43 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210628.eccf3f2: + * fix boolean split gh#openSUSE/python-rpm-macros#111 + +------------------------------------------------------------------- +Mon Jun 07 12:15:13 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210607.c22f1cc: + * increase default python3 update-alternative prio by 1000 + * Update default-prjconf + * Support flavor rewriting of boolean runtime dependencies + +------------------------------------------------------------------- +Thu Feb 04 22:27:24 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210204.937b8d8: + * fixup: last PR was missing a commit for pyproject_wheel syntax errors + +------------------------------------------------------------------- +Thu Feb 04 14:39:22 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210204.90721de: + * mv -n does not work in SLE12 + * Update PEP517/518 macro documentation in README + * Let pyproject_install search for more locations for wheels or specify explicitely + * Read .rpmmacros (= prjconf Macro: definitions) for default buildset + +------------------------------------------------------------------- +Wed Feb 03 16:40:14 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210203.0d8a91e: + * don't define skip_python2 by default + +------------------------------------------------------------------- +Sun Jan 31 20:38:20 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210131.ec7577b: + * remove old commented path finding section + * expand python_subpackage_only not earlier than in python_subpackages call + * make the path and var macros return a non-interrupted string even when the flavor is not installed + +------------------------------------------------------------------- +Sun Jan 31 13:31:40 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210131.1450767: + * only add parentheses when boolean operators are used + * sync buildset definitions with Factory + * fix typo + +------------------------------------------------------------------- +Wed Jan 27 22:48:28 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210127.3a18043: + * dont't rename wheel when it already has the same name + +------------------------------------------------------------------- +Tue Jan 26 21:11:34 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210126.fea1c1f: + * Document python_module with boolean dependecies + * workaround undetected abi and platform tags gh#openSUSE/python-rpm-macros#93 + +------------------------------------------------------------------- +Thu Jan 21 11:10:22 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210121.ef5b8b9: + * Add %python pseudo-macro for %python_modules -- server and rpm version + +------------------------------------------------------------------- +Sun Jan 17 07:07:30 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210117.63cf413: + * improve flavor variable naming in python_expand + +------------------------------------------------------------------- +Sat Jan 16 12:29:33 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210116.2682657: + * remove python2 not found error + +------------------------------------------------------------------- +Tue Jan 12 07:18:43 UTC 2021 - mcepl@cepl.eu + +- Update to version 20210112.86f4d9d: + * fix gh#openSUSE/python-rpm-macros#84: python_sysconfig_ macros + +------------------------------------------------------------------- +Mon Dec 07 17:09:23 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201207.2177fcf: + * README update after merge + +------------------------------------------------------------------- +Mon Dec 07 16:31:52 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201207.259cdda: + * Update python_expand description in README + * python_expand to basename only + +------------------------------------------------------------------- +Fri Dec 04 09:47:39 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201204.32a910e: + * fix print_provided_flavor again + +------------------------------------------------------------------- +Thu Dec 03 07:08:14 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201203.5331183: + * fix print_provided_flavor + +------------------------------------------------------------------- +Sat Nov 28 22:11:52 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201128.669edb3: + * fix provides (for python-numpy f2py, in gh#openSUSE/python-rpm-macros#66) + +------------------------------------------------------------------- +Mon Nov 23 14:41:05 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201123.6978323: + * also rewrite subpackage_only default providers + * pytest: ignore _build dirs for all flavors + +------------------------------------------------------------------- +Thu Nov 19 07:53:17 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201119.6bb5f69: + * add default provider properties + * don't replace %name, for subpackage_only + * expand parameters for subpackage_only packages + +------------------------------------------------------------------- +Thu Nov 12 18:19:15 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201112.a4c80dc: + * handle python_subpackage_only, fixes gh#openSUSE/python-rpm-macros#73 + * define default providers for pythonX from pythonXY flavors: fixes #69 + +------------------------------------------------------------------- +Tue Nov 03 20:59:11 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201103.cec67c2: + * document python_find_lang + * add python_find_lang and allow to specify in %python_files. Fixes #5 + +------------------------------------------------------------------- +Mon Nov 02 18:34:58 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201102.31ccfc2: + * fix python_clone shebang replacement + * one less expansion for python_exec + * expand default %python_ macros earlier + * update README for multiple flavors + * more command delimiters for %python_expand + +------------------------------------------------------------------- +Thu Oct 22 18:47:52 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201022.7f87908: + * Add python36 and python38 flavours. + +------------------------------------------------------------------- +Wed Oct 21 11:22:16 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201021.adb6953: + * Prepare for multiple python3 flavors +- Remove multiple_flavors.patch as it is included in the upstream + tarball. + +------------------------------------------------------------------- +Fri Oct 16 20:05:52 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201016.5d22545: + * fix whitespace after escape in compileall macro + +------------------------------------------------------------------- +Fri Oct 16 14:31:59 UTC 2020 - mcepl@cepl.eu + +- Update to version 20201016.db09189: + * Delete pycache files before compilealll + * Update macros/010-common-defs + * Reword compileall + * mention pyproject.toml and link to PEP517 and PEP518 + * add description for pyunittest macro + * add description for python_compileall macro + * add description for pyproject macros + * add python_compileall macro and use it in pyproject_install + * disable pip version check: no connection to pypi.org + +------------------------------------------------------------------- +Tue Sep 22 19:29:03 UTC 2020 - Matej Cepl + +- Update multiple_flavors.patch to generate correct names of the + python binary. + +------------------------------------------------------------------- +Wed Sep 9 18:00:03 UTC 2020 - Matej Cepl + +- %__#FLAVOR# should be defined as + /usr/bin/python%{#FLAVOR#_version} not just /usr/bin/#FLAVOR# + +------------------------------------------------------------------- +Wed Sep 2 11:44:33 UTC 2020 - Matej Cepl + +- Add patch multiple_flavors.patch which makes compile_macros.sh + generate alternative flavours as well. + +------------------------------------------------------------------- +Mon Aug 24 08:09:01 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200824.8fa42a7: + * Drop -v from the pyunittest macros + +------------------------------------------------------------------- +Thu Aug 06 05:30:11 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200806.f44d3ac: + * fix unittest macros + +------------------------------------------------------------------- +Tue Jul 14 08:15:22 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200714.252de1f: + * Add pyunittest and pyunittest_arch macros + +------------------------------------------------------------------- +Thu Jul 2 10:24:38 UTC 2020 - Benjamin Greiner + +- Update to version 20200701.9f5a2f6: + * add blank line between pytest and pytest_arch to fix expansion + failure in Leap gh#openSUSE/python-rpm-macros#53 + +------------------------------------------------------------------- +Wed Jun 24 22:05:31 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200625.e862151: + * fix pytest_arch PYTHONPATH + * expand calls pyproject* macros (revert #45) + * let the shell expand PYTHONPATH + +------------------------------------------------------------------- +Tue Jun 23 12:14:22 UTC 2020 - tchvatal@suse.com + +- Update to version 20200623.3ea9b62: + * fix PYTHONPATH on pytest_arch macro + +------------------------------------------------------------------- +Mon Jun 22 19:00:48 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200622.1919233: + * Expand %buildroot first (avoid endless cycle; bsc#1162743) + +------------------------------------------------------------------- +Mon Jun 22 12:41:25 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200622.1f4c5d2: + * Add missing semicolon + +------------------------------------------------------------------- +Wed Jun 3 12:01:30 UTC 2020 - Matej Cepl + +- For Factory change %system_python to python3. + +------------------------------------------------------------------- +Wed Jun 03 08:16:36 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200603.503823c: + * Don't add empty path to PYTHONPATH setting. + * Do not expand macros, just print them unexpanded (for %pytest* and %pyproject* macros) + * Replace py.test -> pytest + +------------------------------------------------------------------- +Fri May 29 15:28:22 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200529.b301e36: + * update-alternatives are quiet during install + +------------------------------------------------------------------- +Tue Apr 21 11:43:04 UTC 2020 - mcepl@cepl.eu + +- Update to version 20200207.5feb6c1 bsc#1171561: + * Do not write .pyc files for tests + +------------------------------------------------------------------- +Mon Jan 20 18:35:19 UTC 2020 - Neal Gompa + +- Add python-rpm-generators to express setuptools dependency for generator + +------------------------------------------------------------------- +Fri Jan 17 13:09:29 UTC 2020 - Neal Gompa + +- Update to version 20200117.8e39013 bsc#1161770: + * Add macros related to the Python dist metadata dependency generator + +------------------------------------------------------------------- +Mon Nov 04 10:10:58 UTC 2019 - mcepl@cepl.eu + +- Update to version 20191104.08e6493: + * %pyproject_install macro should include --no-compile. + * Recognise the _ for the macro arguments too + +------------------------------------------------------------------- +Mon Jun 10 11:34:32 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190610.2ee3233: + * Fix typo, missing opening brace. + * Add the first draft of pyproject_wheel and pyproject_install macros. + * Yet another attempt to preserve $PYTHONPATH set in the environment. + * Document also %pytest_arch + * Document %pytest in README.md + * Multiline macros don't work correctly on older RPMs. + * Add missing $ expansion on the pytest call + * Rewrite pytest and pytest_arch into Lua macros with multiple arguments. + * We should preserve existing PYTHONPATH. + * Add --ignore to pytest calls to ignore build directories. + +------------------------------------------------------------------- +Mon Jun 10 11:27:22 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190610.2ee3233: + * Fix typo, missing opening brace. + +------------------------------------------------------------------- +Mon May 20 12:38:10 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190511.2ed22b6: + * Add the first draft of pyproject_wheel and pyproject_install macros. + +------------------------------------------------------------------- +Thu May 02 06:10:17 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190430.5260267: + * Yet another attempt to preserve $PYTHONPATH set in the environment. + * Document also %pytest_arch + * Document %pytest in README.md + +------------------------------------------------------------------- +Mon Apr 08 12:43:06 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190408.32abece bsc#1128323: + * Multiline macros don't work correctly on older RPMs. + +------------------------------------------------------------------- +Tue Apr 02 11:25:58 UTC 2019 - tchvatal@suse.com + +- Update to version 20190402.c88be49: + * Add missing $ expansion on the pytest call + +------------------------------------------------------------------- +Fri Mar 15 14:18:06 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190315.d3034bf bsc#1128323: + * Rewrite pytest and pytest_arch into Lua macros with multiple arguments. + +------------------------------------------------------------------- +Thu Mar 07 13:40:24 UTC 2019 - mcepl@cepl.eu + +- Update to version 20190307.81ca329: + * We should preserve existing PYTHONPATH. + +------------------------------------------------------------------- +Thu Mar 07 11:18:35 UTC 2019 - mcepl@cepl.eu + +- bsc#1128323: Update to version 20190307.fbaed33 + * Add --ignore to pytest calls to ignore build directories. + +------------------------------------------------------------------- +Thu Feb 21 17:54:59 UTC 2019 - opensuse-packaging@opensuse.org + +- Update to version 20190221.08f1194: + * Actually make pytest into function to capture arguments as well + * Add pytest definitions. + +------------------------------------------------------------------- +Wed Dec 19 19:29:44 UTC 2018 - Todd R + +- Use upstream-recommended %{_rpmconfigdir}/macros.d directory + for the rpm macros. +- Include license and readme. + +------------------------------------------------------------------- +Tue Dec 11 11:27:17 UTC 2018 - opensuse-packaging@opensuse.org + +- Update to version 20181211.ab6f37c: + * Fix an issue with epoch printing having too many \ + * Remove packaging/ dir + +------------------------------------------------------------------- +Mon Dec 10 20:09:43 UTC 2018 - opensuse-packaging@opensuse.org + +- Update to version 1540475376.149a499: + * add epoch while printing "Provides:" +- Update URL +- Add _service and use the tar_scm/recompress/set_version source + services to update the package. + Package updates can now be done with "osc service run" +- Drop README.packaging +- Drop update.sh . This is now handled via the source services + +------------------------------------------------------------------- +Wed Oct 24 07:20:44 UTC 2018 - sjamgade@suse.com + +- version bump to 2018.08.15.ada6d63 + +------------------------------------------------------------------- +Fri Dec 22 15:57:10 UTC 2017 - jmatejek@suse.com + +- version bump to 2017.12.22.d9968ab + * better fix for macro usage in rpm 4.14 + +------------------------------------------------------------------- +Thu Dec 7 19:58:36 UTC 2017 - tchvatal@suse.com + +- version bump to 2017.12.07.9d4e9eb + * Fix macro usage for rpm 4.14 + +------------------------------------------------------------------- +Wed Aug 9 13:37:32 UTC 2017 - jmatejek@suse.com + +- version bump to 2017.08.09.32550d0 +- use %_specfile macro to locate the spec file, this should help with + factory-auto bot problems as well as issue#3 + +------------------------------------------------------------------- +Thu Jun 29 13:20:02 UTC 2017 - jmatejek@suse.com + +- version bump to 2017.06.29.107ac7a +- fix skip_python2 in environment where python2 is not actually present + +------------------------------------------------------------------- +Wed Jun 21 13:16:38 UTC 2017 - jmatejek@suse.com + +- version bump to 2017.06.21.6641889 +- introduce smarter buildset support +- fix %python_files on nonstandard build sets +- introduce %python_for_executables in favor of magically taking + "last python in %pythons" +- fix %licence tag handling (gh#opensuse/python-rpm-macros#4) + +------------------------------------------------------------------- +Tue May 9 15:38:41 UTC 2017 - jmatejek@suse.com + +- version bump to 2017.05.09.fc237de +- fix badly generated %posttrans snippets in cases where + old %python_install_alternative syntax is used for secondary files +- rework %if-macros +- introduce %python_flavor, which configures behavior of generic %python_* + macros, and can be overriden by the user +- add --force to %python_install, to make install order fully deterministic + +------------------------------------------------------------------- +Thu Apr 27 15:43:20 UTC 2017 - jmatejek@suse.com + +- version bump to 2017.04.27.d2ca08c +- switch versioning scheme to date-based +- switch from using service to a custom script update.sh +- auto-generate Provides: python2-modname in old distributions + (only for main package though) + +------------------------------------------------------------------- +Wed Mar 29 12:53:05 UTC 2017 - jmatejek@suse.com + +- generate %posttrans sections to fix up alternatives after package + rename +- fix condition where %python_files would emit wrong thing when + %have_python2 is undefined +- add --quiet to uninstall_alternative, to silence spurious errors +- check for file existence instead of package number in uninstall_alternative + +------------------------------------------------------------------- +Thu Mar 23 17:08:46 UTC 2017 - jmatejek@suse.com + +- remove spurious warnings about "unknown arguments" (by making ALL + possible arguments known) +- fix a bug with %python_clone not working without + %python_install_alternative being used +- in %python_files, detect and emit an error if %python_subpackages + is not used + +------------------------------------------------------------------- +Mon Mar 13 16:05:15 UTC 2017 - jmatejek@suse.com + +- more intelligent %python_install_alternatives +- multiline macro support +- support for %requires_ge and %requires_eq as well as Requires(pre) + and friends +- "%python_clone -a" auto-creates alternative entries + +------------------------------------------------------------------- +Thu Mar 9 17:20:12 UTC 2017 - jmatejek@suse.com + +- implement %python_clone to clone files for alternatives + +------------------------------------------------------------------- +Wed Mar 8 15:22:55 UTC 2017 - jmatejek@suse.com + +- support "Supplements" and "Enhances" tags +- support packageand() expression +- fix handling of %name in requires + +------------------------------------------------------------------- +Wed Mar 8 13:18:14 UTC 2017 - jmatejek@suse.com + +- make macros more resilient to missing %python_subpackages +- expand %python_bin_suffix properly + +------------------------------------------------------------------- +Fri Feb 24 13:50:03 UTC 2017 - jmatejek@suse.com + +- let %python_module expand *all* its arguments, not just the first + (so that %{python_module x >= 1.0} works as intended) + +------------------------------------------------------------------- +Wed Feb 22 14:38:28 UTC 2017 - jmatejek@suse.com + +- copy BuildArch to subpackages +- on requires/provides etc., perform macro expansion *after* replacing + 'python' name, to allow for tricking the rewriter to not replace + +------------------------------------------------------------------- +Tue Feb 21 14:55:08 UTC 2017 - jmatejek@suse.com + +- add BuildRoot to make SLE11 happy +- check presence of %python_files even on new-style distros +- better visibility of the %python_files error + +------------------------------------------------------------------- +Mon Feb 13 14:46:25 UTC 2017 - jmatejek@suse.com + +- update service, use repository and tarball name "python-rpm-macros" + +------------------------------------------------------------------- +Tue Feb 7 16:31:04 UTC 2017 - jmatejek@suse.com + +- introduce %python_prefix + +------------------------------------------------------------------- +Mon Feb 6 14:30:38 UTC 2017 - jengelh@inai.de + +- Set RPM group + +------------------------------------------------------------------- +Wed Jan 11 14:28:48 UTC 2017 - jmatejek@suse.com + +- change service version generator to use "1.0.git" instead of "1.0git" + +------------------------------------------------------------------- +Fri Jan 6 17:36:58 UTC 2017 - jmatejek@suse.com + +- rework %python_alternative and remove support for %python_alternative_man +- tell service to compress the tar file + +------------------------------------------------------------------- +Fri Jan 6 14:54:21 UTC 2017 - jmatejek@suse.com + +- set service to localonly mode + +------------------------------------------------------------------- +Tue Jan 3 15:06:29 UTC 2017 - jmatejek@suse.com + +- current macro version + +------------------------------------------------------------------- +Thu Nov 24 14:57:13 UTC 2016 - jmatejek@suse.com + +- initial commit + diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec new file mode 100644 index 0000000..a9252ce --- /dev/null +++ b/python-rpm-macros.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-rpm-macros +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-rpm-macros +Version: 20241111.a34b5d8 +Release: 0 +Summary: RPM macros for building of Python modules +License: WTFPL +URL: https://github.com/opensuse/python-rpm-macros +Source: python-rpm-macros-%{version}.tar.xz +# To keep user expectations reasonably sane +Recommends: python-rpm-generators +# Fedora compatibility +Provides: python2-rpm-macros +Provides: python3-rpm-macros +BuildArch: noarch + +%description +This package contains SUSE RPM macros for Python build automation. +You should BuildRequire this package unless you are sure that you +are only building for distros newer than Leap 42.2 + +%package -n python-rpm-generators +Summary: Dependency generator dependencies for Python RPMs +Requires: %{name} = %{version}-%{release} +# For the dep generator macros +Requires: python3-setuptools +# Fedora compatibility +Provides: python3-rpm-generators + +%description -n python-rpm-generators +This package contains the dependencies for Python RPMs to generate +dependencies automatically. + +%prep +%autosetup + +%if 0%{?suse_version} < 1330 +mv macros-default-pythons macros/035-default-pythons +%endif +%if 0%{?suse_version} >= 1550 +sed -i -e '/^%system_python/s/python2/python3/' macros/010-common-defs +%endif + +%build +./compile-macros.sh + +%install +mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/ +install -m 644 macros.python_all %{buildroot}%{_rpmconfigdir}/macros.d/ + +%files +%license LICENSE +%doc README.md +%{_rpmconfigdir}/macros.d/macros.python_all + +%files -n python-rpm-generators +# Nothing here for now... + +%changelog From 8a77a3d75cc050f2e15c79eaa3c5081c27942281ce54e65e28cebf215103dbf8 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 19 Nov 2024 11:11:41 +0000 Subject: [PATCH 2/3] - Update to version 20241119.7609911: * Do not fix shebang on links to non-writeable files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=206 --- _servicedata | 2 +- python-rpm-macros-20241111.a34b5d8.tar.xz | 3 --- python-rpm-macros-20241119.7609911.tar.xz | 3 +++ python-rpm-macros.changes | 6 ++++++ python-rpm-macros.spec | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 python-rpm-macros-20241111.a34b5d8.tar.xz create mode 100644 python-rpm-macros-20241119.7609911.tar.xz diff --git a/_servicedata b/_servicedata index 1a63b15..e05f607 100644 --- a/_servicedata +++ b/_servicedata @@ -3,4 +3,4 @@ git://github.com/openSUSE/python-rpm-macros.git 80d37568d9732beb7fcc2cf27c5c08f9c01fade1 https://github.com/openSUSE/python-rpm-macros.git - a34b5d8fb71e6f7a08d87837d4b4c71fa5ffb280 \ No newline at end of file + 76099113e05f9a090dacb6eced2264c6cc45c632 \ No newline at end of file diff --git a/python-rpm-macros-20241111.a34b5d8.tar.xz b/python-rpm-macros-20241111.a34b5d8.tar.xz deleted file mode 100644 index 6935e6b..0000000 --- a/python-rpm-macros-20241111.a34b5d8.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebe7add03792ae05e255dbd9874e2dcab3f49257b5456449db3e5a786d543d1f -size 20104 diff --git a/python-rpm-macros-20241119.7609911.tar.xz b/python-rpm-macros-20241119.7609911.tar.xz new file mode 100644 index 0000000..bb19f8c --- /dev/null +++ b/python-rpm-macros-20241119.7609911.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a133cdc70a6e4dab68ee5f59cb3d43580c6156db507b3b05a6ccb5167ba9dea7 +size 20108 diff --git a/python-rpm-macros.changes b/python-rpm-macros.changes index adce38f..2fbbdce 100644 --- a/python-rpm-macros.changes +++ b/python-rpm-macros.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 19 11:10:01 UTC 2024 - mcepl@cepl.eu + +- Update to version 20241119.7609911: + * Do not fix shebang on links to non-writeable files + ------------------------------------------------------------------- Tue Nov 12 06:16:35 UTC 2024 - mcepl@cepl.eu diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec index a9252ce..7a9c6f0 100644 --- a/python-rpm-macros.spec +++ b/python-rpm-macros.spec @@ -17,7 +17,7 @@ Name: python-rpm-macros -Version: 20241111.a34b5d8 +Version: 20241119.7609911 Release: 0 Summary: RPM macros for building of Python modules License: WTFPL From 1ab088708d9359a2a01ea76baf0f76b77a6011ef83ec47fedfbf6398a2f0eb8c Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 20 Nov 2024 12:21:18 +0000 Subject: [PATCH 3/3] - Update to version 20241120.6ae645f: * Do sed in place OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=207 --- _servicedata | 2 +- python-rpm-macros-20241119.7609911.tar.xz | 3 --- python-rpm-macros-20241120.6ae645f.tar.xz | 3 +++ python-rpm-macros.changes | 6 ++++++ python-rpm-macros.spec | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 python-rpm-macros-20241119.7609911.tar.xz create mode 100644 python-rpm-macros-20241120.6ae645f.tar.xz diff --git a/_servicedata b/_servicedata index e05f607..a9ab3a8 100644 --- a/_servicedata +++ b/_servicedata @@ -3,4 +3,4 @@ git://github.com/openSUSE/python-rpm-macros.git 80d37568d9732beb7fcc2cf27c5c08f9c01fade1 https://github.com/openSUSE/python-rpm-macros.git - 76099113e05f9a090dacb6eced2264c6cc45c632 \ No newline at end of file + 6ae645f7d1e17a9c25f0f167e0ffdfeeeb1c5c09 \ No newline at end of file diff --git a/python-rpm-macros-20241119.7609911.tar.xz b/python-rpm-macros-20241119.7609911.tar.xz deleted file mode 100644 index bb19f8c..0000000 --- a/python-rpm-macros-20241119.7609911.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a133cdc70a6e4dab68ee5f59cb3d43580c6156db507b3b05a6ccb5167ba9dea7 -size 20108 diff --git a/python-rpm-macros-20241120.6ae645f.tar.xz b/python-rpm-macros-20241120.6ae645f.tar.xz new file mode 100644 index 0000000..d446769 --- /dev/null +++ b/python-rpm-macros-20241120.6ae645f.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbecb73a47dd37d93ea9fcb9ec2bfddb912b362a6daf37dfea50b9d910744e40 +size 20184 diff --git a/python-rpm-macros.changes b/python-rpm-macros.changes index 2fbbdce..f611fa8 100644 --- a/python-rpm-macros.changes +++ b/python-rpm-macros.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 20 12:20:26 UTC 2024 - mcepl@cepl.eu + +- Update to version 20241120.6ae645f: + * Do sed in place + ------------------------------------------------------------------- Tue Nov 19 11:10:01 UTC 2024 - mcepl@cepl.eu diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec index 7a9c6f0..fa254ce 100644 --- a/python-rpm-macros.spec +++ b/python-rpm-macros.spec @@ -17,7 +17,7 @@ Name: python-rpm-macros -Version: 20241119.7609911 +Version: 20241120.6ae645f Release: 0 Summary: RPM macros for building of Python modules License: WTFPL