Changeset 1796
- Timestamp:
- Feb 22, 2022, 8:55:34 PM (3 years ago)
- Location:
- spec/trunk/SPECS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/clipgrab.spec
r1695 r1796 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. 1 Name: clipgrab 2 Version: 3.9.7 3 Release: 1%{?dist} 15 4 16 # Please submit bugfixes or comments via http://bugs.opensuse.org/ 17 # 5 License: GPLv3 and Non-Commercial Use Only (Artwork and Trademark) 6 Summary: A free video downloader and converter 7 URL: http://clipgrab.de/en 8 %if !0%{?os2_version} 9 Source0: https://download.clipgrab.org/%{name}-%{version}.tar.gz 10 Source1: %{name}.desktop 11 %else 12 %scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2 13 %endif 14 ExcludeArch: ppc64le ppc64 18 15 19 20 Name: clipgrab 21 Version: 3.7.2 22 Release: 1%{?dist} 23 Summary: Video downloader 24 License: GPL-3.0+ 25 Group: Productivity/Multimedia/Video/Editors and Convertors 26 Url: https://clipgrab.org 27 #Source0: https://download.clipgrab.org/%{name}-%{version}.tar.gz 28 29 %scm_source github http://github.com/TeLLie/%{name}-os2 master 30 31 #BuildRequires: ImageMagick 32 #BuildRequires: hicolor-icon-theme >= 0.15 33 BuildRequires: openjpeg2 34 #BuildRequires: update-desktop-files 35 #BuildRequires: pkgconfig(Qt5WebKit) 36 #BuildRequires: pkgconfig(Qt5WebKitWidgets) 37 #BuildRequires: pkgconfig(Qt5Xml) 38 #BuildRequires: libjpeg-devel 16 %if !0%{?os2_version} 17 BuildRequires: ImageMagick 18 BuildRequires: desktop-file-utils 19 BuildRequires: pkgconfig(Qt5WebKit) 20 BuildRequires: pkgconfig(Qt5WebKitWidgets) 21 %endif 22 BuildRequires: pkgconfig(Qt5WebEngineWidgets) 23 BuildRequires: pkgconfig(Qt5Xml) 24 # Work around https://bugzilla.redhat.com/show_bug.cgi?id=1909195 25 BuildRequires: nss nspr 26 %if !0%{?os2_version} 27 Requires: hicolor-icon-theme 28 %endif 39 29 Requires: ffmpeg 40 BuildRoot: %{_tmppath}/%{name}-%{version}-build41 30 42 31 %description 43 A program which downloads and converts online videos from YouTube, Vimeo, 44 DailyMotion, MyVideo and many other platforms.32 ClipGrab is a free downloader and converter for YouTube, Vimeo, Dailymotion 33 and many other online video sites. 45 34 46 35 %prep 47 #%setup -q 36 %if !0%{?os2_version} 37 #setup -q 38 %autosetup -p 1 -n %{name}-%{version} 39 chmod 0644 *.cpp *.h icon.png COPYING README license.odt 40 # Fix build with Qt 5.12: https://aur.archlinux.org/packages/clipgrab-qt5/ 41 sed -i 's|QtWebKit/QWebView|QtWebKitWidgets/QWebView|' mainwindow.ui 42 %else 48 43 %scm_setup 49 chmod 0644 COPYING 44 %endif 50 45 51 46 %build 52 # none too clean, but it beats depending on icns-utils which has problems on non-x86 archs53 #dd if=%{name}.icns of=icon512.jp2 bs=1 skip=71836 count=7938454 # can't use ImageeMagick convert directly for it has no jpeg2000 support, cf. (boo#1036939)55 #j2k_to_image -i icon512.jp2 -o 512.png56 #for s in 16 32 128 256 ; do57 # convert -strip -resize ${s}x${s} 512.png ${s}.png58 #done59 #cleanup60 47 export QMAKE_SH=$SHELL 61 48 # do a fast qt build, as runmapsym and wmapsym is not needed here … … 63 50 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 64 51 65 qmake -r "CONFIG+=release" \ 66 QMAKE_CFLAGS+="%{optflags}" \ 67 QMAKE_CXXFLAGS+="%{optflags}" \ 68 QMAKE_STRIP="true" \ 69 ./clipgrab.pro 70 71 make %{?_smp_mflags} clean 52 %{qmake_qt5} clipgrab.pro QMAKE_CXXFLAGS="%{optflags}" 53 %if !0%{?os2_version} 54 %make_build 55 %else 72 56 make %{?_smp_mflags} 57 %endif 73 58 74 59 %install 75 #install -D -m0644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop 76 install -D -m0755 %{name}.exe %{buildroot}/%{_bindir}/%{name}.exe 77 #for s in 16 32 128 256 512; do 78 install -D -m0644 "icon.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/icon.png" 79 install -D -m0644 "logo.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/logo.png" 80 install -D -m0644 "paypal-logo.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/paypal-logo.png" 81 install -D -m0644 "splash.png" "%{buildroot}%{_datadir}/icons/hicolor/apps/splash.png" 82 install -D -m0644 "clipgrab.ico" "%{buildroot}%{_datadir}/icons/hicolor/apps/clipgrab.ico" 83 84 #done 85 #%suse_update_desktop_file -r %{name} Video Editor 86 87 %post 88 #%desktop_database_post 89 90 %postun 91 #%desktop_database_postun 60 install -Dm755 %{name}.exe %{buildroot}%{_bindir}/%{name}.exe 61 mkdir -p %{buildroot}%{_datadir}/applications 62 install -Dm 644 icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png 63 %if !0%{?os2_version} 64 desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1} 65 %endif 92 66 93 67 %files 94 %defattr(-,root,root,-) 95 %doc COPYING 96 %{_bindir}/clipgrab.exe 97 #%{_datadir}/applications/%{name}.desktop 98 %{_datadir}/icons/hicolor/apps/*.png 99 %{_datadir}/icons/hicolor/apps/*.ico 68 %license COPYING 69 %doc README 70 %if !0%{?os2_version} 71 %{_bindir}/%{name} 72 %else 73 %{_bindir}/%{name}.exe 74 %endif 75 %{_datadir}/pixmaps/*.png 76 %if !0%{?os2_version} 77 %{_datadir}/applications/clipgrab.desktop 78 %endif 100 79 101 80 %changelog 81 * Thu Feb 22 2022 Elbert Pol <elbert.pol@gmail.com> - 3.9.7-1 82 - Updated to latest version 83 102 84 * Sun Feb 03 2019 Elbert Pol <elbert.pol@gmail.com> - 3.7.2-1 103 85 - Updated to latest QT4 version of clipgrab -
spec/trunk/SPECS/rpmbuild-bot2.ini
r1676 r1796 19 19 20 20 ; First arch is used for ZIP creation. 21 archs = pentium4 i68621 archs = pentium4 22 22 23 23 [layout.netlabs]
Note:
See TracChangeset
for help on using the changeset viewer.