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
|
2019-07-02 11:40:47 +00:00
|
|
|
# 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}
|
2019-07-02 11:40:47 +00:00
|
|
|
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
|