File rage.spec of Package rage
#
# spec file for package rage
#
# Copyright (c) 2017 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: rage
Version: @SERVICE@
Release: 0
Summary: A mplayer like video and audio player with some extra bells and whistles
License: BSD-2-Clause
Group: Productivity/Multimedia/Video/Players
Url: http://enlightenment.org
Source: %{name}-%{version}.tar.xz
BuildRequires: hicolor-icon-theme
BuildRequires: ImageMagick
BuildRequires: meson >= 0.40.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(ecore-evas)
BuildRequires: pkgconfig(ecore-file)
BuildRequires: pkgconfig(ecore-imf)
BuildRequires: pkgconfig(ecore-imf-evas)
BuildRequires: pkgconfig(ecore-input)
BuildRequires: pkgconfig(ecore-ipc)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(eet)
BuildRequires: pkgconfig(efreet)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(elementary) >= 1.18.0
BuildRequires: pkgconfig(emotion) >= 1.18.0
BuildRequires: pkgconfig(ethumb_client)
BuildRequires: pkgconfig(evas)
Requires: efl
Requires: elementary >= 1.18.0
Requires: evas-generic-loaders >= 1.18.0
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: update-desktop-files
%endif
%description
Rage is a simple video and audio player intended to be slick yet
simplistic, much like Mplayer. You can provide 1 or more files to play on
the command-line or just DND files onto the rage window to insert them into
the playlist. You can get a visual representation of everything on the
playlist by hitting the / key, or just hovering your mouse over the right
side of the window. Mouse back over the left side of the window ti dismiss
it or press the key again. It has a full complement of key controls if you
see the README for the full list. It will automatically search for album
art for music files, if not already cached, and display that. It even
generates thumbnails for the timeline of a video and allows you to preview
the position on mouseover of the position bar at the bottom of the window.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -g"
%meson
%meson_build
%install
%meson_install
_file=$(find -name %{name}.png)
_width=$(identify -format %w $_file)
_height=$(identify -format %h $_file)
if [ "$_width" -eq $_height ]; then
ls %{_datadir}/icons/hicolor | grep '[0-9]x[0-9]' | sort -n | while read _size; do
if [ "$_width" -ge ${_size%x*} ]; then
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${_size}/apps
convert -strip \
$_file -resize $_size \
%{buildroot}%{_datadir}/icons/hicolor/${_size}/apps/%{name}.png
fi
done
else
install -Dm0644 $_file %{buildroot}%{_datadir}/pixmaps/%{name}.png
fi
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Enlightenment AudioVideo Video Player
%fdupes %{buildroot}/%{_datadir}
%endif
%if 0%{?suse_version} < 1320
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%endif
%files
%doc AUTHORS COPYING README
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%changelog