pyproject-rpm-macros/pyproject-rpm-macros.spec

48 lines
1.3 KiB
RPMSpec
Raw Normal View History

2019-07-02 10:41:04 +00:00
Name: pyproject-rpm-macros
Version: 0
2019-07-02 12:02:54 +00:00
Release: 2%{?dist}
2019-07-02 10:41:04 +00:00
License: MIT
Source0: macros.pyproject
Source1: README.md
Source2: LICENSE
2019-07-02 11:05:10 +00:00
URL: https://src.fedoraproject.org/rpms/pyproject-rpm-macros
2019-07-02 10:41:04 +00:00
BuildArch: noarch
Summary: RPM macros for PEP 517 Python packages
Requires: python3-pip >= 19
Requires: python3-devel
%description
This is a provisional implementation of pyproject RPM macros for Fedora 30+.
These macros are useful for packaging Python projects that use the PEP 517
pyproject.toml file, which specifies the package's build dependencies
(including the build system, such as setuptools, flit or poetry).
%prep
# Not strictly necessary but allows working on file names instead
# of source numbers in install section
%setup -c -T
cp -p %{sources} .
2019-07-02 10:41:04 +00:00
%build
# nothing to do, sources are not buildable
%install
mkdir -p %{buildroot}/%{_rpmmacrodir}
install -m 644 macros.pyproject %{buildroot}/%{_rpmmacrodir}/
2019-07-02 10:41:04 +00:00
%files
%{_rpmmacrodir}/macros.pyproject
%doc README.md
%license LICENSE
%changelog
2019-07-02 12:02:54 +00:00
* Tue Jul 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0-2
- Fix shell syntax errors in %%pyproject_install
- Drop PATH warning in %%pyproject_install
2019-07-02 10:41:04 +00:00
* Fri Jun 28 2019 Patrik Kopkan <pkopkan@redhat.com> - 0-1
- created package