]> git.pld-linux.org Git - packages/weechat.git/commitdiff
move icons to subpackge to avoid pulling gui stuff; rel 2 auto/th/weechat-3.3-2
authorJan Palus <atler@pld-linux.org>
Thu, 11 Nov 2021 23:53:49 +0000 (00:53 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 12 Nov 2021 00:14:56 +0000 (01:14 +0100)
weechat.spec

index b7aac1b79572e470ac18aae60399893819f35108..a182b9e6d0aeebafb3f50d8632590740508567d8 100644 (file)
@@ -26,7 +26,7 @@ Summary:      WeeChat - fast and light chat environment
 Summary(pl.UTF-8):     WeeChat - szybkie i lekkie środowisko do rozmów
 Name:          weechat
 Version:       3.3
-Release:       1
+Release:       2
 License:       GPL v3+
 Group:         Applications/Communications
 Source0:       https://www.weechat.org/files/src/%{name}-%{version}.tar.xz
@@ -48,6 +48,7 @@ BuildRequires:        pkgconfig
 BuildRequires: python3-devel
 BuildRequires: python3-modules
 %endif
+BuildRequires: rpm-build >= 4.6
 BuildRequires: rpmbuild(macros) >= 1.752
 %{?with_doc:BuildRequires:     ruby-asciidoctor}
 %{?with_ruby:BuildRequires:    ruby-devel >= 1:1.9}
@@ -58,7 +59,7 @@ BuildRequires:        tar >= 1:1.22
 BuildRequires: xz
 BuildRequires: zlib-devel
 Requires(post,postun): desktop-file-utils
-Requires(post,postun): gtk-update-icon-cache
+Suggests:      %{name}-icons
 Suggests:      %{name}-plugin-irc
 Obsoletes:     weechat-common
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -84,6 +85,15 @@ BuildArch:   noarch
 %description doc
 HTML documentation for weechat.
 
+%package icons
+Summary:       Icon files for weechat
+Group:         Applications
+BuildArch:     noarch
+Requires(post,postun): gtk-update-icon-cache
+
+%description icons
+Icon files for weechat.
+
 %package plugin-guile
 Summary:       Guile scripting plugin for weechat
 Group:         Applications/Communications
@@ -218,14 +228,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 %update_desktop_database
-%update_icon_cache hicolor
 %update_mime_database
 
+%post icons
+%update_icon_cache hicolor
+
 %postun
 %update_desktop_database_postun
-%update_icon_cache hicolor
 %update_mime_database
 
+%postun icons
+%update_icon_cache hicolor
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS.adoc ChangeLog.adoc README.adoc ReleaseNotes.adoc
@@ -240,7 +254,6 @@ rm -rf $RPM_BUILD_ROOT
 %lang(pl) %{_mandir}/pl/man1/weechat.1*
 %lang(ru) %{_mandir}/ru/man1/weechat.1*
 %endif
-%{_iconsdir}/hicolor/*/apps/weechat.png
 %{_desktopdir}/%{name}.desktop
 
 %dir %{_libdir}/%{name}
@@ -256,6 +269,10 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/%{name}/plugins/trigger.so
 %attr(755,root,root) %{_libdir}/%{name}/plugins/typing.so
 
+%files icons
+%defattr(644,root,root,755)
+%{_iconsdir}/hicolor/*/apps/weechat.png
+
 %if %{with doc}
 %files doc
 %defattr(644,root,root,755)
This page took 0.323755 seconds and 4 git commands to generate.