[packit] 0.2.0 upstream release
Upstream tag: 0.2.0 Upstream commit: a15b0918 Signed-off-by: Packit <hello@packit.dev>
This commit is contained in:
parent
4fcaba6fc0
commit
921cff8bf6
5 changed files with 188 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/specfile-0.2.0.tar.gz
|
||||
113
.packit.yaml
Normal file
113
.packit.yaml
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
---
|
||||
specfile_path: fedora/python-specfile.spec
|
||||
|
||||
# add or remove files that should be synced
|
||||
files_to_sync:
|
||||
- fedora/python-specfile.spec
|
||||
- .packit.yaml
|
||||
|
||||
# name in upstream package repository or registry (e.g. in PyPI)
|
||||
upstream_package_name: specfile
|
||||
# downstream (Fedora) RPM package name
|
||||
downstream_package_name: python-specfile
|
||||
|
||||
copy_upstream_release_description: true
|
||||
|
||||
actions:
|
||||
# we need this b/c `git archive` doesn't put all the metadata in the tarball:
|
||||
# LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'.
|
||||
# Make sure you're either building from a fully intact git repository or PyPI tarballs.
|
||||
create-archive:
|
||||
- python3 setup.py sdist --dist-dir ./fedora/
|
||||
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
|
||||
get-current-version: python3 setup.py --version
|
||||
|
||||
srpm_build_deps:
|
||||
- python3-pip # "python3 setup.py --version" needs it
|
||||
- python3-setuptools_scm
|
||||
|
||||
jobs:
|
||||
- job: propose_downstream
|
||||
trigger: release
|
||||
metadata:
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
- job: propose_downstream
|
||||
trigger: release
|
||||
specfile_path: epel/python-specfile.spec
|
||||
files_to_sync:
|
||||
- epel/python-specfile.spec
|
||||
- .packit.yaml
|
||||
metadata:
|
||||
dist_git_branches:
|
||||
- epel-8
|
||||
|
||||
- job: copr_build
|
||||
trigger: pull_request
|
||||
identifier: fedora
|
||||
metadata:
|
||||
targets:
|
||||
- fedora-all
|
||||
- &copr_build_pr_epel
|
||||
job: copr_build
|
||||
trigger: pull_request
|
||||
specfile_path: epel/python-specfile.spec
|
||||
identifier: epel
|
||||
actions:
|
||||
create-archive:
|
||||
- python3 setup.py sdist --dist-dir ./epel/
|
||||
- bash -c "ls -1t ./epel/*.tar.gz | head -n 1"
|
||||
get-current-version: python3 setup.py --version
|
||||
metadata:
|
||||
targets:
|
||||
- epel-8
|
||||
|
||||
- job: copr_build
|
||||
trigger: commit
|
||||
metadata:
|
||||
branch: main
|
||||
targets:
|
||||
- fedora-all
|
||||
project: packit-dev
|
||||
list_on_homepage: True
|
||||
preserve_project: True
|
||||
- <<: *copr_build_pr_epel
|
||||
trigger: commit
|
||||
metadata:
|
||||
branch: main
|
||||
targets:
|
||||
- epel-8
|
||||
project: packit-dev
|
||||
list_on_homepage: True
|
||||
preserve_project: True
|
||||
|
||||
- job: copr_build
|
||||
trigger: release
|
||||
metadata:
|
||||
targets:
|
||||
- fedora-all
|
||||
project: packit-releases
|
||||
list_on_homepage: True
|
||||
preserve_project: True
|
||||
- <<: *copr_build_pr_epel
|
||||
trigger: release
|
||||
metadata:
|
||||
targets:
|
||||
- epel-8
|
||||
project: packit-releases
|
||||
list_on_homepage: True
|
||||
preserve_project: True
|
||||
|
||||
# downstream automation:
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
metadata:
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
- epel-8
|
||||
- job: bodhi_update
|
||||
trigger: commit
|
||||
metadata:
|
||||
dist_git_branches:
|
||||
- fedora-stable # rawhide updates are created automatically
|
||||
- epel-8
|
||||
3
README.packit
Normal file
3
README.packit
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 0.47.2.dev19+g37f70b1.
|
||||
70
python-specfile.spec
Normal file
70
python-specfile.spec
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
%global desc %{expand:
|
||||
Python library for parsing and manipulating RPM spec files.
|
||||
Main focus is on modifying existing spec files, any change should result
|
||||
in a minimal diff.}
|
||||
|
||||
|
||||
Name: python-specfile
|
||||
Version: 0.2.0
|
||||
Release: 1%{?dist}
|
||||
|
||||
Summary: A library for parsing and manipulating RPM spec files
|
||||
License: MIT
|
||||
URL: https://github.com/packit/specfile
|
||||
|
||||
Source0: %{pypi_source specfile}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: %{py3_dist setuptools setuptools-scm setuptools-scm-git-archive}
|
||||
BuildRequires: %{py3_dist arrow importlib-metadata rpm typing-extensions}
|
||||
BuildRequires: %{py3_dist flexmock pytest}
|
||||
|
||||
|
||||
%description
|
||||
%{desc}
|
||||
|
||||
|
||||
%package -n python%{python3_pkgversion}-specfile
|
||||
Summary: %{summary}
|
||||
|
||||
|
||||
%description -n python%{python3_pkgversion}-specfile
|
||||
%{desc}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n specfile-%{version}
|
||||
# Remove bundled egg-info
|
||||
rm -rf specfile.egg-info
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-specfile
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python3_sitelib}/specfile
|
||||
%{python3_sitelib}/specfile-%{version}-py%{python3_version}.egg-info
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Mar 30 2022 Nikola Forró <nforro@redhat.com> - 0.2.0-1
|
||||
- New upstream release 0.2.0
|
||||
|
||||
* Mon Feb 21 2022 Nikola Forró <nforro@redhat.com> - 0.1.1-1
|
||||
- New upstream release 0.1.1
|
||||
|
||||
* Tue Feb 08 2022 Nikola Forró <nforro@redhat.com> - 0.1.0-1
|
||||
- Initial package
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (specfile-0.2.0.tar.gz) = cd524bb89fdd5a5e18ac42e575cd09140ed3a0fcf73de8939798fbd430e888c7817ebca4eeb44ba4e54d52de42e0bb115e4fd4ef58c146d93cabddddafe66332
|
||||
Loading…
Add table
Add a link
Reference in a new issue