From 4516fd6bf101068b16926749ff079252843c825f Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Fri, 1 Mar 2024 07:25:54 -0700 Subject: [PATCH 01/10] initial version --- .gitignore | 1 + libmaa.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 libmaa.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..152b8c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libmaa-1.4.7.tar.gz diff --git a/libmaa.spec b/libmaa.spec new file mode 100644 index 0000000..cb5bc88 --- /dev/null +++ b/libmaa.spec @@ -0,0 +1,59 @@ +Name: libmaa +Version: 1.4.7 +Release: 1%{?dist} +Summary: Library that implements some basic data structures and algorithms +URL: https://github.com/cheusov/libmaa +License: MIT + +Source0: https://github.com/cheusov/libmaa/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: mk-configure +BuildRequires: gcc +BuildRequires: pkgconfig(zlib) + +%description +This library implements some basic data structures and algorithms such +as command line arguments handling, base26 and base64 routines, bits +manipulation, debugging and error reporting routines, hash tables, +sets, lists, stacks, skip lists, string pool routines, memory +management routines, parsing routines, process management routines, +source code management routines and timer support. + +%package devel +Summary: Development files for libmaa +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files (Headers, etc) for libmaa. + +%global env \ + export MKSTATICLIB=no \ + export NOSUBDIR=doc + +%prep +%autosetup -p1 + +%build +%{env} +%mkcmake + +%install +%{env} +%mkcmake install DESTDIR=%{buildroot} +chmod +x %{buildroot}/%{_libdir}/*.so.* + +%check +%mkcmake test + +%files +%license doc/LICENSE +%doc README doc/NEWS +%{_libdir}/libmaa.so.4{,.*} + +%files devel +%{_includedir}/maa* +%{_libdir}/libmaa.so + +%changelog +* Sun Jan 7 2024 Carlos Rodriguez-Fernandez - 1.4.7-1 +- First release diff --git a/sources b/sources new file mode 100644 index 0000000..f62ac99 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libmaa-1.4.7.tar.gz) = c85687e320ec0ec4f5acccaa56b75e42566465c35b58fb21310ee193e63475e3765dbfb43ef961c31032070d821d5aab17e856c89bc86a927053cf075afb3d99 From 3574c1aefe8ca5083583a266c4901ca4f54eb330 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Fri, 1 Mar 2024 07:40:10 -0700 Subject: [PATCH 02/10] setup gating.yaml --- gating.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gating.yaml 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} From 9c3a9c4de1f3d1c7e951e1db9328832a353abb61 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Sat, 2 Mar 2024 08:06:13 -0700 Subject: [PATCH 03/10] setup smoke tests --- .fmf/version | 1 + plans/main.fmf | 5 +++++ tests/data/main.c | 14 ++++++++++++++ tests/main.fmf | 4 ++++ tests/test.sh | 22 ++++++++++++++++++++++ 5 files changed, 46 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/main.fmf create mode 100644 tests/data/main.c create mode 100644 tests/main.fmf create mode 100755 tests/test.sh 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/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..87f1f13 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,5 @@ +summary: smoke tests +discover: + how: fmf +execute: + how: tmt diff --git a/tests/data/main.c b/tests/data/main.c new file mode 100644 index 0000000..a1287aa --- /dev/null +++ b/tests/data/main.c @@ -0,0 +1,14 @@ +#include +#include +#include +#include + +int main(int argc, char** argv) +{ + maa_init(argv[0]); + + printf("major version: %d\n", maa_version_major()); + + maa_shutdown(); + return 0; +} diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..a11c387 --- /dev/null +++ b/tests/main.fmf @@ -0,0 +1,4 @@ +summary: smoke tests +test: ./test.sh +framework: beakerlib +require: [gcc,libmaa-devel] diff --git a/tests/test.sh b/tests/test.sh new file mode 100755 index 0000000..73ae646 --- /dev/null +++ b/tests/test.sh @@ -0,0 +1,22 @@ +#!/bin/bash +. /usr/share/beakerlib/beakerlib.sh || exit 1 + + +rlJournalStart + rlPhaseStartSetup + rlRun "pushd data/" + rlPhaseEnd + + rlPhaseStartTest + rlRun "gcc -lmaa -Wall -g3 -o main main.c" + rlPhaseEnd + + rlPhaseStartTest + rlRun "./main" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "rm main" + rlRun "popd" + rlPhaseEnd +rlJournalEnd From ce80e06239181b270942702882d47bef94249c54 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Sat, 30 Mar 2024 22:08:26 -0700 Subject: [PATCH 04/10] initial commit --- gating.yaml | 19 +++++++++++++++ libmaa.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++ plans/main.fmf | 5 ++++ sources | 1 + tests/data/main.c | 14 +++++++++++ tests/main.fmf | 4 ++++ tests/test.sh | 22 ++++++++++++++++++ 7 files changed, 124 insertions(+) create mode 100644 gating.yaml create mode 100644 libmaa.spec create mode 100644 plans/main.fmf create mode 100644 sources create mode 100644 tests/data/main.c create mode 100644 tests/main.fmf create mode 100755 tests/test.sh 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/libmaa.spec b/libmaa.spec new file mode 100644 index 0000000..cb5bc88 --- /dev/null +++ b/libmaa.spec @@ -0,0 +1,59 @@ +Name: libmaa +Version: 1.4.7 +Release: 1%{?dist} +Summary: Library that implements some basic data structures and algorithms +URL: https://github.com/cheusov/libmaa +License: MIT + +Source0: https://github.com/cheusov/libmaa/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: mk-configure +BuildRequires: gcc +BuildRequires: pkgconfig(zlib) + +%description +This library implements some basic data structures and algorithms such +as command line arguments handling, base26 and base64 routines, bits +manipulation, debugging and error reporting routines, hash tables, +sets, lists, stacks, skip lists, string pool routines, memory +management routines, parsing routines, process management routines, +source code management routines and timer support. + +%package devel +Summary: Development files for libmaa +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files (Headers, etc) for libmaa. + +%global env \ + export MKSTATICLIB=no \ + export NOSUBDIR=doc + +%prep +%autosetup -p1 + +%build +%{env} +%mkcmake + +%install +%{env} +%mkcmake install DESTDIR=%{buildroot} +chmod +x %{buildroot}/%{_libdir}/*.so.* + +%check +%mkcmake test + +%files +%license doc/LICENSE +%doc README doc/NEWS +%{_libdir}/libmaa.so.4{,.*} + +%files devel +%{_includedir}/maa* +%{_libdir}/libmaa.so + +%changelog +* Sun Jan 7 2024 Carlos Rodriguez-Fernandez - 1.4.7-1 +- First release diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..87f1f13 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,5 @@ +summary: smoke tests +discover: + how: fmf +execute: + how: tmt diff --git a/sources b/sources new file mode 100644 index 0000000..f62ac99 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libmaa-1.4.7.tar.gz) = c85687e320ec0ec4f5acccaa56b75e42566465c35b58fb21310ee193e63475e3765dbfb43ef961c31032070d821d5aab17e856c89bc86a927053cf075afb3d99 diff --git a/tests/data/main.c b/tests/data/main.c new file mode 100644 index 0000000..a1287aa --- /dev/null +++ b/tests/data/main.c @@ -0,0 +1,14 @@ +#include +#include +#include +#include + +int main(int argc, char** argv) +{ + maa_init(argv[0]); + + printf("major version: %d\n", maa_version_major()); + + maa_shutdown(); + return 0; +} diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..a11c387 --- /dev/null +++ b/tests/main.fmf @@ -0,0 +1,4 @@ +summary: smoke tests +test: ./test.sh +framework: beakerlib +require: [gcc,libmaa-devel] diff --git a/tests/test.sh b/tests/test.sh new file mode 100755 index 0000000..73ae646 --- /dev/null +++ b/tests/test.sh @@ -0,0 +1,22 @@ +#!/bin/bash +. /usr/share/beakerlib/beakerlib.sh || exit 1 + + +rlJournalStart + rlPhaseStartSetup + rlRun "pushd data/" + rlPhaseEnd + + rlPhaseStartTest + rlRun "gcc -lmaa -Wall -g3 -o main main.c" + rlPhaseEnd + + rlPhaseStartTest + rlRun "./main" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "rm main" + rlRun "popd" + rlPhaseEnd +rlJournalEnd From ec2c651ed064daaebf545a6068683e426a347874 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Mon, 1 Apr 2024 10:08:13 -0700 Subject: [PATCH 05/10] fix missing .fmf file --- .fmf/version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .fmf/version diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 From c1ef5f7c857a791d73df4400ccd534ba2a9a55f4 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Tue, 18 Jun 2024 08:49:28 -0700 Subject: [PATCH 06/10] update to 1.5.1 --- .gitignore | 1 + libmaa.spec | 4 +++- sources | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 152b8c1..bfd935c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /libmaa-1.4.7.tar.gz +/libmaa-1.5.1.tar.gz diff --git a/libmaa.spec b/libmaa.spec index cb5bc88..c5dadd6 100644 --- a/libmaa.spec +++ b/libmaa.spec @@ -1,5 +1,5 @@ Name: libmaa -Version: 1.4.7 +Version: 1.5.1 Release: 1%{?dist} Summary: Library that implements some basic data structures and algorithms URL: https://github.com/cheusov/libmaa @@ -55,5 +55,7 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %{_libdir}/libmaa.so %changelog +* Mon Jun 17 2024 Carlos Rodriguez-Fernandez - 1.5.1-1 +- Update to 1.5.1, closes fedora#2283998 * Sun Jan 7 2024 Carlos Rodriguez-Fernandez - 1.4.7-1 - First release diff --git a/sources b/sources index f62ac99..39919c7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libmaa-1.4.7.tar.gz) = c85687e320ec0ec4f5acccaa56b75e42566465c35b58fb21310ee193e63475e3765dbfb43ef961c31032070d821d5aab17e856c89bc86a927053cf075afb3d99 +SHA512 (libmaa-1.5.1.tar.gz) = fd3f8ce65ab51bfe924d84cd3acf90c472948826ac042783fea7a1df227b482083620bb45b9d56453c4dfa91bfe2d1e98c9f1010aaaa8ea714445bd63647bb14 From 172a28ed9ec676a329b36fab38b628dedfa4b39f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 14:23:12 +0000 Subject: [PATCH 07/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- libmaa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libmaa.spec b/libmaa.spec index c5dadd6..c3ba5fb 100644 --- a/libmaa.spec +++ b/libmaa.spec @@ -1,6 +1,6 @@ Name: libmaa Version: 1.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library that implements some basic data structures and algorithms URL: https://github.com/cheusov/libmaa License: MIT @@ -55,6 +55,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %{_libdir}/libmaa.so %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Mon Jun 17 2024 Carlos Rodriguez-Fernandez - 1.5.1-1 - Update to 1.5.1, closes fedora#2283998 * Sun Jan 7 2024 Carlos Rodriguez-Fernandez - 1.4.7-1 From 30c0b3fbd3f4c7f96ac10e5200ceca7db60d4a2a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 11:51:01 +0000 Subject: [PATCH 08/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- libmaa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libmaa.spec b/libmaa.spec index c3ba5fb..b36d2ab 100644 --- a/libmaa.spec +++ b/libmaa.spec @@ -1,6 +1,6 @@ Name: libmaa Version: 1.5.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Library that implements some basic data structures and algorithms URL: https://github.com/cheusov/libmaa License: MIT @@ -55,6 +55,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %{_libdir}/libmaa.so %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 1.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Jul 18 2024 Fedora Release Engineering - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From e8afc28554d82798985d7262c6eb834f0dcb1bf2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 20 Jan 2025 07:32:07 +0000 Subject: [PATCH 09/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- libmaa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libmaa.spec b/libmaa.spec index b36d2ab..2d21765 100644 --- a/libmaa.spec +++ b/libmaa.spec @@ -1,6 +1,6 @@ Name: libmaa Version: 1.5.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Library that implements some basic data structures and algorithms URL: https://github.com/cheusov/libmaa License: MIT @@ -55,6 +55,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %{_libdir}/libmaa.so %changelog +* Mon Jan 20 2025 Fedora Release Engineering - 1.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Jan 17 2025 Fedora Release Engineering - 1.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 369cb8bfa559e950ca8ab9efdb1218d6408e0760 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 19:57:18 +0000 Subject: [PATCH 10/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- libmaa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libmaa.spec b/libmaa.spec index 2d21765..4035ff9 100644 --- a/libmaa.spec +++ b/libmaa.spec @@ -1,6 +1,6 @@ Name: libmaa Version: 1.5.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Library that implements some basic data structures and algorithms URL: https://github.com/cheusov/libmaa License: MIT @@ -55,6 +55,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %{_libdir}/libmaa.so %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 1.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Jan 20 2025 Fedora Release Engineering - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild