source: spec/trunk/SPECS/clipgrab.spec@ 1567

Last change on this file since 1567 was 1514, checked in by tellie, 7 years ago

spec: clipgrab: Release version 3.7.1-1.

File size: 3.6 KB
Line 
1#
2# spec file for package clipgrab
3#
4# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
5# Copyright (c) 2008-2013 detlef@links2linux.de
6#
7# All modifications and additions to the file contributed by third parties
8# remain the property of their copyright owners, unless otherwise agreed
9# upon. The license for this file, and modifications and additions to the
10# file, is the same license as for the pristine package itself (unless the
11# license for the pristine package is not an Open Source License, in which
12# case the license is the MIT License). An "Open Source License" is a
13# license that conforms to the Open Source Definition (Version 1.9)
14# published by the Open Source Initiative.
15
16# Please submit bugfixes or comments via http://bugs.opensuse.org/
17#
18
19
20Name: clipgrab
21Version: 3.7.1
22Release: 1%{?dist}
23Summary: Video downloader
24License: GPL-3.0+
25Group: Productivity/Multimedia/Video/Editors and Convertors
26Url: https://clipgrab.org
27#Source0: https://download.clipgrab.org/%{name}-%{version}.tar.gz
28#Source1: %{name}.desktop
29# PATCH-FIX-UPSTREAM clipgrab-qt5.patch aloisio@gmx.com -- build against Qt5
30#Patch0: %{name}-qt5.patch
31%scm_source git file://d:/qt/clipgrab-3.7.1 clipgrab-3.7.1
32#BuildRequires: ImageMagick
33#BuildRequires: hicolor-icon-theme >= 0.15
34#BuildRequires: openjpeg
35#BuildRequires: update-desktop-files
36#BuildRequires: pkgconfig(Qt5WebKit)
37#BuildRequires: pkgconfig(Qt5WebKitWidgets)
38#BuildRequires: pkgconfig(Qt5Xml)
39BuildRequires: libjpeg-devel
40Requires: ffmpeg
41BuildRoot: %{_tmppath}/%{name}-%{version}-build
42
43%description
44A program which downloads and converts online videos from YouTube, Vimeo,
45DailyMotion, MyVideo and many other platforms.
46
47%prep
48#%setup -q
49%scm_setup
50chmod 0644 COPYING
51
52%build
53# none too clean, but it beats depending on icns-utils which has problems on non-x86 archs
54#dd if=%{name}.icns of=icon512.jp2 bs=1 skip=71836 count=79384
55# can't use ImageeMagick convert directly for it has no jpeg2000 support, cf. (boo#1036939)
56#j2k_to_image -i icon512.jp2 -o 512.png
57#for s in 16 32 128 256 ; do
58# convert -strip -resize ${s}x${s} 512.png ${s}.png
59#done
60#cleanup
61export QMAKE_SH=$SHELL
62# do a fast qt build, as runmapsym and wmapsym is not needed here
63export FAST_BUILD=1
64LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
65
66qmake -r "CONFIG+=release" \
67 QMAKE_CFLAGS+="%{optflags}" \
68 QMAKE_CXXFLAGS+="%{optflags}" \
69 QMAKE_STRIP="true" \
70 ./clipgrab-legacy.pro
71
72make %{?_smp_mflags} clean
73make %{?_smp_mflags}
74
75%install
76#install -D -m0644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
77install -D -m0755 %{name}.exe %{buildroot}/%{_bindir}/%{name}.exe
78#for s in 16 32 128 256 512; do
79 install -D -m0644 "icon.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/icon.png"
80 install -D -m0644 "logo.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/logo.png"
81 install -D -m0644 "paypal-logo.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/paypal-logo.png"
82 install -D -m0644 "splash.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/splash.png"
83 install -D -m0644 "clipgrab.ico" "%{buildroot}%{_datadir}/icons/hicolor/apps/clipgrab.ico"
84
85#done
86#%suse_update_desktop_file -r %{name} Video Editor
87
88%post
89#%desktop_database_post
90
91%postun
92#%desktop_database_postun
93
94%files
95%defattr(-,root,root,-)
96%doc COPYING
97%{_bindir}/clipgrab.exe
98#%{_datadir}/applications/%{name}.desktop
99%{_datadir}/icons/hicolor/apps/*.png
100%{_datadir}/icons/hicolor/apps/*.ico
101
102%changelog
103* Thu Nov 09 2018 Elbert Pol <elbert.pol@gmail.com> - 3.7.1-1
104- first clipgrab rpm for OS/2
105
Note: See TracBrowser for help on using the repository browser.