File mobilemediaconverter.spec of Package MobileMediaConverter
#
# spec file for package mobilemediaconverter
#
# 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/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Summary: FFMPEG GUI for converting between desktop and mobile phone formats
Name: mobilemediaconverter
Version: 1.8.5
%define sversion 185
Release: 1
License: GPL-2.0
Group: Productivity/Multimedia/Other
Source0: https://www.miksoft.net/products/mmc-older/mmc-lin-%{sversion}.zip
Source1: mmc.png
URL: http://www.miksoft.net/mobileMediaConverter.htm
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: desktop-file-utils
BuildRequires: update-desktop-files
BuildRequires: unzip
BuildRequires: fdupes
Requires: ffmpeg
Requires: mencoder
%description
The Mobile Media Converter is a free video and audio converter that uses ffmpeg to convert
between popular desktop formats like MP3, Windows Media Audio (wma), Ogg Vorbis Audio (ogg),
Wave Audio (wav), MPEG video, AVI, Windows Media Video (wmv), Flash Video (flv) and commonly
used mobile phones formats like AMR audio (amr, awb) and 3GP video.
An integrated YouTube downloader is available for direct downloading and converting to any of
these formats!Most of the times, the only data that you must enter is the input file(s) or just
drag 'n' drop the input file(s)! The 3GP and AMR formats are used by mobile phones for MMS, for
video and sound recordings, etc.
%prep
%setup -c
chmod -x lib/profiles/*.txt
chmod -x lib/mmc-unity.py
%build
# nothing to build
%install
mkdir %buildroot/usr
mkdir %buildroot%{_libdir}
mkdir %buildroot%{_libdir}/%{name}
cp -R lib/* %buildroot%{_libdir}/%{name}/
mkdir -p %buildroot%_bindir
# script lancio programma
cat > %buildroot%_bindir/mmc << EOF
#!/bin/bash
cd %{_libdir}/%{name}
exec ./mmc
EOF
# icon
install -dm 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
#X-SuSE-translate=true
Name=Mobile Multimedia Converter
GenericName=Mobile Multimedia Converter
Comment=Graphical video and audio converter
Icon=mmc
Type=Application
Categories=AudioVideo;AudioVideoEditing;
Exec=mmc
StartupNotify=false
Terminal=false
EOF
chmod +x %{buildroot}%{_bindir}/mmc
%suse_update_desktop_file -r %{name} AudioVideo AudioVideoEditing
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{_bindir}/mmc
%{_datadir}/pixmaps/*.png
%{_libdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%changelog