File deepin-movie.spec of Package deepin-movie
#
# spec file for package deepin-movie
#
# 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: deepin-movie
Version: 3.2.16
Release: 0
License: GPL-3.0+
Summary: Deepin Video Players
Url: https://github.com/linuxdeepin/deepin-movie-reborn
Group: Productivity/Multimedia/Players
Source: https://github.com/linuxdeepin/deepin-movie-reborn/archive/%{version}/%{name}-reborn-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: libqt5-linguist-devel
BuildRequires: dtkcore >= 2.0.9
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(dtkwidget)
BuildRequires: pkgconfig(dtkcore)
BuildRequires: pkgconfig(libffmpegthumbnailer)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavresample)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libpulse-simple)
BuildRequires: pkgconfig(dvdnav)
BuildRequires: pkgconfig(mpv)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xcb-aux)
BuildRequires: pkgconfig(xcb-ewmh)
BuildRequires: pkgconfig(xcb-proto)
BuildRequires: pkgconfig(xcb-shape)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The default media player for Deepin, very beautiful yet very easy to use. QML
is used to build its graphical interface combined QtAV as its multimedia backend.
All video formats are supported out of the box.
%lang_package
%prep
%setup -q -n %{name}-reborn-%{version}
sed -i 's,/usr/lib/dtk2/dtk-settings-tool,/usr/bin/dtk-settings-tool,g' src/CMakeLists.txt
%build
%cmake -DCMAKE_BUILD_TYPE=Release
make %{?_smp_mflags}
%install
%cmake_install
%fdupes %{buildroot}
%if 0%{?suse_version} < 1330
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/translations
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/dman
%{_datadir}/dman/%{name}
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%files lang
%defattr(-,root,root)
%{_datadir}/%{name}/translations
%changelog