File ffdiaporama.spec of Package ffdiaporama
75
1
%global debug_package %{nil}
2
%define tar_version 2.1.2014.0209
3
4
Name: ffdiaporama
5
Summary: Movie creator from photos and video clips
6
License: GPL-2.0-only
7
Group: Productivity/Multimedia/Video/Editors and Convertors
8
URL: http://ffdiaporama.tuxfamily.org
9
Version: 2.1.2014.0209
10
Release: 0
11
12
#Source0: {name}-{tar_version}.tar.gz
13
Source0: %{name}_bin_%{tar_version}.tar.gz
14
#Source1: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
15
Patch0: patchfile.patch
16
#ffdiaporama_bin_2.1.2014.0209.tar.gz
17
18
#Vendor:
19
20
21
BuildRoot: %{_builddir}/%{name}-ROOT
22
#BuildRoot: {_tmppath}/{name}-root
23
#BuildRequires: cmake libkde4-devel libqt4-devel
24
25
#if 0{?suse_version} >= 150000
26
%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse}
27
BuildRequires: libqt5-qtbase-common-devel make gcc ffmpeg21 ffmpeg21-libs ffmpeg21-devel libSDL-1_2-0 libSDL_mixer-1_2-0 libSDL_mixer-devel libSDL-devel libqt5-qtbase libqt5-qtbase-devel libqt5-qttools libqt5-qttools-devel libQt5Gui5 libQt5Widgets5 libQt5Svg5 libqt5-qtsvg-devel libQt5Sql5 libQt5Sql5-sqlite libqt5-qtimageformats libqt5-qtimageformats-devel exiv2 libexiv2-devel libtag-devel
28
%endif
29
%if 0%{?suse_version} > 1600
30
BuildRequires: libqt5-qtbase-common-devel make gcc ffmpeg21 ffmpeg21-libs ffmpeg21-devel libSDL-1_2-0 libSDL_mixer-1_2-0 libSDL_mixer-devel libSDL-devel libqt5-qtbase libqt5-qtbase-devel libqt5-qttools libqt5-qttools-devel libQt5Gui5 libQt5Widgets5 libQt5Svg5 libqt5-qtsvg-devel libQt5Sql5 libQt5Sql5-sqlite libqt5-qtimageformats libqt5-qtimageformats-devel exiv2 libexiv2-devel libtag-devel
31
%endif
32
%if 0%{?fedora} >= 29
33
BuildRequires: cmake gcc ffmpeg21-libs ffmpeg21-devel SDL_mixer SDL_mixer-devel SDL-devel qt5-qtbase qt5-qtbase-devel qt5-qttools qt5-qttools-devel qt5-qtsvg-devel qt5-qtimageformats exiv2 exiv2-devel taglib-devel
34
%endif
35
%if 0%{?mageia}
36
%ifarch i586
37
BuildRequires: cmake gcc ffmpeg21-libs ffmpeg21-devel libSDL1.2_0 libSDL_mixer1.2_0 libSDL_mixer-devel libSDL-devel qtbase5-common qtbase5-common-devel qttools5 qtsvg5 qtimageformats5 exiv2 libexiv2-devel
38
%endif
39
%ifarch x86_64
40
BuildRequires: cmake gcc ffmpeg21-libs ffmpeg21-devel libSDL1.2_0 libSDL_mixer1.2_0 libSDL_mixer-devel libSDL-devel qtbase5-common qtbase5-common-devel qttools5 qtsvg5 qtimageformats5 exiv2 libexiv2-devel
41
%endif
42
%endif
43
44
%description
45
ffDiaporama is an application for creating video sequences consisting of titles, fixed or animated, images or photos, fixed or animated, movie clips, music.
46
47
%prep
48
#setup -qn {name}-{tar_version}
49
%setup -qn ffDiaporama
50
%patch0 -p1
51
sed -i 's@GTK;GNOME;Qt;KDE;AudioVideo;@AudioVideo;Player;X-Red-Hat-Base;@g' ffDiaporama.desktop
52
53
%build
54
#LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/ffmpeg21/lib64:/usr/local/lib64/
55
#export LD_LIBRARY_PATH
56
#qmake-qt5 'QMAKE_CFLAGS_ISYSTEM=-I' 'INCLUDEPATH += /usr/ffmpeg21/include' 'LIBPATH += /usr/ffmpeg21/lib64' ffDiaporama.pro /PREFIX=/usr
57
qmake-qt5 'QMAKE_CFLAGS_ISYSTEM=-I' ffDiaporama.pro /PREFIX=/usr
58
make %{?_smp_mflags}
59
60
%install
61
#make DESTDIR={buildroot} install
62
make INSTALL_ROOT=%{buildroot} install
63
#make install
64
#install -d /var/log/myservice -o serviceuser -m 750
65
66
#suse_update_desktop_file -r -n ffDiaporama Application AudioVideo
67
68
%clean
69
rm -rf %{buildroot}
70
71
%files
72
/usr
73
74
%changelog
75