diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..fefdc9f --- /dev/null +++ b/gating.yaml @@ -0,0 +1,19 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..fc5e585 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,5 @@ +summary: yank smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/cmd/main.fmf b/tests/cmd/main.fmf new file mode 100644 index 0000000..d0ddca4 --- /dev/null +++ b/tests/cmd/main.fmf @@ -0,0 +1 @@ +summary: basic command smoke test diff --git a/tests/cmd/test.sh b/tests/cmd/test.sh new file mode 100755 index 0000000..0463c43 --- /dev/null +++ b/tests/cmd/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +rlJournalStart + rlPhaseStartTest + rlRun "yank-cli -v" + rlPhaseEnd +rlJournalEnd diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..a7caf63 --- /dev/null +++ b/tests/main.fmf @@ -0,0 +1,4 @@ +summary: basic smoke test +test: ./test.sh +framework: beakerlib +require: [yank] diff --git a/tests/manpages/main.fmf b/tests/manpages/main.fmf new file mode 100644 index 0000000..3ee823e --- /dev/null +++ b/tests/manpages/main.fmf @@ -0,0 +1,2 @@ +summary: verify manpages +require: [man-db] diff --git a/tests/manpages/test.sh b/tests/manpages/test.sh new file mode 100755 index 0000000..7b11867 --- /dev/null +++ b/tests/manpages/test.sh @@ -0,0 +1,15 @@ +#!/bin/bash +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +expected_manpages=( + 'yank(1)' + 'yank-cli(1)' +) + +rlJournalStart + for page in "${expected_manpages[@]}"; do + rlPhaseStartTest "test ${page}" + rlRun "man --pager=cat '${page}'" + rlPhaseEnd + done +rlJournalEnd diff --git a/yank.rpmlintrc b/yank.rpmlintrc new file mode 100644 index 0000000..f8857a4 --- /dev/null +++ b/yank.rpmlintrc @@ -0,0 +1 @@ +addFilter('.*spelling-error.*') diff --git a/yank.spec b/yank.spec index ac4c51f..e56a97b 100644 --- a/yank.spec +++ b/yank.spec @@ -1,14 +1,14 @@ Name: yank Version: 1.3.0 -Release: 1%{?dist} +Release: 8%{?dist} Summary: Tool for selecting and copying text from stdin without a mouse License: MIT URL: https://github.com/mptre/%{name} -Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: make BuildRequires: gcc +BuildRequires: make Requires: bash @@ -16,29 +16,23 @@ Requires: bash %global name_change yank-cli %description -Read input from stdin and display a selection interface that allows a field -to be selected and copied to the clipboard. Fields are either recognized by -a regular expression using the -g option or by splitting the input on a +Read input from stdin and display a selection interface that allows a field +to be selected and copied to the clipboard. Fields are either recognized by +a regular expression using the -g option or by splitting the input on a delimiter sequence using the -d option. - %prep %autosetup - %build -%if 0%{?rhel} -%set_build_flags -%endif -%make_build PROG=%{name_change} +CFLAGS=${RPM_OPT_FLAGS} %make_build PROG=%{name_change} %install -%make_install PREFIX=%{_prefix} INSTALL_PROGRAM='install -m 0755' PROG=%{name_change} +%make_install PREFIX=%{_prefix} MANPREFIX=%{_mandir} INSTALL_PROGRAM='install -m 0755' PROG=%{name_change} # Provide the same manpage for both 'yank' and 'yank-cli' ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name_change}.1 - %files %{_bindir}/%{name_change} %{_mandir}/man1/%{name}* @@ -46,10 +40,30 @@ ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name_change}.1 %license LICENSE %doc README.md CHANGELOG.md - %changelog -* Tue Aug 16 2022 Jonathan Wright - 1.3.0-1 -- Update to 1.3.0 +* Fri Jul 25 2025 Fedora Release Engineering - 1.3.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 1.3.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Sun Jan 12 2025 Carlos Rodriguez-Fernandez - 1.3.0-6 +- Migrated to SPDX license + +* Sat Jul 20 2024 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Aug 29 2022 Filipe Rosset - 1.3.0-1 +- Update to 1.3.0 fix rhbz#1742680 * Sat Jul 23 2022 Fedora Release Engineering - 0.8.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild