Changeset 1796


Ignore:
Timestamp:
Feb 22, 2022, 8:55:34 PM (3 years ago)
Author:
tellie
Message:

spec: clipgrab: Release version 3.9.7-1.

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.
     1Name:           clipgrab
     2Version:        3.9.7
     3Release:        1%{?dist}
    154
    16 # Please submit bugfixes or comments via http://bugs.opensuse.org/
    17 #
     5License:        GPLv3 and Non-Commercial Use Only (Artwork and Trademark)
     6Summary:        A free video downloader and converter
     7URL:            http://clipgrab.de/en
     8%if !0%{?os2_version}
     9Source0:        https://download.clipgrab.org/%{name}-%{version}.tar.gz
     10Source1:        %{name}.desktop
     11%else
     12%scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2
     13%endif
     14ExcludeArch:    ppc64le ppc64
    1815
    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}
     17BuildRequires:  ImageMagick
     18BuildRequires:  desktop-file-utils
     19BuildRequires:  pkgconfig(Qt5WebKit)
     20BuildRequires:  pkgconfig(Qt5WebKitWidgets)
     21%endif
     22BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
     23BuildRequires:  pkgconfig(Qt5Xml)
     24# Work around https://bugzilla.redhat.com/show_bug.cgi?id=1909195
     25BuildRequires: nss nspr
     26%if !0%{?os2_version}
     27Requires:       hicolor-icon-theme
     28%endif
    3929Requires:       ffmpeg
    40 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    4130
    4231%description
    43 A program which downloads and converts online videos from YouTube, Vimeo,
    44 DailyMotion, MyVideo and many other platforms.
     32ClipGrab is a free downloader and converter for YouTube, Vimeo, Dailymotion
     33and many other online video sites.
    4534
    4635%prep
    47 #%setup -q
     36%if !0%{?os2_version}
     37#setup -q
     38%autosetup -p 1 -n %{name}-%{version}
     39chmod 0644 *.cpp *.h icon.png COPYING README license.odt
     40# Fix build with Qt 5.12: https://aur.archlinux.org/packages/clipgrab-qt5/
     41sed -i 's|QtWebKit/QWebView|QtWebKitWidgets/QWebView|' mainwindow.ui
     42%else
    4843%scm_setup
    49 chmod 0644 COPYING
     44%endif
    5045
    5146%build
    52 # none too clean, but it beats depending on icns-utils which has problems on non-x86 archs
    53 #dd if=%{name}.icns of=icon512.jp2 bs=1 skip=71836 count=79384
    54 # can't use ImageeMagick convert directly for it has no jpeg2000 support, cf. (boo#1036939)
    55 #j2k_to_image -i icon512.jp2 -o 512.png
    56 #for s in 16 32 128 256 ; do
    57 #    convert -strip -resize ${s}x${s} 512.png ${s}.png
    58 #done
    59 #cleanup
    6047export QMAKE_SH=$SHELL
    6148# do a fast qt build, as runmapsym and wmapsym is not needed here
     
    6350LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    6451
    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
    7256make %{?_smp_mflags}
     57%endif
    7358
    7459%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
     60install -Dm755 %{name}.exe %{buildroot}%{_bindir}/%{name}.exe
     61mkdir -p %{buildroot}%{_datadir}/applications
     62install -Dm 644 icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
     63%if !0%{?os2_version}
     64desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
     65%endif
    9266
    9367%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
    10079
    10180%changelog
     81* Thu Feb 22 2022 Elbert Pol <elbert.pol@gmail.com> - 3.9.7-1
     82- Updated to latest version
     83
    10284* Sun Feb 03 2019 Elbert Pol <elbert.pol@gmail.com> - 3.7.2-1
    10385- Updated to latest QT4 version of clipgrab
  • spec/trunk/SPECS/rpmbuild-bot2.ini

    r1676 r1796  
    1919
    2020; First arch is used for ZIP creation.
    21 archs = pentium4 i686
     21archs = pentium4
    2222
    2323[layout.netlabs]
Note: See TracChangeset for help on using the changeset viewer.