File hasciicam.spec of Package hasciicam
#
# spec file for package hasciicam
#
# Copyright (c) 2015 SUSE LINUX 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/
#
Name: hasciicam
Version: 1.3
Release: 0
Summary: Live video as text
License: GPL-3.0
Group: Productivity/Multimedia/Video/Editors and Convertors
Url: http://ascii.dyne.org/
Source0: https://files.dyne.org/hasciicam/%{name}_%{version}.tar.gz
# PATCH-FIX-UPSTREAM returns.patch avvissu@yandex.ru -- Fix build errors found by RPMlint
Patch0: hasciicam_1.3_returns.patch
BuildRequires: aalib-devel
BuildRequires: update-desktop-files
%description
Hasciicam makes it possible to have live ascii video on the web. It
captures video from a tv card and renders it into ascii, formatting the
output into an html page with a refresh tag or in a live ascii window or in
a simple text file as well, giving the possiblity to anybody that has a
bttv card. a linux box and a cheap modem line to show a live asciivideo
feed that can be browsable without any need for plugin, java etc.
%prep
%setup -q -n %{name}_%{version}
%patch0 -p1
sed -i 's/[.]png$//' share/%{name}.desktop
%build
%configure
make %{?_smp_mflags}
%install
%makeinstall
# Remove Debian directories
rm -rf %{buildroot}%{_datadir}/menu
install -d %{buildroot}%{_datadir}/pixmaps
mv %{buildroot}%{_datadir}/{icons/,pixmaps/}%{name}.png
%suse_update_desktop_file -r %{name} AudioVideo Recorder
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1%{ext_info}
%changelog