mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
dist-git-client: sync spec file after the review
https://bugzilla.redhat.com/show_bug.cgi?id=2293067
This commit is contained in:
parent
7a19b5c960
commit
797dac1a78
1 changed files with 27 additions and 23 deletions
|
@ -1,22 +1,22 @@
|
|||
# SPEC file overview:
|
||||
# https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/#con_rpm-spec-file-overview
|
||||
# Fedora packaging guidelines:
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/
|
||||
|
||||
|
||||
Name: dist-git-client
|
||||
Version: 1.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Get sources for RPM builds from DistGit repositories
|
||||
BuildArch: noarch
|
||||
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/release-engineering/dist-git.git
|
||||
Source0: %name-%version.tar.gz
|
||||
|
||||
# Source is created by
|
||||
# git clone https://github.com/release-engineering/dist-git.git
|
||||
# cd dist-git-client
|
||||
# tito build --tgz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
Requires: curl
|
||||
Requires: /usr/bin/git
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-rpm-macros
|
||||
BuildRequires: /usr/bin/argparse-manpage
|
||||
|
@ -27,6 +27,7 @@ Requires: python3-rpmautospec
|
|||
BuildRequires: python3-rpmautospec
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
A simple, configurable python utility that is able to clone package sources from
|
||||
a DistGit repository, download sources from the corresponding lookaside cache
|
||||
|
@ -41,7 +42,12 @@ corresponding DistGit instance configuration.
|
|||
|
||||
|
||||
%build
|
||||
|
||||
argparse-manpage --pyfile dist_git_client.py \
|
||||
--function _get_argparser \
|
||||
--author "Copr Team" \
|
||||
--author-email "copr-team@redhat.com" \
|
||||
--url %url --project-name Copr \
|
||||
> dist-git-client.1
|
||||
|
||||
|
||||
%install
|
||||
|
@ -49,16 +55,11 @@ install -d %{buildroot}%{_bindir}
|
|||
install -d %{buildroot}%{_mandir}/man1
|
||||
install -d %{buildroot}%{_sysconfdir}/dist-git-client
|
||||
install -d %{buildroot}%{python3_sitelib}
|
||||
install -p -m 755 bin/dist-git-client %buildroot%_bindir
|
||||
argparse-manpage --pyfile dist_git_client.py \
|
||||
--function _get_argparser \
|
||||
--author "Copr Team" \
|
||||
--author-email "copr-team@redhat.com" \
|
||||
--url %url --project-name Copr \
|
||||
> %{buildroot}%{_mandir}/man1/dist-git-client.1
|
||||
install -p -m 755 bin/dist-git-client %{buildroot}%{_bindir}
|
||||
install -p -m 644 etc/default.ini \
|
||||
%{buildroot}%{_sysconfdir}/dist-git-client
|
||||
install -p -m 644 dist_git_client.py %{buildroot}%{python3_sitelib}
|
||||
install -p -m 644 dist-git-client.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
|
||||
%check
|
||||
|
@ -68,14 +69,17 @@ PYTHON=python3 ./run_tests.sh -vv --no-coverage
|
|||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%_bindir/dist-git-client
|
||||
%_mandir/man1/dist-git-client.1*
|
||||
%dir %_sysconfdir/dist-git-client
|
||||
%config %_sysconfdir/dist-git-client/default.ini
|
||||
%python3_sitelib/dist_git_client.*
|
||||
%python3_sitelib/__pycache__/dist_git_client*
|
||||
%{_bindir}/dist-git-client
|
||||
%{_mandir}/man1/dist-git-client.1*
|
||||
%dir %{_sysconfdir}/dist-git-client
|
||||
%config(noreplace) %{_sysconfdir}/dist-git-client/default.ini
|
||||
%{python3_sitelib}/dist_git_client.*
|
||||
%{python3_sitelib}/__pycache__/dist_git_client*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jun 06 2024 Pavel Raiskup <praiskup@redhat.com> 1.1-0
|
||||
* Fri Jun 21 2024 Pavel Raiskup <praiskup@redhat.com> - 1.0-2
|
||||
- Fedora Review fixes (rhbz#2293067)
|
||||
|
||||
* Thu Jun 06 2024 Pavel Raiskup <praiskup@redhat.com> - 1.0-1
|
||||
- new package built with tito
|
||||
|
|
Loading…
Add table
Reference in a new issue