0168143
%global pypi_name packitos
0168143
%global real_name packit
0168143
0168143
Name:           %{real_name}
Packit Service f27d37d
Version:        0.37.0
d03b8eb
Release:        1%{?dist}
0168143
Summary:        A tool for integrating upstream projects with Fedora operating system
0168143
0168143
License:        MIT
Packit Service a09aaa7
URL:            https://github.com/packit/packit
9b69a23
Source0:        %pypi_source
0168143
BuildArch:      noarch
0168143
BuildRequires:  python3-devel
1ff200d
BuildRequires:  python3-click-man
1ff200d
BuildRequires:  python3-GitPython
1ff200d
BuildRequires:  python3-gnupg
1ff200d
BuildRequires:  python3-ogr
1ff200d
BuildRequires:  python3-packaging
1ff200d
BuildRequires:  python3-pyyaml
1ff200d
BuildRequires:  python3-tabulate
Packit Service 7a4937b
BuildRequires:  python3-cccolutils
4793427
BuildRequires:  python3-copr
3a9ee2d
BuildRequires:  python3-koji
3441cf2
BuildRequires:  python3-lazy-object-proxy
4793427
BuildRequires:  python3-marshmallow
4793427
BuildRequires:  python3-marshmallow-enum
1ff200d
BuildRequires:  rebase-helper
0168143
BuildRequires:  python3dist(setuptools)
0168143
BuildRequires:  python3dist(setuptools-scm)
0168143
BuildRequires:  python3dist(setuptools-scm-git-archive)
Packit Service 7e22e02
BuildRequires:  python3-bodhi-client
0168143
Requires:       python3-%{real_name} = %{version}-%{release}
0168143
0168143
%description
0168143
This project provides tooling and automation to integrate upstream open source
0168143
projects into Fedora operating system.
0168143
0168143
%package -n     python3-%{real_name}
0168143
Summary:        %{summary}
d03b8eb
# new-sources
d03b8eb
Requires:       fedpkg
Packit Service 61ae9ab
Requires:       git
d03b8eb
# kinit
d03b8eb
Requires:       krb5-workstation
Packit Service 61ae9ab
# rpmbuild
Packit Service 61ae9ab
Requires:       rpm-build
Packit Service 61ae9ab
# bumpspec
Packit Service 61ae9ab
Requires:       rpmdevtools
d03b8eb
# Copying files between repositories
d03b8eb
Requires:       rsync
d03b8eb
%if 0%{?rhel}
d03b8eb
# rhbz#1968618 still not fixed for epel-8
4793427
Requires:       python3-koji
d03b8eb
%endif
0168143
%{?python_provide:%python_provide python3-%{real_name}}
0168143
0168143
%description -n python3-%{real_name}
0168143
Python library for Packit,
0168143
check out packit package for the executable.
0168143
0168143
0168143
%prep
0168143
%autosetup -n %{pypi_name}-%{version}
0168143
# Remove bundled egg-info
0168143
rm -rf %{pypi_name}.egg-info
0168143
d03b8eb
%if 0%{?rhel}
d03b8eb
# rhbz#1968618 still not fixed for epel-8
d03b8eb
sed -i -e 's|koji|# koji|' setup.cfg
d03b8eb
%endif
d03b8eb
0168143
%build
0168143
%py3_build
0168143
0168143
%install
0168143
%py3_install
1ff200d
python3 setup.py --command-packages=click_man.commands man_pages --target %{buildroot}%{_mandir}/man1
4793427
4793427
install -d -m 755 %{buildroot}%{_datadir}/bash-completion/completions
4575fdb
cp files/bash-completion/packit %{buildroot}%{_datadir}/bash-completion/completions/packit
0168143
0168143
%files
0168143
%license LICENSE
0168143
%{_bindir}/packit
1ff200d
%{_mandir}/man1/packit*.1*
4793427
%dir %{_datadir}/bash-completion/completions
4793427
%{_datadir}/bash-completion/completions/%{real_name}
Packit Service c690820
%{_bindir}/_packitpatch
0168143
0168143
%files -n python3-%{real_name}
0168143
%license LICENSE
0168143
%doc README.md
0168143
%{python3_sitelib}/*
0168143
0168143
%changelog
Packit Service f27d37d
* Fri Sep 17 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.37.0-1
Packit Service f27d37d
- `packit source-git` init was updated to try to apply patches with `git am` first, and use `patch` only when this fails, in order to keep the commit message of Git-formatted (mbox) patch files in the source-git history. (#1358)
Packit Service f27d37d
- Packit now provides `PACKIT_RPMSPEC_RELEASE` environment variable in actions. (#1363)
Packit Service f27d37d
0f4ac26
* Wed Sep 01 2021 Jiri Popelka <jpopelka@redhat.com> - 0.36.0-1
0f4ac26
- `status` command has been refactored and now provides much cleaner output. (#1329)
0f4ac26
- A log warning is raised if the specfile specified by the user in the config doesn't exist. (#1342)
0f4ac26
- Packit by default locally merges checked out pull requests into target branch. Logging for checking out pull requests was improved to contain hashes and summaries of last commit on both source and target branches. (#1344)
0f4ac26
- `source-git update-dist-git` now supports using Git trailers to define patch metadata, which will control how patches are generated and added to the spec-file. `source-git init` uses this format to capture patch metadata when setting up a source-git repo, instead of the YAML one. To maintain backwards compatibility, the YAML format is still parsed, but only if none of the patches defines metadata using Git trailers. (#1336)
0f4ac26
- Fixed a bug that caused purging or syncing upstream changelog (when not configured) from specfile when running `propose-downstream`. New behavior preserves downstream changelog and in case there are either no entries or no %changelog section present, it is created with a new entry. (#1349)
0f4ac26
d03b8eb
* Mon Aug 09 2021 Tomas Tomecek <ttomecek@redhat.com> - 0.35.0-1
d03b8eb
- Propose-downstream: log when a PR already exists downstream (#1322).
d03b8eb
- `packit init` to set spec file path in the config if it's not defined (#1313).
d03b8eb
- Make it possible to clone packages from staging dist-git (#1306).
d03b8eb
- Source-git: squash patches by patch name - no need to have a dedicated attribute, `squash_commits`, for that (#1309).
d03b8eb
- Source-git: look for the config file in .distro/source-git.yaml as well (#1302).
d03b8eb
- Source-git: change logging from error to warning when %prep is not using setup (#1317).
d03b8eb
c44d98b
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.34.0-2
c44d98b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c44d98b
Packit Service e8e9c7e
* Thu Jul 08 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.34.0-1
Packit Service e8e9c7e
- Source-git: `source-git init` was refactored, which also changed and simplified the CLI.
Packit Service a09aaa7
13a1ff5
* Thu Jun 24 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.33.1-1
13a1ff5
- Release 0.33.1
13a1ff5
13a1ff5
* Thu Jun 10 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.32.0-1
13a1ff5
- Command `packit generate` was removed. It has been deprecated for a while
13a1ff5
  in favour of `packit init`. (#1269)
13a1ff5
- Packit now explicitly requires git and rpm-build. (#1276)
13a1ff5
- Source-git: Patch handling is more consistent. (#1263)
13a1ff5
- Source-git: Passing changelog from source-git repo to dist-git was fixed. (#1265)
13a1ff5
- Source-git: There is a new `source-git` subcommand, that groups source-git related
13a1ff5
  commands `init` and `update-dist-git`. (#1273)
13a1ff5
13a1ff5
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.31.0-2
13a1ff5
- Rebuilt for Python 3.10
13a1ff5
13a1ff5
* Mon May 31 2021 Frantisek Lachman <flachman@redhat.com> - 0.31.0-1
13a1ff5
- Downstream package name is set when dist-git path is provided. (#1246)
13a1ff5
- A bug with older Python present on Fedora Linux 32 and EPEL 8 is fixed. (#1240)
13a1ff5
- There is a new `update-dist-git` subcommand that is
13a1ff5
  an improved offline version of `propose-downstream`. (#1228)
13a1ff5
- Source-git: Commit metadata newly includes `patch_id`. (#1252)
13a1ff5
13a1ff5
* Fri May 14 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.30.1-1
13a1ff5
 - Fixed a bug caused by new click release. (#1238)
13a1ff5
13a1ff5
* Fri May 14 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.30.0-1
13a1ff5
- Patching: removed location_in_specfile from commit metadata. (#1229)
13a1ff5
- Refactored and extended the synced_files mechanism. (#1211)
13a1ff5
- Fixed a bug regarding the fedora-latest alias. (#1222)
13a1ff5
13a1ff5
* Fri Apr 30 2021 Jiri Popelka <jpopelka@redhat.com> - 0.29.0-1
13a1ff5
- Source-git: add info about sources to packit.yaml when initiating a new source-git repo
13a1ff5
  and don't commit dist-git sources from the lookaside cache. (#1208, #1216)
13a1ff5
- Source-git: fix SRPM creation failing with duplicate Patch IDs. (#1206)
13a1ff5
- Support git repository cache. (#1214)
13a1ff5
- Reflect removed COPR chroots in a COPR project. (#1197)
13a1ff5
- Deprecate current_version_command and create_tarball_command. (#1212)
13a1ff5
- Fix crashing push-updates command. (#1170)
13a1ff5
- Improve fmf/tmt tests configuration. (#1192)
13a1ff5
13a1ff5
* Wed Mar 31 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.28.0-1
13a1ff5
- Remove the no-op `--dry-run` option.
13a1ff5
- Handle `centos-stream` targets as `centos-stream-8`, in order to help with the name change in Copr.
13a1ff5
- `fmf_url` and `fmf_ref` can be used in a job's `metadata` to specify an external repository and reference to be used to test the package.
13a1ff5
- Introduce a `fedora-latest` alias for the latest _branched_ version of Fedora Linux.
13a1ff5
- Add a top-level option `-c, --config` to specify a custom path for the package configuration (aka `packit.yaml`).
13a1ff5
- Source-git: enable using CentOS Stream 9 dist-git as a source.
13a1ff5
- Source-git: rename the subdirectory to store downstream packaging files from `fedora` to the more general `.distro`.
13a1ff5
- Source-git: fix creating source-git repositories when Git is configured to call the default branch something other then `master`.
13a1ff5
13a1ff5
* Thu Mar 18 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.27.0-1
13a1ff5
- (Source-git) Several improvements of history linearization.
13a1ff5
- (Source-git) Detect identical patches in propose-downstream.
13a1ff5
- (Source-git) Patches in a spec file are added after the first empty line below the last Patch/Source.
13a1ff5
- Fetch all sources defined in packit.yaml.
13a1ff5
- New option to sync only specfile from downstream.
13a1ff5
13a1ff5
* Thu Mar 04 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.26.0-1
13a1ff5
- Fix construction of the Koji tag for epel branches when running `packit create-update`. ([#1122](https://github.com/packit/packit/pull/1122))
13a1ff5
- `create-update` now also shows a message about Bodhi requiring the password. ([#1127](https://github.com/packit/packit/pull/1127))
13a1ff5
- `packit init` correctly picks up sources from CentOS and fetches specfile from CentOS dist-git. ([#1106](https://github.com/packit/packit/pull/1106))
13a1ff5
- Fix translating of the target aliases by treating the highest pending version in Bodhi as `rawhide`. ([#1114](https://github.com/packit/packit/pull/1114))
13a1ff5
- The format of Packit logs is unified for all log levels. ([#1119](https://github.com/packit/packit/pull/1119))
13a1ff5
- There is a new configuration option `sources` which enables to define sources to override their URLs in specfile.
13a1ff5
  You can read more about this in [our documentation](https://packit.dev/docs/configuration/#sources). ([#1131](https://github.com/packit/packit/pull/1131))
13a1ff5
13a1ff5
* Fri Feb 12 2021 Matej Mužila <mmuzila@redhat.com> - 0.25.0-1
13a1ff5
- `propose-update` command now respects requested dist-git branches. ([#1094](https://github.com/packit/packit/pull/1094))
13a1ff5
- Improve the way how patches are added to spec file. ([#1100](https://github.com/packit/packit/pull/1100))
13a1ff5
- `--koji-target` option of the `build` command now accepts aliases. ([#1052](https://github.com/packit/packit/pull/1052))
13a1ff5
- `propose-downstream` on source-git repositories now always uses `--local-content`. ([#1093](https://github.com/packit/packit/pull/1093))
13a1ff5
- Don't behave as if `ref` would be always a branch. ([#1089](https://github.com/packit/packit/pull/1089))
13a1ff5
- Detect a name of the default branch of a repository instead of assuming it to be called `master`. ([#1074](https://github.com/packit/packit/pull/1074))
13a1ff5
13a1ff5
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-2
13a1ff5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
13a1ff5
13a1ff5
* Thu Jan 21 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.24.0-1
13a1ff5
- No user-facing changes done in this release.
13a1ff5
13a1ff5
* Thu Jan 07 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.23.0-1
13a1ff5
- The `propose-update` has been renamed to `propose-downstream`; `propose-update` is now deprecated
13a1ff5
  to unify the naming between CLI and service. ([@jpopelka](https://github.com/jpopelka), [#1065](https://github.com/packit-service/packit/pull/1065))
13a1ff5
- Our README has been cleaned and simplified. ([@ChainYo](https://github.com/ChainYo), [#1058](https://github.com/packit-service/packit/pull/1058))
13a1ff5
- The :champagne: comment with the installation instructions has been disabled by default. ([@mfocko](https://github.com/mfocko), [#1057](https://github.com/packit-service/packit/pull/1057))
13a1ff5
- More information can be found in [our documentation](https://packit.dev/docs/configuration/#notifications).
13a1ff5
- Packit is being prepared to be released in EPEL 8 so it can be consumed in RHEL and CentOS Stream. ([@nforro](https://github.com/nforro), [#1055](https://github.com/packit-service/packit/pull/1055))
13a1ff5
13a1ff5
* Thu Dec 10 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.22.0-1
13a1ff5
- `packit init` introduces the `--upstream-url` option. When specified,
13a1ff5
  `init` also sets up a source-git repository next to creating a configuration file.
13a1ff5
- Don't rewrite macros when setting release and version in spec file.
13a1ff5
- Fix generation of Copr settings URL for groups.
13a1ff5
- Improve processing of the version when proposing a Fedora update.
13a1ff5
13a1ff5
* Wed Nov 25 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.21.0-1
13a1ff5
- pre-commit autoupdate (Jiri Popelka)
13a1ff5
- 0.21.0 release (Release bot)
13a1ff5
- parsing git remote URL: inform what's happening... (Tomas Tomecek)
13a1ff5
- Revert "Allow recursive search for specfile in repository" (Matej Focko)
13a1ff5
- Regenerate test_data for recursive (Matej Focko)
13a1ff5
- Allow recursive search for specfile in repository (Matej Focko)
13a1ff5
- cli.copr-build: replace / with - (Tomas Tomecek)
13a1ff5
- copr, log CoprException.result when creating repo fails (Tomas Tomecek)
13a1ff5
- Delete recipe-tests.yaml (Jiri Popelka)
13a1ff5
- Add build to default jobs (lbarcziova)
13a1ff5
- Add test case for Upstream._fix_spec_source() (Nikola Forró)
13a1ff5
- Fix SpecFile.get_source() (Nikola Forró)
13a1ff5
13a1ff5
* Fri Nov 13 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.20.0-1
13a1ff5
- new upstream release: 0.20.0
13a1ff5
13a1ff5
* Thu Oct 29 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.19.0-1
13a1ff5
- new upstream release: 0.19.0
13a1ff5
13a1ff5
* Thu Oct 15 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.18.0-1
13a1ff5
- new upstream release: 0.18.0
13a1ff5
13a1ff5
* Thu Oct 01 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.17.0-1
13a1ff5
- new upstream release: 0.17.0
13a1ff5
13a1ff5
* Thu Sep 03 2020 rebase-helper <rebase-helper@localhost.local> - 0.16.0-1
13a1ff5
- new upstream release: 0.16.0
13a1ff5
13a1ff5
* Thu Aug 20 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.15.0-1
13a1ff5
- new upstream release: 0.15.0
Packit Service c5983b0
Packit Service c5983b0
* Tue Jul 28 2020 Jiri Popelka <jpopelka@redhat.com> - 0.14.0-1
13a1ff5
- new upstream release: 0.14.0
13a1ff5
13a1ff5
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-2
13a1ff5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Packit Service c5983b0
13a1ff5
* Thu Jul 16 2020 Hunor Csomortáni <csomh@redhat.com> - 0.13.1-1
13a1ff5
- new upstream release: 0.13.1
Packit Service c5983b0
13a1ff5
* Thu Jul 09 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.13.0-1
13a1ff5
- new upstream release: 0.13.0
Packit Service c5983b0
13a1ff5
* Wed Jun 24 2020 lbarcziova <lbarczio@redhat.com> - 0.12.0-1
13a1ff5
- new upstream release: 0.12.0
8b3867e
1a4a27e
* Thu Jun 11 2020 Jan Sakalos <sakalosj@gmail.com> - 0.11.1-1
1a4a27e
- new upstream release: 0.11.1
1a4a27e
13a1ff5
* Thu May 28 2020 Miro Hrončok <mhroncok@redhat.com> - 0.11.0-2
13a1ff5
- Rebuilt for Python 3.9
13a1ff5
9c73293
* Thu May 28 2020 Tomas Tomecek <ttomecek@redhat.com> - 0.11.0-1
9c73293
- new upstream release: 0.11.0
9c73293
13a1ff5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-2
13a1ff5
- Rebuilt for Python 3.9
d8ca679
cd4e3f7
* Thu Apr 16 2020 Jiri Popelka <jpopelka@redhat.com> - 0.10.1-1
13a1ff5
- new upstream release: 0.10.1
cd4e3f7
13a1ff5
* Tue Apr 14 2020 Jiri Popelka <jpopelka@redhat.com> - 0.10.0-1
13a1ff5
- new upstream release: 0.10.0
4793427
13a1ff5
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
13a1ff5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0afd127
13a1ff5
* Mon Oct 21 2019 Frantisek Lachman <flachman@redhat.com> - 0.7.1-1
13a1ff5
- new upstream release: 0.7.1
e980b70
3441cf2
* Fri Oct 04 2019 Frantisek Lachman <flachman@redhat.com> - 0.7.0-1
13a1ff5
- new upstream release: 0.7.0
3441cf2
c20d3c2
* Thu Sep 12 2019 Jiri Popelka <jpopelka@redhat.com> - 0.6.1-1
c20d3c2
- new upstream release: 0.6.1
c20d3c2
3a9ee2d
* Tue Sep 10 2019 Tomas Tomecek <ttomecek@redhat.com> - 0.6.0-1
3a9ee2d
- new upstream release: 0.6.0
3a9ee2d
13a1ff5
* Mon Aug 26 2019 Tomas Tomecek <ttomecek@redhat.com> - 0.5.1-1
9b69a23
- new upstream release: 0.5.1
9b69a23
13a1ff5
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-2
13a1ff5
- Rebuilt for Python 3.8
13a1ff5
13a1ff5
* Fri Aug 02 2019 Packit Service - 0.5.0-1
Packit Service 7a4937b
- new upstream release: 0.5.0
Packit Service 7a4937b
13a1ff5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-2
13a1ff5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
13a1ff5
bcfd162
* Fri Jun 28 2019 Jiri Popelka <jpopelka@redhat.com> - 0.4.2-1
bcfd162
- New upstream release
bcfd162
1ff200d
* Sat May 18 2019 Jiri Popelka <jpopelka@redhat.com> - 0.4.1-1
1ff200d
- Patch release
1ff200d
1ff200d
* Wed May 15 2019 Jiri Popelka <jpopelka@redhat.com> - 0.4.0-1
1ff200d
- New upstream release: 0.4.0
1ff200d
- Build man pages since F30
1ff200d
1ff200d
* Thu Apr 11 2019 Jiri Popelka <jpopelka@redhat.com> - 0.3.0-2
1ff200d
- click-man needs more BuildRequires
1ff200d
1ff200d
* Wed Apr 10 2019 Tomas Tomecek <ttomecek@redhat.com> - 0.3.0-1
1ff200d
- New upstream release: 0.3.0
1ff200d
1ff200d
* Fri Mar 29 2019 Jiri Popelka <jpopelka@redhat.com> - 0.2.0-2
1ff200d
- man pages
1ff200d
f952bba
* Tue Mar 19 2019 Tomas Tomecek <ttomecek@redhat.com> - 0.2.0-1
f952bba
- New upstream release 0.2.0
f952bba
ab1a447
* Thu Mar 14 2019 Frantisek Lachman <flachman@redhat.com> - 0.1.0-1
ab1a447
- New upstream release 0.1.0
ab1a447
0168143
* Mon Mar 04 2019 Frantisek Lachman <flachman@redhat.com> - 0.0.1-1
0168143
- Initial package.