Resolves: RHEL-60823, Move potrace-devel to CRB repository

This commit is contained in:
Parag Nemade 2024-12-03 11:06:49 +05:30
parent 75d628baef
commit a5af54bb51
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
7 changed files with 72 additions and 40 deletions

5
plans/potrace.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View File

@ -1,39 +0,0 @@
---
summary: Tier1 plan for potrace
discover:
how: fmf
url: https://pkgs.devel.redhat.com/git/tests/potrace
ref: master
filter: tier:1
prepare:
- how: shell
script: |
set -euxo pipefail
ENABLE_REPO_CMD="yum-config-manager --enable"
if command -v dnf >/dev/null 2>&1; then
ENABLE_REPO_CMD="dnf config-manager --set-enabled"
fi
${ENABLE_REPO_CMD} beaker-tasks || :
- how: shell
script: |
set -exuo pipefail
if [[ -f /etc/os-release ]]; then
. /etc/os-release
if [[ "${ID:-}" == "rhel" && "${VERSION_ID%%.*}" -ge 8 ]]; then
dnf config-manager --enable rhel-CRB
fi
fi
execute:
how: tmt
adjust:
enabled: false
when: distro == centos-stream or distro == fedora

View File

@ -1,6 +1,6 @@
Name: potrace
Version: 1.16
Release: 15%{?dist}
Release: 16%{?dist}
Summary: Transform bitmaps into vector graphics
# README defines license as GPLv2+
# potrace/potrace-1.16/src/getopt.c is LGPL-2.0-or-later
@ -83,6 +83,9 @@ rm -rf %{buildroot}%{_docdir}/%{name}
%doc potrace.pdf potracelib.pdf
%changelog
* Tue Dec 03 2024 Parag Nemade <pnemade AT redhat DOT com> - 1.16-16
- Resolves: RHEL-60823, Move potrace-devel to CRB repository
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.16-15
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018

5
tests/main.fmf Normal file
View File

@ -0,0 +1,5 @@
test: ./runtests.sh
duration: 10m
framework: beakerlib
require:
- potrace

29
tests/runtests.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "cp test.pbm $tmp/"
rlRun "pushd $tmp"
rlRun "set -o pipefail"
rlPhaseEnd
rlPhaseStartTest
rlRun "potrace --help" 0 "Check help message"
rlRun "potrace --version" 0 "Check version message"
rlRun "potrace --license" 0 "Check license message"
rlRun "potrace test.pbm" 0 "Check basic functionality"
rlRun "potrace test.pbm -b svg" 0 "Check svg"
rlRun "potrace test.pbm -b pdf" 0 "Check pdf"
rlRun "potrace test.pbm -b eps" 0 "Check eps"
rlRun "potrace test.pbm -b pgm" 0 "Check pgm"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd

29
tests/test.eps Normal file
View File

@ -0,0 +1,29 @@
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: potrace 1.16, written by Peter Selinger 2001-2019
%%LanguageLevel: 2
%%BoundingBox: 0 0 100 100
%%HiResBoundingBox: 0 0 100.000000 100.000000
%%Pages: 1
%%EndComments
%%Page: 1 1
currentfile /ASCII85Decode filter /LZWDecode filter cvx exec
J/lc\@jia36p6os-K?5!aCR.L@HM5X8G7'_Rgk/$,T)ho0q6GnR,f*WHT4QlU@Ws&Afqrs$
:4h$OrH%kbbgS4!L3(`1eQ&KZQ[iV+;tM3o.t+1fh)fNBp@jbL5ABuL^n&r&:iPI1X[d01S
B860V)?A'!l<?@S77O%&^Z/!;^Cc#RV3NEU:PO3R;@#M5C8<D3^M"@bK#+]dl+7bB0//8@f
ouSW=?GKWNIG)i-*M$Pncq%^T:1!tg80>\#[^[5S,F`,RiEdUm)'!9V6VQfVh2!Oi"^FZD_
tLA>-$.69@Rbe1QK9<"`#a$o//G)K+5W9[0^m>S-jHd/-M)BID+V54`#`VuqKLP9['qWD$'
/X,2$/cg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