Update to 0.2.42

epel10^2^2
Xavier Bachelot 3 months ago
parent 71ecef088a
commit 580382233d

1
.gitignore vendored

@ -1 +1,2 @@
zvbi-0.2.33.tar.bz2 zvbi-0.2.33.tar.bz2
/zvbi-0.2.42.tar.gz

@ -1 +1 @@
95e53eb208c65ba6667fd4341455fa27 zvbi-0.2.35.tar.bz2 SHA512 (zvbi-0.2.42.tar.gz) = 65ebbab09d0180f62c2016fe3462786a6f89d0ee414f9983d1a89582bff0c17e58fcb8f45690add0314bd3b7d2de86f82e97fd49c93842e0a4f294b2b5508687

@ -0,0 +1,51 @@
From 429cf9337588d6e028bd1dc4633953b4eff09597 Mon Sep 17 00:00:00 2001
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
Date: Wed, 13 Mar 2024 17:42:18 +0200
Subject: [PATCH] configure.ac: Move sincos function check to AC_CHECK_FUNCS
---
configure.ac | 24 +-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)
diff --git a/configure.ac b/configure.ac
index ba6f385..476fd69 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,7 @@ AC_CHECK_FUNCS([alarm dup2 gethostbyaddr gethostbyname getopt_long gettimeofday
inet_ntoa localtime_r memmove memset mkdir modf munmap
nl_langinfo putenv select setenv setlocale socket strcasecmp
strchr strdup strerror strncasecmp strndup strrchr strstr
- strtol strtoul tzset strptime getaddrinfo])
+ strtol strtoul tzset strptime getaddrinfo sincos])
AM_CONDITIONAL(HAVE_STRPTIME, [test "x$HAVE_STRPTIME" = xyes])
@@ -112,28 +112,6 @@ dnl autoconf 2.71 required additional quotations and usages of "AC_LANG_SOURCE".
dnl "Noteworthy changes in autoconf version 2.66 through 2.68"
dnl <https://autotools.info/forwardporting/autoconf.html>
-dnl sincos() is a GNU extension (a macro, not a function).
-dnl If not present we use a replacement.
-AC_MSG_CHECKING([for sincos])
-AC_LINK_IFELSE([AC_LANG_SOURCE([
-#include <stdio.h>
-#include <math.h>
-int main (void) {
-double s, c;
-/* Make sure the compiler does not optimize sincos() away
- so the linker can confirm its availability. */
-scanf ("%f", &s);
-sincos (s, &s, &c);
-printf ("%f %f", s, c);
-return 0;
-}
-])],[
- AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_SINCOS, 1, [Define if the sincos() function is available])
-],[
- AC_MSG_RESULT([no])
-])
-
dnl log2() is a GNU extension (a macro, not a function).
dnl If not present we use a replacement.
AC_MSG_CHECKING([for log2])

@ -2,25 +2,31 @@
%define catalogue %{_sysconfdir}/X11/fontpath.d %define catalogue %{_sysconfdir}/X11/fontpath.d
Name: zvbi Name: zvbi
Version: 0.2.35 Version: 0.2.42
Release: 23%{?dist} Release: 1%{?dist}
Summary: Raw VBI, Teletext and Closed Caption decoding library Summary: Raw VBI, Teletext and Closed Caption decoding library
License: GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND MIT License: GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND MIT
URL: http://zapping.sourceforge.net/ZVBI/index.html URL: https://github.com/zapping-vbi/zvbi
Source0: http://downloads.sourceforge.net/zapping/%{name}-%{version}.tar.bz2 Source0: https://github.com/zapping-vbi/zvbi/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-0.2.24-tvfonts.patch Patch0: %{name}-0.2.24-tvfonts.patch
Patch1: %{name}-0.2.25-openfix.patch Patch1: %{name}-0.2.25-openfix.patch
# slightly adapted from https://github.com/zapping-vbi/zvbi/commit/ae74ae513714f81b9b8abdb12e1b235d16fad74e.patch
Patch2: zvbi-0.2.42-fix_sincos_declaration.patch
BuildRequires: make BuildRequires: autoconf
BuildRequires: gcc-c++ BuildRequires: automake
BuildRequires: bdftopcf
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: fontconfig BuildRequires: fontconfig
BuildRequires: gettext >= 0.16.1 BuildRequires: gcc-c++
BuildRequires: libpng-devel BuildRequires: gettext-devel
BuildRequires: libICE-devel BuildRequires: libICE-devel
BuildRequires: bdftopcf BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: mkfontdir BuildRequires: mkfontdir
BuildRequires: systemd-units BuildRequires: systemd-units
BuildRequires: tzdata
%description %description
@ -55,9 +61,7 @@ Fonts from zvbi converted for use with X11
%setup -q %setup -q
%patch -P 0 -p1 %patch -P 0 -p1
%patch -P 1 -p1 %patch -P 1 -p1
%patch -P 2 -p1
# Fix character encodings
iconv -f iso8859-1 README -t utf8 > README.conv && /bin/mv -f README.conv README
# systemd service file # systemd service file
cat >zvbid.service <<EOF cat >zvbid.service <<EOF
@ -76,6 +80,7 @@ EOF
%build %build
./autogen.sh
# Note: We don't do --enable-static=no because static libs are needed to build # Note: We don't do --enable-static=no because static libs are needed to build
# x11font during compile time to convert zvbi fonts into x11 fonts. x11font # x11font during compile time to convert zvbi fonts into x11 fonts. x11font
# is thrown away and not installed as it's not useful for anything else # is thrown away and not installed as it's not useful for anything else
@ -84,7 +89,7 @@ EOF
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags} %make_build
# Generate fonts, fonts.alias and fonts.dir # Generate fonts, fonts.alias and fonts.dir
pushd contrib pushd contrib
@ -102,7 +107,7 @@ popd
%install %install
mkdir -p %{buildroot}%{fontdir} mkdir -p %{buildroot}%{fontdir}
make install DESTDIR=%{buildroot} %make_install
%find_lang %{name} %find_lang %{name}
@ -117,6 +122,13 @@ touch %{buildroot}%{fontdir}/fonts.cache-1
mkdir -p %{buildroot}%{catalogue} mkdir -p %{buildroot}%{catalogue}
ln -sf %{fontdir} %{buildroot}%{catalogue}/%{name} ln -sf %{fontdir} %{buildroot}%{catalogue}/%{name}
find %{buildroot}%{_libdir} -name '*.a' -delete
%check
cd test
make check
%post %post
%systemd_post zvbid.service %systemd_post zvbid.service
@ -131,14 +143,14 @@ ln -sf %{fontdir} %{buildroot}%{catalogue}/%{name}
%files -f %{name}.lang %files -f %{name}.lang
%license COPYING.md
%doc AUTHORS BUGS ChangeLog NEWS README.md TODO
%{_bindir}/%{name}* %{_bindir}/%{name}*
%{_sbindir}/zvbid %{_sbindir}/zvbid
%{_unitdir}/zvbid.service %{_unitdir}/zvbid.service
%{_libdir}/*.so.* %{_libdir}/libzvbi.so.0*
%{_mandir}/man1/* %{_libdir}/libzvbi-chains.so.0*
%exclude %{_libdir}/*.a %{_mandir}/man1/zvbi*1*
%exclude %{_libdir}/*.la
%doc AUTHORS BUGS ChangeLog COPYING COPYING.LIB NEWS README TODO
%files devel %files devel
@ -157,6 +169,9 @@ ln -sf %{fontdir} %{buildroot}%{catalogue}/%{name}
%changelog %changelog
* Fri Sep 13 2024 Xavier Bachelot <xavier@bachelot.org> - 0.2.42-1
- Update to 0.2.42
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.35-23 * Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.35-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

Loading…
Cancel
Save