Christophe Marin 2023-02-15 21:38:21 +00:00 committed by Git OBS Bridge
parent 31486f1020
commit 3c589f67a0

View File

@ -17,7 +17,7 @@
%define _kf5_version 5.88.0 %define _kf5_version 5.88.0
%bcond_without lang %bcond_without released
Name: neochat Name: neochat
Version: 23.01.0 Version: 23.01.0
Release: 0 Release: 0
@ -26,7 +26,7 @@ License: GPL-3.0-or-later AND GPL-3.0-only AND BSD-2-Clause
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
URL: https://apps.kde.org/neochat/ URL: https://apps.kde.org/neochat/
Source0: https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz Source0: https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
%if %{with lang} %if %{with released}
Source1: https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz.sig Source1: https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring Source2: %{name}.keyring
%endif %endif
@ -36,6 +36,7 @@ BuildRequires: extra-cmake-modules >= %{_kf5_version}
BuildRequires: fdupes BuildRequires: fdupes
%if 0%{?suse_version} == 1500 %if 0%{?suse_version} == 1500
BuildRequires: gcc10-c++ BuildRequires: gcc10-c++
BuildRequires: gcc10-PIE
%endif %endif
BuildRequires: kf5-filesystem BuildRequires: kf5-filesystem
BuildRequires: pkgconfig BuildRequires: pkgconfig
@ -92,33 +93,30 @@ messaging.
%install %install
%kf5_makeinstall -C build %kf5_makeinstall -C build
%fdupes %{buildroot} %fdupes %{buildroot}
%if %{with lang} %find_lang %{name} --all-name
%find_lang %{name} --all-name
%endif
%files %files
%attr(0644, root, root) %license LICENSES/* %license LICENSES/*
%doc README* %doc README*
%doc %lang(en) %{_kf5_mandir}/man1/neochat.1%{?ext_man} %doc %lang(en) %{_kf5_mandir}/man1/neochat.1%{?ext_man}
%doc %lang(ca) %{_kf5_mandir}/ca/man1/neochat.1%{?ext_man} %doc %lang(ca) %{_kf5_mandir}/ca/man1/neochat.1%{?ext_man}
%doc %lang(es) %{_kf5_mandir}/es/man1/neochat.1%{?ext_man} %doc %lang(es) %{_kf5_mandir}/es/man1/neochat.1%{?ext_man}
%doc %lang(it) %{_kf5_mandir}/it/man1/neochat.1%{?ext_man}
%doc %lang(nl) %{_kf5_mandir}/nl/man1/neochat.1%{?ext_man} %doc %lang(nl) %{_kf5_mandir}/nl/man1/neochat.1%{?ext_man}
%doc %lang(uk) %{_kf5_mandir}/uk/man1/neochat.1%{?ext_man} %doc %lang(uk) %{_kf5_mandir}/uk/man1/neochat.1%{?ext_man}
%{_kf5_bindir}/neochat
%{_kf5_applicationsdir}/org.kde.neochat.desktop
%dir %{_kf5_sharedir}/krunner/ %dir %{_kf5_sharedir}/krunner/
%dir %{_kf5_sharedir}/krunner/dbusplugins/ %dir %{_kf5_sharedir}/krunner/dbusplugins/
%{_kf5_sharedir}/krunner/dbusplugins/plasma-runner-neochat.desktop %{_kf5_applicationsdir}/org.kde.neochat.desktop
%{_kf5_iconsdir}/hicolor/scalable/apps/org.kde.neochat.svg %{_kf5_appstreamdir}/org.kde.neochat.appdata.xml
%{_kf5_bindir}/neochat
%{_kf5_iconsdir}/hicolor/*/apps/org.kde.neochat.svg %{_kf5_iconsdir}/hicolor/*/apps/org.kde.neochat.svg
%{_kf5_iconsdir}/hicolor/scalable/apps/org.kde.neochat.tray.svg %{_kf5_iconsdir}/hicolor/scalable/apps/org.kde.neochat.tray.svg
%{_kf5_appstreamdir}/org.kde.neochat.appdata.xml
%{_kf5_notifydir}/neochat.notifyrc %{_kf5_notifydir}/neochat.notifyrc
%{_kf5_sharedir}/krunner/dbusplugins/plasma-runner-neochat.desktop
%if %{with lang}
%files lang -f %{name}.lang %files lang -f %{name}.lang
%endif
%changelog %changelog