Skip to content
Open
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
5 changes: 5 additions & 0 deletions .distro/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/main.fmf
/plans/main.fmf
/tests/main.fmf
!*.spec
*.tar.gz
Empty file added .distro/fdict.rpmlintrc
Empty file.
42 changes: 42 additions & 0 deletions .distro/fdict.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Name: fdict
Version: 0.0.0
Release: %{autorelease}
Summary: Fortran type-free variable and type-free dictionary

License: GPL-2.0
URL: http://zerothi.github.io/fdict
Source: https://github.com/zerothi/fdict/archive/refs/tags/v%{version}.tar.gz

BuildRequires: cmake
BuildRequires: gcc-gfortran

%description
A variable and dictionary in pure fortran for retaining any data-type and a
fast hash-table dictionary.


%prep
%autosetup -p1 -n fdict-%{version}


%build
%cmake
%cmake_build


%install
%cmake_install


%check
%ctest


%files
%license LICENSE
%doc README.md
%{_datadir}/cmake/fdict


%changelog
%autochangelog
3 changes: 3 additions & 0 deletions .distro/packit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Filters = [
"unknown-key",
]
3 changes: 3 additions & 0 deletions .distro/plans/main.fmf.dist-git
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
discover:
how: fmf
dist-git-source: true
22 changes: 22 additions & 0 deletions .distro/plans/rpmlint.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
summary:
Perform rpmlint and rpminspect tests
prepare:
- name: Install rpmlint packages
how: install
package:
- rpmlint
- rpminspect
- rpminspect-data-fedora
## TODO: Disabled because upstream failure
## https://github.com/packit/packit/issues/1978
#- name: Download the source rpm
# how: shell
# script: cd /tmp && curl -O ${PACKIT_SRPM_URL}
- name: Download rpm packages
how: shell
script: cd /tmp && dnf download ${PACKIT_COPR_RPMS}
discover+:
how: fmf
filter: "tag: rpmlint"
execute:
how: tmt
7 changes: 7 additions & 0 deletions .distro/plans/smoke.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary:
Basic smoke tests
discover+:
how: fmf
filter: "tag: smoke"
execute:
how: tmt
13 changes: 13 additions & 0 deletions .distro/tests/rpmlint.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Common test variables
tag:
- rpmlint
tier: 0
path: /

# Define tests
/rpmlint:
summary: Rpmlint spec and rpmfiles
test: rpmlint -c packit.toml -r fidct.rpmlintrc ./*.spec /tmp/*.rpm
/rpminspect-rpms:
summary: Rpminspect the rpms
test: ls /tmp/*.rpm | xargs -L1 rpminspect-fedora -E metadata,disttag
9 changes: 9 additions & 0 deletions .distro/tests/smoke.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Common test variables
tag:
- smoke
tier: 0
path: /

# Define tests
/version:
test: echo "To be implemented"
80 changes: 80 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
specfile_path: .distro/fdict.spec
files_to_sync:
- src: .distro/fdict.spec
dest: fdict.spec
- .packit.yaml
- src: .distro/fdict.rpmlintrc
dest: fdict.rpmlintrc
# tmt setup
- src: .distro/.fmf/
dest: .fmf/
- src: .distro/plans/
dest: plans/
filters:
- "- .distro/plans/main.fmf.dist-git"
- "- .distro/plans/rpmlint.fmf"
- src: .distro/plans/main.fmf.dist-git
dest: plans/main.fmf

upstream_package_name: fdict
downstream_package_name: fdict
update_release: false
upstream_tag_template: v{version}

jobs:
- job: copr_build
trigger: pull_request
owner: lecris
project: fdict
update_release: true
release_suffix: "{PACKIT_RPMSPEC_RELEASE}"
targets:
# TODO: Change before production
#- fedora-development
- fedora-all
- job: tests
trigger: pull_request
targets:
# TODO: Change before production
#- fedora-development
- fedora-all
fmf_path: .distro
- job: copr_build
trigger: commit
branch: main
owner: lecris
project: nightly
targets:
- fedora-all-x86_64
- fedora-all-aarch64
additional_repos:
- copr://@scikit-build/release
- job: tests
trigger: commit
branch: main
targets:
- fedora-all
- job: copr_build
trigger: release
owner: lecris
project: release
targets:
- fedora-all-x86_64
- fedora-all-aarch64
additional_repos:
# TODO: Required for now until related issue is resolved
# https://github.com/packit/packit/issues/1917
- copr://@scikit-build/release
## TODO: Disabled until released on src.fedoraproject.org
# - job: propose_downstream
# trigger: release
# dist_git_branches:
# - fedora-development
# - job: koji_build
# trigger: commit
# dist_git_branches:
# - fedora-all
# - job: bodhi_update
# trigger: commit
# dist_git_branches:
# - fedora-all