File qwinff.spec of Package qwinff
#
# spec file for package qwinff
#
# Copyright (c) 2013 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/
#
Name: qwinff
Version: 0.2.0
Release: 0
Summary: An intuitive media converter gui
License: GPL-3.0
Group: Productivity/Multimedia/Video/Editors and Convertors
Url: http://qwinff.github.io
Source0: http://downloads.sourceforge.net/%{name}/%{name}_%{version}.tar.bz2
Patch0: pkgconfig_gtk.patch
BuildRequires: gtk2-devel
BuildRequires: libqt4-devel
BuildRequires: pkgconfig(libnotify)
Requires: ffmpeg
Requires: sox
Requires: mplayer
%description
QWinFF is a cross-platform, easy-to-use media converter frontend to FFmpeg.
FFmpeg is a powerful command-line utility to convert audio and video file into
numerous formats. QWinFF features a rich set of presets to help users use
FFmpeg easily without having to manually input command-line flags. Average
users can convert multiple media files in just a few clicks, while advanced
users can still adjust conversion parameters in detail.
If you find problems with the program or you have any suggestions,
please report them in the Issues tab or e-mail to lzh9102@gmail.com.
QWinFF is written in Qt4/C++ and currently runs on Linux and Windows.
QWinFF needs translators. It would be very nice if you could translate QWinFF
into other languages. The translation file of QWinFF is hosted on transifex
(https://www.transifex.com/projects/p/qwinff/). To translate QWinFF on
Transifex, it is required to register for a Transifex account. If you want to
translate QWinFF offline, please download the latest translation file from
http://qwinff.github.io/downloads.html. Once you are done, please mail the
translation file to me and I will include it in the next release.
%prep
%setup -q
%patch0
%build
%if 0%{?fedora}
QMAKE=qmake-qt4
LRELEASE=lrelease-qt4
%else
QMAKE=qmake
LRELEASE=lrelease
%endif
make QMAKE=$QMAKE LRELEASE=$LRELEASE USE_LIBNOTIFY=1 %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/qwinff
%{_datadir}/applications/qwinff.desktop
%{_datadir}/pixmaps/qwinff.png
%dir %{_datadir}/qwinff
%{_datadir}/qwinff/presets.xml
%{_datadir}/qwinff/constants.xml
%dir %{_datadir}/qwinff/translations
%{_datadir}/qwinff/translations/*.qm
%{_mandir}/man1/qwinff.1.gz
%doc CHANGELOG.txt COPYING.txt README.md
%changelog