Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 6220 - Add Packit configuration #6221

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/
specfile_path: rpm/389-ds-base.spec
paths:
- ./
actions:
post-upstream-clone:
- "bash -c 'cd ${PACKIT_UPSTREAM_REPO}; make -f rpm.mk rpmspec'"
create-archive:
- "bash -c 'cd ${PACKIT_UPSTREAM_REPO}; make -f rpm.mk download-cargo-dependencies tarballs'"
- "bash -c 'cd ${PACKIT_UPSTREAM_REPO}; ls -1 dist/sources/389-ds-base*.tar.bz2'"
# fix-spec-file:
# - "bash -c 'cd ${PACKIT_UPSTREAM_REPO}; make -f rpm.mk rpmspec'"
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rpm/389-ds-base.spec
srpm_build_deps:
- make
- cargo
- npm
# See: https://packit.dev/docs/configuration/#upstream_tag_template
upstream_tag_template: "389-ds-base-{version}"

# See: https://packit.dev/docs/configuration/#release_suffix
#release_suffix: {original_release_number}.{current_time}.{sanitized_current_branch}{git_desc_suffix}
release_suffix: "packit"

upstream_package_name: 389-ds-base
downstream_package_name: 389-ds-base

files_to_sync:
- rpm/389-ds-base.spec
- .packit.yaml

allowed_pr_authors:
- packit
- all_admins

jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-all
3 changes: 2 additions & 1 deletion rpm/389-ds-base.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ BuildRequires: pkgconfig(libpcre2-8)
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: make
# For our documentation
BuildRequires: doxygen
# For tests!
Expand Down Expand Up @@ -407,7 +408,7 @@ mkdir -p ../%{libdb_base_version}
pushd ../%{libdb_base_version}
tar -xjf ../../SOURCES/%{libdb_full_version}.tar.bz2
mv %{libdb_full_version} SOURCES
rpmbuild --define "_topdir $PWD" -bc %{_builddir}/%{name}-%{version}/rpm/bundle-libdb.spec
rpmbuild --define "_topdir $PWD" -bc %{_builddir}/%{name}-%{version}/rpm/bundle-libdb.spec.in
popd
%endif

Expand Down
File renamed without changes.
Loading