What is python-srpm-macros?
python-srpm-macros is made by Oracle. RPM build macros and helper scripts for packaging Python software into source RPMs, including standardized macro definitions and buildroot policy helpers for byte-compilation and reproducible builds.
What python-srpm-macros does
RPM build macros and helper scripts for packaging Python software into source RPMs, including standardized macro definitions and buildroot policy helpers for byte-compilation and reproducible builds.
- Provides RPM macros for building Python source packages (SRPMs)
- Includes RPM macro definitions such as %pypi_source, %py_provides, %py_dist_name, and %py_auto_byte_compile
- Ships an RPM Lua helper module (rpm_lua(fedora.srpm.python)) for SRPM-related Python macro logic
- Includes buildroot policy (brp) helper scripts such as brp-python-bytecompile, brp-fix-pyc-reproducibility, and brp-python-hardlink
- Includes helper tooling such as compileall2.py and clamp_source_mtime.py to support Python build/install and reproducibility workflows
Category: Packaging and Product Specification Management. python-srpm-macros is open source and free to use.
What teams use it for
- Standardizing Python RPM/SRPM packaging behavior across build systems (rpmbuild/mock/Koji-like environments)
- Generating consistent Python-related RPM metadata (e.g., provides) via macros during package builds
- Applying buildroot policy steps for Python byte-compilation and reproducible build adjustments during RPM creation
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does python-srpm-macros do?
RPM build macros and helper scripts for packaging Python software into source RPMs, including standardized macro definitions and buildroot policy helpers for byte-compilation and reproducible builds.
How common is python-srpm-macros in large enterprises?
Samplify finds python-srpm-macros in about 1 in 10 of the large enterprise software estates it has analysed.
Is python-srpm-macros free?
python-srpm-macros is open source and free to use.
What can replace python-srpm-macros?
Other tools in the same category include Conda, Debconf, Master Packager, Microsoft Application Virtualization (App-V) AutoSequencer.
Do we already own something that does what python-srpm-macros does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Oracle.