2007-01-15 23:50:59 +01:00
|
|
|
#
|
2011-09-19 15:34:32 +02:00
|
|
|
# spec file for package alevt
|
2007-01-15 23:50:59 +01:00
|
|
|
#
|
2019-10-17 15:03:40 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:59 +01:00
|
|
|
#
|
2009-06-18 16:52:43 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-17 15:03:40 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:50:59 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: alevt
|
|
|
|
%{expand:%%global _prefix %(pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
|
|
|
%if "%_prefix" == "/usr/X11R6"
|
|
|
|
%define _man_dir man
|
|
|
|
%else
|
|
|
|
%define _man_dir share/man
|
|
|
|
%endif
|
2012-01-06 17:32:47 +01:00
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: update-desktop-files
|
2018-02-09 13:55:22 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2008-01-30 21:52:29 +01:00
|
|
|
Url: http://www.goron.de/~froese/
|
2012-01-06 17:32:47 +01:00
|
|
|
Summary: Teletext and Videotext Decoder for the BTTV Driver
|
2019-10-17 15:03:40 +02:00
|
|
|
License: GPL-2.0-or-later
|
2008-01-30 21:52:29 +01:00
|
|
|
Version: 1.6.2
|
2012-01-06 17:32:47 +01:00
|
|
|
Release: 0
|
2007-01-15 23:50:59 +01:00
|
|
|
Source0: alevt-%version.tar.bz2
|
2007-07-05 13:06:10 +02:00
|
|
|
Source1: alevt.desktop
|
|
|
|
Source2: alevt.png
|
2007-01-15 23:50:59 +01:00
|
|
|
Patch2: alevt-1.6.0-dvb-demux.patch
|
|
|
|
Patch4: alevt-overflow2.diff
|
|
|
|
Patch5: alevt-happy-abuild.diff
|
2012-01-06 17:32:47 +01:00
|
|
|
# PATCH-FIX-UPSTREAM pngtoico-libpng15.patch -- pgajdos@suse.com; build with libpng15; sent today to froese@gmx.de
|
|
|
|
# build against libpng14 should not be affected, otherwise please let me know
|
|
|
|
Patch6: alevt-libpng15.patch
|
2007-01-15 23:50:59 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
AleVT is a teletext and videotext decoder and browser for the BTTV
|
|
|
|
driver (/dev/vbi) and the X Window System. It features multiple
|
|
|
|
windows, a page cache, regexp searching, a built-in manual, and more.
|
|
|
|
There is also a program to get the time from teletext.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch2 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2012-01-06 17:32:47 +01:00
|
|
|
%patch6 -p1
|
2007-01-15 23:50:59 +01:00
|
|
|
|
|
|
|
%build
|
2011-09-19 15:34:32 +02:00
|
|
|
make OPT="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
2007-01-15 23:50:59 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
echo "Using _prefix=%{_prefix} _man_dir=%{_man_dir}"
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin $RPM_BUILD_ROOT%{_prefix}/%{_man_dir}/man1
|
2008-01-30 21:52:29 +01:00
|
|
|
make rpm-install USR_X11R6=%{_prefix} MAN=%{_man_dir}
|
2007-01-15 23:50:59 +01:00
|
|
|
%suse_update_desktop_file -i alevt AudioVideo TV
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGELOG COPYRIGHT README
|
|
|
|
%dir %{_prefix}/include/X11/pixmaps
|
|
|
|
/usr/share/applications/*.desktop
|
|
|
|
/usr/share/pixmaps/alevt.png
|
|
|
|
%{_prefix}/bin/alevt
|
|
|
|
%{_prefix}/bin/alevt-cap
|
|
|
|
%{_prefix}/bin/alevt-date
|
|
|
|
%{_prefix}/include/X11/pixmaps/mini-alevt.xpm
|
|
|
|
%doc %{_prefix}/%{_man_dir}/man1/alevt-cap.1.gz
|
|
|
|
%doc %{_prefix}/%{_man_dir}/man1/alevt-date.1.gz
|
|
|
|
%doc %{_prefix}/%{_man_dir}/man1/alevt.1x.gz
|
|
|
|
|
2007-07-05 13:06:10 +02:00
|
|
|
%changelog
|