Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Fedora Release Engineering
369cb8bfa5 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 19:57:18 +00:00
Fedora Release Engineering
e8afc28554 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-20 07:32:07 +00:00
Fedora Release Engineering
30c0b3fbd3 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 11:51:01 +00:00
Fedora Release Engineering
172a28ed9e Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 14:23:12 +00:00
Carlos Rodriguez-Fernandez
c1ef5f7c85
update to 1.5.1 2024-06-18 08:49:28 -07:00
Carlos Rodriguez-Fernandez
9c3a9c4de1
setup smoke tests 2024-03-02 08:06:13 -07:00
Carlos Rodriguez-Fernandez
3574c1aefe
setup gating.yaml 2024-03-01 07:40:10 -07:00
Carlos Rodriguez-Fernandez
4516fd6bf1
initial version 2024-03-01 07:25:54 -07:00
9 changed files with 141 additions and 0 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/libmaa-1.4.7.tar.gz
/libmaa-1.5.1.tar.gz

19
gating.yaml Normal file
View file

@ -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}

73
libmaa.spec Normal file
View file

@ -0,0 +1,73 @@
Name: libmaa
Version: 1.5.1
Release: 5%{?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
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon Jan 20 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jun 17 2024 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 1.5.1-1
- Update to 1.5.1, closes fedora#2283998
* Sun Jan 7 2024 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 1.4.7-1
- First release

5
plans/main.fmf Normal file
View file

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

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (libmaa-1.5.1.tar.gz) = fd3f8ce65ab51bfe924d84cd3acf90c472948826ac042783fea7a1df227b482083620bb45b9d56453c4dfa91bfe2d1e98c9f1010aaaa8ea714445bd63647bb14

14
tests/data/main.c Normal file
View file

@ -0,0 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <maa.h>
int main(int argc, char** argv)
{
maa_init(argv[0]);
printf("major version: %d\n", maa_version_major());
maa_shutdown();
return 0;
}

4
tests/main.fmf Normal file
View file

@ -0,0 +1,4 @@
summary: smoke tests
test: ./test.sh
framework: beakerlib
require: [gcc,libmaa-devel]

22
tests/test.sh Executable file
View file

@ -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