Compare commits
54 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5539e087c1 | ||
|
|
fcfc7f73c0 | ||
|
|
90520da929 | ||
|
|
5f0ef07e61 | ||
|
|
364667d071 | ||
|
|
6af3948a1e | ||
|
|
09b65267ec | ||
|
|
445fad2a08 | ||
|
|
44737a4de3 | ||
|
|
e0b4184086 | ||
|
|
efb101deb2 | ||
|
|
496626024f | ||
|
|
8a7f5f3cff | ||
|
|
d18ea31e7a | ||
|
|
c72181f987 | ||
|
|
ea3dd8d395 | ||
|
|
e4cf0a3547 | ||
|
|
bb1260368d | ||
|
|
f4ea785147 | ||
|
|
4b091097da | ||
|
|
7261b17c4f | ||
|
|
0d20a2cee9 | ||
|
|
af40cc698f | ||
|
|
ab9e269d8c | ||
|
|
f8017eb993 | ||
|
|
5a9d90ebe9 | ||
|
|
aebfe0f362 | ||
| 34c6498d57 | |||
|
487aa2a55f |
|||
|
|
5995ae4dd5 | ||
|
|
cd97179701 | ||
|
|
8574b3a8fa | ||
|
|
c672668122 | ||
|
|
d2a451213d | ||
|
|
b5b452bdbf | ||
|
|
4980bd5977 | ||
|
|
8a475fd3a5 | ||
|
|
b714d2044d | ||
|
|
7b9d75b9dd | ||
|
|
b57871c2d4 | ||
|
|
c6b4a45600 | ||
|
|
84786bf523 | ||
|
|
9d484fcf70 | ||
|
|
c7f1e06c37 | ||
|
|
fe0fef6a6a | ||
|
|
c5431e99f2 | ||
|
|
af19002a66 | ||
|
|
3871b59e2b | ||
|
|
71907b01bd | ||
|
|
167bb34f6f | ||
|
|
35ae9c7bd1 | ||
| 888273a32b | |||
|
|
9e9efb6ab4 | ||
|
|
1572a1c265 |
4 changed files with 191 additions and 39 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -7,3 +7,6 @@ xawtv-3.98.tar.bz2
|
|||
/xawtv-3.100.tar.bz2
|
||||
/xawtv-3.101.tar.bz2
|
||||
/xawtv-3.103.tar.bz2
|
||||
/xawtv-3.105.tar.bz2
|
||||
/xawtv-3.106.tar.bz2
|
||||
/xawtv-3.107.tar.bz2
|
||||
|
|
|
|||
28
xawtv-3.107-XawListChange.patch
Normal file
28
xawtv-3.107-XawListChange.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#
|
||||
# Since https://gitlab.freedesktop.org/xorg/lib/libxaw/-/commit/197e9d055f3cd351
|
||||
# XawListChange() want the second argument to be (const char **) instead of (char **).
|
||||
#
|
||||
# To avoid compiler issues when -Wcompatible-pointer-types just cast it to (void *) .
|
||||
#
|
||||
|
||||
diff -Nrup xawtv-3.107/x11/propwatch.c xawtv-3.107-OK/x11/propwatch.c
|
||||
--- xawtv-3.107/x11/propwatch.c 2020-05-16 02:32:25.000000000 +0300
|
||||
+++ xawtv-3.107-OK/x11/propwatch.c 2024-01-30 04:16:55.411559253 +0300
|
||||
@@ -316,7 +316,7 @@ RebuildList(void)
|
||||
for (i=0, this=watchlist; this!=NULL; i++, this=this->next)
|
||||
str_list[i] = this->text;
|
||||
qsort(str_list,str_count,sizeof(char*),cmp);
|
||||
- XawListChange(bl,str_count ? str_list : &empty,
|
||||
+ XawListChange(bl,(void *)(str_count ? str_list : &empty),
|
||||
str_count ? str_count : 1,1000,1);
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@ ProcessPropertyChange(Display *dpy, XEve
|
||||
AddWatch(dpy,event->xproperty.window, i);
|
||||
else {
|
||||
Update(dpy,event->xproperty.window,event->xproperty.atom);
|
||||
- XawListChange(bl,str_list,str_count,1000,1);
|
||||
+ XawListChange(bl,(void *)str_list,str_count,1000,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
47
xawtv-strsignal.patch
Normal file
47
xawtv-strsignal.patch
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
diff --git a/console/fbtools.c b/console/fbtools.c
|
||||
index 9f876df..07739ff 100644
|
||||
--- a/console/fbtools.c
|
||||
+++ b/console/fbtools.c
|
||||
@@ -520,6 +520,6 @@ fb_catch_exit_signals(void)
|
||||
|
||||
/* cleanup */
|
||||
fb_cleanup();
|
||||
- fprintf(stderr,"Oops: %s\n",sys_siglist[termsig]);
|
||||
+ fprintf(stderr,"Oops: %s\n",strsignal(termsig));
|
||||
exit(42);
|
||||
}
|
||||
diff --git a/console/record.c b/console/record.c
|
||||
index 685221b..90f0c85 100644
|
||||
--- a/console/record.c
|
||||
+++ b/console/record.c
|
||||
@@ -429,7 +429,7 @@ ctrlc(int signal)
|
||||
{
|
||||
if (verbose)
|
||||
fprintf(stderr,"\n%s - exiting\n",
|
||||
- sys_siglist[signal]);
|
||||
+ strsignal(signal));
|
||||
stop = 1;
|
||||
}
|
||||
|
||||
diff --git a/x11/rootv.c b/x11/rootv.c
|
||||
index 60a8406..4bf458b 100644
|
||||
--- a/x11/rootv.c
|
||||
+++ b/x11/rootv.c
|
||||
@@ -133,7 +133,7 @@ catch_sig(int signal)
|
||||
termsig = signal;
|
||||
if (verbose)
|
||||
fprintf(stderr,"received signal %d [%s]\n",
|
||||
- termsig,sys_siglist[termsig]);
|
||||
+ termsig,strsignal(termsig));
|
||||
}
|
||||
|
||||
static void usage(FILE *fp)
|
||||
@@ -422,7 +422,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
if (verbose && termsig)
|
||||
fprintf(stderr,"exiting on signal %d [%s]\n",
|
||||
- termsig,sys_siglist[termsig]);
|
||||
+ termsig,strsignal(termsig));
|
||||
if (do_mute && have_mute)
|
||||
XvSetPortAttribute(dpy,port,XV_MUTE,1);
|
||||
XvStopVideo(dpy,port,win);
|
||||
152
xawtv.spec
152
xawtv.spec
|
|
@ -3,13 +3,17 @@
|
|||
Summary: TV applications for video4linux compliant devices
|
||||
Name: xawtv
|
||||
Version: 3.107
|
||||
Release: 1%{?dist}
|
||||
Group: Applications/Multimedia
|
||||
License: GPLv2+
|
||||
Release: 18%{?dist}
|
||||
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||
License: GPL-2.0-or-later
|
||||
URL: http://linuxtv.org/wiki/index.php/Xawtv
|
||||
|
||||
Source0: http://linuxtv.org/downloads/xawtv/%{name}-%{version}.tar.bz2
|
||||
Patch0: xawtv-strsignal.patch
|
||||
Patch1: xawtv-3.107-XawListChange.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: mesa-libGL-devel, libXaw-devel, libXext-devel
|
||||
BuildRequires: libXft-devel, libXinerama-devel
|
||||
BuildRequires: libXpm-devel, libXrandr-devel, libXt-devel
|
||||
|
|
@ -26,8 +30,9 @@ BuildRequires: zvbi-devel, aalib-devel
|
|||
BuildRequires: gpm-devel, slang-devel
|
||||
BuildRequires: ImageMagick desktop-file-utils libappstream-glib
|
||||
BuildRequires: libv4l-devel
|
||||
BuildRequires: perl-interpreter
|
||||
|
||||
Requires: usermode xorg-x11-fonts-misc hicolor-icon-theme
|
||||
Requires: polkit xorg-x11-fonts-misc hicolor-icon-theme
|
||||
|
||||
%description
|
||||
Xawtv is a simple xaw-based TV program which uses the bttv driver or
|
||||
|
|
@ -55,9 +60,11 @@ which support teletext.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P0 -p1
|
||||
%patch -P1 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Wno-pointer-sign"
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Wno-pointer-sign -fcommon"
|
||||
%configure %{!?_with_quicktime: --disable-quicktime}
|
||||
make %{?_smp_mflags} verbose=yes
|
||||
|
||||
|
|
@ -86,59 +93,58 @@ done
|
|||
|
||||
# v4l-conf stuff
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sbindir} \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/pam.d \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps \
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libexecdir} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions
|
||||
|
||||
cat >v4l-conf.pam <<!
|
||||
#%%PAM-1.0
|
||||
auth sufficient pam_rootok.so
|
||||
auth required pam_console.so
|
||||
account required pam_permit.so
|
||||
session required pam_permit.so
|
||||
session optional pam_xauth.so
|
||||
!
|
||||
install -m 0644 v4l-conf.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/v4l-conf
|
||||
mv $RPM_BUILD_ROOT%{_bindir}/v4l-conf $RPM_BUILD_ROOT%{_libexecdir}/
|
||||
|
||||
cat >v4l-conf.apps <<!
|
||||
SESSION=true
|
||||
USER=root
|
||||
PROGRAM=%{_sbindir}/v4l-conf
|
||||
!
|
||||
install -p -m 0644 v4l-conf.apps $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/v4l-conf
|
||||
cat >v4l-conf.sh <<EOF
|
||||
#!/bin/sh
|
||||
exec %{_bindir}/pkexec %{_libexecdir}/v4l-conf
|
||||
EOF
|
||||
install -p -m 755 v4l-conf.sh $RPM_BUILD_ROOT%{_bindir}/v4l-conf
|
||||
|
||||
mv $RPM_BUILD_ROOT%{_bindir}/v4l-conf $RPM_BUILD_ROOT%{_sbindir}/
|
||||
ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/v4l-conf
|
||||
cat >v4l-conf.policy <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
|
||||
<vendor>XawTV Project</vendor>
|
||||
<vendor_url>%{url}</vendor_url>
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
<action id="org.fedoraproject.v4l.conf.pkexec.run">
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
fi
|
||||
<description>Run v4l-conf with privileges required</description>
|
||||
<message>Authentication is required for privileged operations of v4l-conf</message>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">%{_libexecdir}/v4l-conf</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
%posttrans
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
</policyconfig>
|
||||
EOF
|
||||
install -p -m 644 v4l-conf.policy $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.fedoraproject.v4l.conf.policy
|
||||
|
||||
|
||||
%files
|
||||
%doc README TODO contrib/frequencies*
|
||||
%license COPYING
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/v4l-conf
|
||||
%config(noreplace) %{_sysconfdir}/security/console.apps/v4l-conf
|
||||
%{_bindir}/*
|
||||
%exclude %{_bindir}/motv
|
||||
%exclude %{_bindir}/mtt
|
||||
%{_sbindir}/*
|
||||
%{_libexecdir}/*
|
||||
%{_libdir}/xawtv
|
||||
%{_datadir}/xawtv
|
||||
%{_datadir}/X11/app-defaults/Xawtv
|
||||
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
||||
%{_datadir}/appdata/%{name}.appdata.xml
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/polkit-1/actions/*
|
||||
%{_mandir}/man?/*
|
||||
%exclude %{_mandir}/man1/motv.1*
|
||||
%exclude %{_mandir}/man1/mtt.1*
|
||||
|
|
@ -164,8 +170,76 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 26 2020 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.107-1
|
||||
- update to 3.107
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jan 24 2025 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.107-15
|
||||
- switch to PolicyKit (#502723)
|
||||
- avoid /usr/sbin dir (#2341562)
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 3.107-13
|
||||
- convert license to SPDX
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Tue Jan 30 2024 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.107-11
|
||||
- fix incompatible pointer types warnings (#2261796)
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.107-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jul 23 2020 Jeff Law <law@redhta.com> - 3.107-2
|
||||
- Use strsignal, not sys_siglist
|
||||
|
||||
* Sat May 16 2020 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 3.107-1
|
||||
- upgrade to version 3.107
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.106-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
- Use gcc -fcommon flag to build
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.106-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Feb 21 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 3.106-1
|
||||
- upgrade to version 3.106
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.105-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.105-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Jun 11 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 3.105-2
|
||||
- cleanup FB console if an error happens
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue