-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dist-git-client: sync spec file after the review
- Loading branch information
Showing
1 changed file
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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,24 +42,24 @@ corresponding DistGit instance configuration. | |
|
||
|
||
%build | ||
|
||
argparse-manpage --pyfile dist_git_client.py \ | ||
--function _get_argparser \ | ||
--author "Copr Team" \ | ||
--author-email "[email protected]" \ | ||
--url %url --project-name Copr \ | ||
> dist-git-client.1 | ||
|
||
|
||
%install | ||
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 "[email protected]" \ | ||
--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 <[email protected]> 1.1-0 | ||
* Fri Jun 21 2024 Pavel Raiskup <[email protected]> - 1.0-2 | ||
- Fedora Review fixes (rhbz#2293067) | ||
|
||
* Thu Jun 06 2024 Pavel Raiskup <[email protected]> - 1.0-1 | ||
- new package built with tito |