SHA256
1
0
forked from pool/alevt
alevt/alevt.spec
OBS User autobuild 70bfd69f0f Accepting request 25110 from multimedia:apps
Copy from multimedia:apps/alevt based on submit request 25110 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/25110
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alevt?expand=0&rev=7
2009-11-27 15:27:17 +00:00

90 lines
2.6 KiB
RPMSpec

#
# spec file for package alevt (Version 1.6.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
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
BuildRequires: libpng-devel pkgconfig update-desktop-files xorg-x11-devel
Url: http://www.goron.de/~froese/
License: GPLv2+
Group: Hardware/TV
AutoReqProv: on
Summary: Teletext and Videotext Decoder for the BTTV Driver
Version: 1.6.2
Release: 71
Source0: alevt-%version.tar.bz2
Source1: alevt.desktop
Source2: alevt.png
Patch2: alevt-1.6.0-dvb-demux.patch
Patch4: alevt-overflow2.diff
Patch5: alevt-happy-abuild.diff
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.
Authors:
--------
Edgar Toernig <froese@gmx.de>
%prep
%setup -q
%patch2 -p1
%patch4 -p1
%patch5 -p1
%build
make OPT="$RPM_OPT_FLAGS"
%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
make rpm-install USR_X11R6=%{_prefix} MAN=%{_man_dir}
%suse_update_desktop_file -i alevt AudioVideo TV
%clean
rm -rf $RPM_BUILD_ROOT
%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
%changelog