public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libcanlock] epel10.2: initial import (resolves rhbz#2207871)
@ 2026-08-12 21:43 Dominik 'Rathann' Mierzejewski
0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-08-12 21:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libcanlock
Branch : epel10.2
Commit : 05410b104356e662be86cd03f83ffeb35abcf05d
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2024-12-08T13:56:32+01:00
Stats : +122/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/libcanlock/c/05410b104356e662be86cd03f83ffeb35abcf05d?branch=epel10.2
Log:
initial import (resolves rhbz#2207871)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..589dc01
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/libcanlock-*.tar.bz2
diff --git a/libcanlock.spec b/libcanlock.spec
new file mode 100644
index 0000000..dde2d4b
--- /dev/null
+++ b/libcanlock.spec
@@ -0,0 +1,120 @@
+Name: libcanlock
+Version: 3.3.1
+Release: %autorelease
+Summary: Create and verify RFC 8315 Netnews Cancel-Locks
+# BSD licensed:
+# include/base64.h
+# include/sha.h
+# include/sha-private.h
+# src/base64.c
+# src/hmac.c
+# src/sha1.c
+# src/sha224-256.c
+# src/sha384-512.c
+# src/usha.c
+# test/hkdf.c
+# test/shatest.c
+# ICU licensed:
+# include/canlock-private.h
+# include/canlock.h
+# src/canlock.c
+# src/secret.c
+# util/canlock.c
+# hp/include/hfp_lexer.h
+# hp/include/hfp_parser_external.h
+# hp/include/package_name.h
+# hp/src/parser.c
+# hp/src/unfold.c
+# hp/util/canlock-hfp.c
+# hp/util/canlock-mhp.c
+# hp/util/hfp_lexer.l
+# hp/util/hfp_parser.y
+# hp/util/package_name.c
+License: BSD-3-Clause AND ICU
+URL: https://micha.freeshell.org/libcanlock
+Source0: %{url}/src/%{name}-%{version}.tar.bz2
+BuildRequires: byacc
+BuildRequires: dos2unix
+BuildRequires: flex
+BuildRequires: gcc
+BuildRequires: grep
+BuildRequires: make
+BuildRequires: sed
+
+%description
+A library for creating and verifying RFC 8315 Netnews Cancel-Locks.
+This implementation uses the recommended algorithm from Section 4 with HMAC
+based on the same hash function as <scheme>.
+
+%package devel
+Summary: Development files for libcanlock
+Requires: libcanlock%{?_isa} = %{version}-%{release}
+
+%description devel
+This package holds the development files for libcanlock.
+
+%package -n canlock
+Summary: Command line utilities for Netnews Cancel-Lock authentication scheme
+Requires: libcanlock%{?_isa} = %{version}-%{release}
+
+%description -n canlock
+Command line utilities for Netnews Cancel-Lock authentication scheme.
+
+canlock can be used to create <c-lock> and <c-key> elements according to
+RFC 8315. The secret data is read from standard input (using EOF for
+termination).
+
+canlock also provides a verify interface with the -c option. An external
+header parser is required to extract the <c-key> and <c-lock> elements
+from the article headers. The command line utilities canlock-mhp(1) and
+canlock-hfp(1) can be used for this purpose.
+
+%prep
+%autosetup
+dos2unix -k hp/examples/{supersede,target}.txt
+cp -p hp/COPYING COPYING.hp
+
+%build
+%configure --enable-pc-files
+%make_build
+
+%install
+%make_install
+rm -v %{buildroot}%{_libdir}/libcanlock{,-hp}.a
+
+%check
+%make_build check
+
+%files
+%doc ChangeLog README doc/sec_review.txt
+%license COPYING COPYING.hp
+%{_libdir}/libcanlock.so.3{,.*}
+%{_libdir}/libcanlock-hp.so.3{,.*}
+
+%files devel
+%doc TODO examples/* hp/examples/*
+%{_libdir}/libcanlock.so
+%{_libdir}/libcanlock-hp.so
+%{_includedir}/libcanlock-3/
+%{_libdir}/pkgconfig/libcanlock-3.pc
+%{_libdir}/pkgconfig/libcanlock-hp-3.pc
+%{_mandir}/man3/cl_clear_secret.3*
+%{_mandir}/man3/cl_get_key.3*
+%{_mandir}/man3/cl_get_lock.3*
+%{_mandir}/man3/cl_hp_get_field.3*
+%{_mandir}/man3/cl_hp_parse_field.3*
+%{_mandir}/man3/cl_hp_unfold_field.3*
+%{_mandir}/man3/cl_split.3*
+%{_mandir}/man3/cl_verify.3*
+%{_mandir}/man3/cl_verify_multi.3*
+
+%files -n canlock
+%{_bindir}/canlock
+%{_bindir}/canlock-hfp
+%{_bindir}/canlock-mhp
+%{_mandir}/man1/canlock.1*
+%{_mandir}/man1/canlock-hfp.1*
+%{_mandir}/man1/canlock-mhp.1*
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..475cd5a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libcanlock-3.3.1.tar.bz2) = 31ce1b46d38ab673607952fa6885da5a5b6a324e1ca791ae54cdd180c5e8809562c72443073f8a0cbdce6dc0f54742fd0845e46f7b58f0ef63a9207b51b2b2cc
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-12 21:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12 21:43 [rpms/libcanlock] epel10.2: initial import (resolves rhbz#2207871) Dominik 'Rathann' Mierzejewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox