public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/janus] rawhide: chore: fix private module SONAME filters, HTTP crypto-policy, and spec cruft
@ 2026-12-01 21:04
0 siblings, 0 replies; only message in thread
From: @ 2026-12-01 21:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/janus
Branch : rawhide
Commit : 4fbe115b0a0b3b797af463bc85cf7423d17bf9dd
Author : Rénich Bon Ćirić <renich@evalinux.com>
Date : 2026-12-01T15:04:17-06:00
Stats : +18/-22 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/janus/c/4fbe115b0a0b3b797af463bc85cf7423d17bf9dd?branch=rawhide
Log:
chore: fix private module SONAME filters, HTTP crypto-policy, and spec cruft
- Consolidate __provides_exclude_from below Name: so %{name} expands cleanly
and stops all 24 private module subpackages from leaking libjanus_*.so.2()
into global RPM Provides
- Replace broken __requires_exclude_from lines with __requires_exclude for
libjanus_*.so.* so self-requires are dropped while preserving external
shared library Requires (libmicrohttpd, libsofia-sip-ua, libopus, etc.)
- Add janus-http-crypto-policy.patch to default libmicrohttpd GnuTLS cipher
priorities to "@SYSTEM" instead of "NORMAL" per Fedora crypto-policies
- Remove dead RHEL 8 ffmpeg-devel conditional and empty %sysusers_create_compat
%pre scriptlet (RPM natively handles %{_sysusersdir}/janus.conf)
Assisted-by: Gemini <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@evalinux.com>
---
diff --git a/janus-http-crypto-policy.patch b/janus-http-crypto-policy.patch
new file mode 100644
index 0000000..fe3e0aa
--- /dev/null
+++ b/janus-http-crypto-policy.patch
@@ -0,0 +1,11 @@
+--- a/src/transports/janus_http.c
++++ b/src/transports/janus_http.c
+@@ -852,7 +852,7 @@
+ item = janus_config_get(config, config_certs, janus_config_type_item, "cert_pwd");
+ if(item && item->value)
+ password = (char *)item->value;
+- const char *ciphers = "NORMAL";
++ const char *ciphers = "@SYSTEM";
+ item = janus_config_get(config, config_certs, janus_config_type_item, "ciphers");
+ if(item && item->value)
+ ciphers = item->value;
diff --git a/janus.spec b/janus.spec
index bc71129..48f31ac 100644
--- a/janus.spec
+++ b/janus.spec
@@ -1,13 +1,3 @@
-%global __provides_exclude_from %{_libdir}/%{name}/events/.*\\.so$
-%global __provides_exclude_from %{_libdir}/%{name}/loggers/.*\\.so$
-%global __provides_exclude_from %{_libdir}/%{name}/plugins/.*\\.so$
-%global __provides_exclude_from %{_libdir}/%{name}/transports/.*\\.so$
-
-%global __requires_exclude_from %{_libdir}/%{name}/events/.*\\.so$
-%global __requires_exclude_from %{_libdir}/%{name}/loggers/.*\\.so$
-%global __requires_exclude_from %{_libdir}/%{name}/plugins/.*\\.so$
-%global __requires_exclude_from %{_libdir}/%{name}/transports/.*\\.so$
-
%global api_version_major 2
%global api_version_minor 0
%global api_version_patch 14
@@ -18,14 +8,20 @@ Version: 1.4.5
Release: %autorelease
Summary: An open source WebRTC server designed and developed by Meetecho
+# Exclude private module SONAMEs from global Provides and self-Requires
+# while preserving external shared library Requires on module subpackages.
+%global __provides_exclude_from %{?__provides_exclude_from:%{__provides_exclude_from}|}^%{_libdir}/%{name}/(events|loggers|plugins|transports)/.*\\.so.*$
+%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^libjanus_.*\\.so.*$
+
License: GPL-3.0-only AND MIT AND BSD-3-Clause
URL: https://janus.conf.meetecho.com/
Source0: https://github.com/meetecho/%{name}-gateway/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.service
Source2: %{name}.sysusers
-# this patch changes the use of TLS ciphers to use the system's default
+# Use Fedora system-wide crypto-policies by default for DTLS and HTTPS transports
Patch0: janus-dtls.patch
+Patch1: janus-http-crypto-policy.patch
BuildRequires: autoconf
BuildRequires: automake
@@ -34,16 +30,9 @@ BuildRequires: duktape-devel
BuildRequires: gcc
BuildRequires: glib2-devel
BuildRequires: jansson-devel
-
-%if 0%{?rhel} == 8
-BuildRequires: ffmpeg-devel
-%endif
-
-%if 0%{?fedora} || 0%{?rhel} > 8
BuildRequires: libavcodec-free-devel
BuildRequires: libavformat-free-devel
BuildRequires: libavutil-free-devel
-%endif
BuildRequires: libconfig-devel
BuildRequires: libcurl-devel
@@ -343,10 +332,6 @@ rm -fr %{buildroot}%{_datadir}/%{name}/javascript
find %{buildroot} -type f -iname '*.la' -delete
-%pre
-%sysusers_create_compat %{SOURCE2}
-
-
%post
%systemd_post %{name}.service
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 21:04 [rpms/janus] rawhide: chore: fix private module SONAME filters, HTTP crypto-policy, and spec cruft
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox