SHA256
1
0
forked from pool/alevt
alevt/alevt.spec

140 lines
4.1 KiB
RPMSpec

#
# spec file for package alevt (Version 1.6.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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: GPL
Group: Hardware/TV
Autoreqprov: on
Summary: Teletext and Videotext Decoder for the BTTV Driver
Version: 1.6.1
Release: 223
Source0: alevt-%version.tar.bz2
Patch0: alevt-%version.dif
Patch1: alevt-nosync.diff
Patch2: alevt-1.6.0-dvb-demux.patch
Patch3: alevt-xio.patch
Patch4: alevt-overflow2.diff
Patch5: alevt-happy-abuild.diff
Patch6: alevt-xorg-makefile.diff
Patch7: alevt-KnR.patch
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
%patch -P 0 -E
%patch1 -p0
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -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_DIR=%{_prefix} MAN_DIR=%{_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 -n alevt
* Tue Sep 05 2006 - jw@suse.de
- fixed #203118, making -Wold-style-definition happy.
* Fri Jul 28 2006 - jw@suse.de
- made xorg-safe.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jul 07 2005 - jw@suse.de
- revamped gcc4.diff into happy-abuild.diff
Avoid imlicit declarations and add RPM_OPT_FLAGS where needed.
* Mon Jul 04 2005 - jw@suse.de
- added alevt-gcc4.diff, comparison is always true suppression.
* Tue Apr 19 2005 - jw@suse.de
- changes by tsaupe@suse.de documented in usage and man.
* Thu Apr 14 2005 - jw@suse.de
- added alevt-overflow.diff by tsaupe@suse.de
* Sun Jan 23 2005 - meissner@suse.de
- use RPM_OPT_FLAGS, fixed compile error with gcc4.
* Fri Nov 19 2004 - ro@suse.de
- include icon in filelist
* Tue Nov 09 2004 - jw@suse.de
- added http://www.baycom.org/~tom/alevt-dvb-demux.patch
suggested by tsaupe@suse.de
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Mon Oct 13 2003 - jw@suse.de
- make shall not sync (#32147)
* Sat Aug 16 2003 - adrian@suse.de
- install desktop file from kappfinder
* Tue May 27 2003 - coolo@suse.de
- use BuildRoot
* Mon May 19 2003 - wengel@suse.de
- update -> 1.6.1 (fixed bug in ui.c and more)
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Wed Jun 05 2002 - uli@suse.de
- update -> 1.6.0 (png export, v4l2 interface & more)
* Wed Apr 24 2002 - uli@suse.de
- fixed for lib64
* Wed Feb 07 2001 - uli@suse.de
- fixed for glibc 2.2.1
* Sat Dec 09 2000 - nashif@suse.de
- sorted group
* Fri Jun 02 2000 - kukuk@suse.de
- Use doc macro
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Jul 14 1999 - uli@suse.de
- New version 1.4.9
* Wed Jul 14 1999 - uli@suse.de
- Spec file created from alevt-1.4.9.tar.gz by autospec