mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-26 20:00:30 +00:00
fix: rpm spec file adjustments (#1851)
* fix bogus date in %changelog * add check for metainfo & desktop
This commit is contained in:
@@ -1,120 +1,155 @@
|
|||||||
|
#
|
||||||
|
# spec file for package flameshot on fedora, rehl, opensuse leap 15.x
|
||||||
|
#
|
||||||
|
|
||||||
|
# fedora >= 30, rhel >=7
|
||||||
|
%define is_rhel_or_fedora (0%{?fedora} && 0%{?fedora} >= 30) || (0%{?rhel} && 0%{?rhel} >= 7)
|
||||||
|
# openSUSE Leap >= 15.2
|
||||||
|
%define is_suse_leap (0%{?is_opensuse} && 0%{?sle_version} >= 150200)
|
||||||
|
|
||||||
Name: flameshot
|
Name: flameshot
|
||||||
Version: 0.10.1
|
Version: 0.10.1
|
||||||
|
%if %{is_rhel_or_fedora}
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
%endif
|
||||||
|
%if %{is_suse_leap}
|
||||||
|
Release: 1
|
||||||
|
%endif
|
||||||
|
License: GPLv3+ and ASL 2.0 and GPLv2 and LGPLv3 and Free Art
|
||||||
Summary: Powerful yet simple to use screenshot software
|
Summary: Powerful yet simple to use screenshot software
|
||||||
Summary(eu-ES): Potente pero simple de usar software de capturas
|
URL: https://github.com/flameshot-org/flameshot
|
||||||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
%global sourcename flameshot
|
BuildRequires: cmake >= 3.13.0
|
||||||
|
|
||||||
Group: Application
|
|
||||||
License: GPLv3
|
|
||||||
URL: https://github.com/flameshot-org/%{sourcename}
|
|
||||||
Source0: https://github.com/flameshot-org/%{sourcename}/archive/v%{version}.tar.gz
|
|
||||||
|
|
||||||
#%%define _binaries_in_noarch_packages_terminate_build 0
|
|
||||||
#BuildArch: noarch
|
|
||||||
|
|
||||||
%if 0%{?is_opensuse}
|
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
BuildRequires: gcc-c++ >= 7
|
BuildRequires: gcc-c++ >= 7
|
||||||
|
BuildRequires: fdupes
|
||||||
|
%if %{is_suse_leap}
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
%else
|
BuildRequires: appstream-glib
|
||||||
BuildRequires: gcc7 >= 7.4.0
|
|
||||||
BuildRequires: gcc7-c++ >= 7.4.0
|
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: libqt5-qttools-devel >= 5.9.0
|
%if %{is_rhel_or_fedora}
|
||||||
BuildRequires: libqt5-linguist >= 5.9.0
|
BuildRequires: libappstream-glib
|
||||||
%else
|
BuildRequires: ninja-build
|
||||||
BuildRequires: gcc-c++ >= 7.4.0
|
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
BuildRequires: cmake(Qt5Core) >= 5.9.0
|
||||||
BuildRequires: qt5-qttools-devel >= 5.9.0
|
BuildRequires: cmake(Qt5DBus) >= 5.9.0
|
||||||
BuildRequires: qt5-linguist >= 5.9.0
|
BuildRequires: cmake(Qt5Gui) >= 5.9.0
|
||||||
%endif
|
BuildRequires: cmake(Qt5LinguistTools) >= 5.9.0
|
||||||
|
BuildRequires: cmake(Qt5Network) >= 5.9.0
|
||||||
BuildRequires: cmake >= 3.13.0
|
BuildRequires: cmake(Qt5Svg) >= 5.9.0
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: cmake(Qt5Widgets) >= 5.9.0
|
||||||
BuildRequires: pkgconfig(Qt5Core) >= 5.9.0
|
|
||||||
BuildRequires: pkgconfig(Qt5Gui) >= 5.9.0
|
|
||||||
BuildRequires: pkgconfig(Qt5DBus) >= 5.9.0
|
|
||||||
BuildRequires: pkgconfig(Qt5Network) >= 5.9.0
|
|
||||||
BuildRequires: pkgconfig(Qt5Widgets) >= 5.9.0
|
|
||||||
BuildRequires: pkgconfig(Qt5Svg) >= 5.9.0
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
Requires: hicolor-icon-theme
|
||||||
|
%if %{is_rhel_or_fedora}
|
||||||
Requires: qt5-qtbase >= 5.9.0
|
Requires: qt5-qtbase >= 5.9.0
|
||||||
Requires: qt5-qttools >= 5.9.0
|
Requires: qt5-qttools >= 5.9.0
|
||||||
Requires: qt5-qtsvg >= 5.9.0
|
Requires: qt5-qtsvg%{?_isa} >= 5.9.0
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?is_opensuse}
|
%if %{is_suse_leap}
|
||||||
Requires: libQt5Core5 >= 5.9.0
|
Requires: libQt5Core5 >= 5.9.0
|
||||||
Requires: libqt5-qttools >= 5.9.0
|
Requires: libqt5-qttools >= 5.9.0
|
||||||
Requires: libQt5Svg5 >= 5.9.0
|
Requires: libQt5Svg5 >= 5.9.0
|
||||||
%endif
|
%endif
|
||||||
Requires: hicolor-icon-theme
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Flameshot is a screenshot software, it's
|
Powerful and simple to use screenshot software with built-in
|
||||||
powerful yet simple to use for GNU/Linux
|
editor with advanced features.
|
||||||
|
|
||||||
|
Features:
|
||||||
|
|
||||||
|
* Customizable appearance.
|
||||||
|
* Easy to use.
|
||||||
|
* In-app screenshot edition.
|
||||||
|
* DBus interface.
|
||||||
|
* Upload to Imgur
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n v%{version}
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
|
%if %{is_suse_leap}
|
||||||
make %{?_smp_mflags}
|
%cmake -DCMAKE_BUILD_TYPE=Release
|
||||||
|
%endif
|
||||||
|
%if %{is_rhel_or_fedora}
|
||||||
|
%cmake -G Ninja -DCMAKE_BUILD_TYPE=Release
|
||||||
|
%endif
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install INSTALL_ROOT=%{buildroot}
|
%cmake_install
|
||||||
|
# https://fedoraproject.org/wiki/PackagingDrafts/find_lang
|
||||||
%if 0%{?is_opensuse}
|
%find_lang Internationalization --with-qt
|
||||||
%if 0%{?suse_version} >= 1500
|
%if %{is_suse_leap}
|
||||||
%suse_update_desktop_file org.flameshot.Flameshot Graphics
|
%suse_update_desktop_file -r org.flameshot.Flameshot Utility X-SuSE-DesktopUtility
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
|
%fdupes %{buildroot}%{_datadir}/icons
|
||||||
|
|
||||||
%if 0%{?fedora}
|
%check
|
||||||
%post -p /sbin/ldconfig
|
%if %{is_rhel_or_fedora}
|
||||||
%postun -p /sbin/ldconfig
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
|
||||||
%endif
|
%endif
|
||||||
|
%if %{is_suse_leap}
|
||||||
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
|
||||||
|
%endif
|
||||||
|
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
||||||
|
|
||||||
%files
|
%files -f Internationalization.lang
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%doc %{_mandir}/man*/*
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%dir %{_datadir}/%{name}/translations
|
||||||
|
%dir %{_datadir}/bash-completion/completions
|
||||||
|
%dir %{_datadir}/zsh/site-functions
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/%{name}
|
|
||||||
%{_datadir}/dbus-1/interfaces/org.flameshot.Flameshot.xml
|
|
||||||
%{_datadir}/dbus-1/services/org.flameshot.Flameshot.service
|
|
||||||
%{_datadir}/metainfo/org.flameshot.Flameshot.metainfo.xml
|
|
||||||
%{_datadir}/flameshot/translations
|
|
||||||
%{_datadir}/applications/org.flameshot.Flameshot.desktop
|
%{_datadir}/applications/org.flameshot.Flameshot.desktop
|
||||||
|
%if %{is_suse_leap}
|
||||||
|
%{_datadir}/metainfo/org.flameshot.Flameshot.metainfo.xml
|
||||||
|
%endif
|
||||||
|
%if %{is_rhel_or_fedora}
|
||||||
|
%{_metainfodir}/org.flameshot.Flameshot.metainfo.xml
|
||||||
|
%endif
|
||||||
%{_datadir}/bash-completion/completions/%{name}
|
%{_datadir}/bash-completion/completions/%{name}
|
||||||
%{_datadir}/zsh/site-functions/_%{name}
|
%{_datadir}/zsh/site-functions/_%{name}
|
||||||
%{_datadir}/icons/hicolor
|
%{_datadir}/dbus-1/interfaces/org.flameshot.Flameshot.xml
|
||||||
|
%{_datadir}/dbus-1/services/org.flameshot.Flameshot.service
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/*.svg
|
||||||
|
%{_mandir}/man1/%{name}.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Aug 29 2021 Zetao Yang <vitzys@outlook.com> - 0.10.1-2
|
||||||
|
- Minor SPEC fixes.
|
||||||
|
|
||||||
* Sun Jul 25 2021 Jeremy Borgman <borgman.jeremy@pm.me> - 0.10.1-1
|
* Sun Jul 25 2021 Jeremy Borgman <borgman.jeremy@pm.me> - 0.10.1-1
|
||||||
- Updated for flameshot 0.10.1
|
- Updated for flameshot 0.10.1
|
||||||
* Sun May 17 2021 Jeremy Borgman <borgman.jeremy@pm.me> - 0.10.0-1
|
|
||||||
|
* Mon May 17 2021 Jeremy Borgman <borgman.jeremy@pm.me> - 0.10.0-1
|
||||||
- Updated for flameshot 0.10.0
|
- Updated for flameshot 0.10.0
|
||||||
|
|
||||||
* Sat Feb 27 2021 Jeremy Borgman <borgman.jeremy@pm.me> - 0.9.0-1
|
* Sat Feb 27 2021 Jeremy Borgman <borgman.jeremy@pm.me> - 0.9.0-1
|
||||||
- Updated for flameshot 0.9.0
|
- Updated for flameshot 0.9.0
|
||||||
* Sat Oct 14 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.5-1
|
|
||||||
|
* Wed Oct 14 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.5-1
|
||||||
- Updated for flameshot 0.8.5
|
- Updated for flameshot 0.8.5
|
||||||
|
|
||||||
* Sat Oct 10 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.4-1
|
* Sat Oct 10 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.4-1
|
||||||
- Updated for flameshot 0.8.4
|
- Updated for flameshot 0.8.4
|
||||||
* Mon Sep 19 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.3-1
|
|
||||||
|
* Sat Sep 19 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.3-1
|
||||||
- Updated for flameshot 0.8.3
|
- Updated for flameshot 0.8.3
|
||||||
|
|
||||||
* Mon Sep 07 2020 Zetao Yang <vitzys@outlook.com> - 0.8.0-1
|
* Mon Sep 07 2020 Zetao Yang <vitzys@outlook.com> - 0.8.0-1
|
||||||
- Updated for flameshot 0.8.0
|
- Updated for flameshot 0.8.0
|
||||||
- More details, please see https://flameshot.js.org/#/changelog?id=v080
|
- More details, please see https://flameshot.org/changelog/#v080
|
||||||
|
|
||||||
* Sat Aug 18 2018 Zetao Yang <vitzys@outlook.com> - 0.6.0-1
|
* Sat Aug 18 2018 Zetao Yang <vitzys@outlook.com> - 0.6.0-1
|
||||||
- Updated for flameshot 0.6.0
|
- Updated for flameshot 0.6.0
|
||||||
- More details, please see https://flameshot.js.org/#/changelog?id=v060
|
- More details, please see https://flameshot.org/changelog/#v060
|
||||||
|
|
||||||
* Tue Jan 09 2018 Zetao Yang <vitzys@outlook.com> - 0.5.0-1
|
* Tue Jan 09 2018 Zetao Yang <vitzys@outlook.com> - 0.5.0-1
|
||||||
- Initial package for flameshot 0.5.0
|
- Initial package for flameshot 0.5.0
|
||||||
- More details, please see https://flameshot.js.org/#/changelog?id=v051
|
- More details, please see https://flameshot.org/changelog/#v050
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user