SHA256
1
0
forked from pool/weechat

- Make this build on SLE12

OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=61
This commit is contained in:
Tomáš Chvátal 2015-01-28 10:42:56 +00:00 committed by Git OBS Bridge
parent 2e74db993b
commit d63703208c
2 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 28 10:42:34 UTC 2015 - tchvatal@suse.com
- Make this build on SLE12
-------------------------------------------------------------------
Mon Jan 12 07:38:34 UTC 2015 - tchvatal@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package weechat
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -30,7 +30,7 @@ Patch0: weechat-capath.patch
BuildRequires: asciidoc
BuildRequires: cmake
BuildRequires: curl-devel
BuildRequires: docbook5-xsl-stylesheets
BuildRequires: docbook-xsl-stylesheets
BuildRequires: enchant-devel
BuildRequires: gcc-c++
BuildRequires: grep
@ -48,12 +48,15 @@ BuildRequires: perl
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: ruby-devel
BuildRequires: source-highlight
BuildRequires: tcl-devel
BuildRequires: update-desktop-files
Requires: hicolor-icon-theme
Suggests: %{name}-doc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Not on SLE12
%if 0%{?suse_version} != 1315
BuildRequires: source-highlight
%endif
%description
WeeChat (Wee Enhanced Environment for Chat) is a fast and light cross-platform
@ -63,6 +66,8 @@ several scripting languages.
%lang_package
# Not on SLE12
%if 0%{?suse_version} != 1315
%package doc
Summary: Documentation for %{name}
Group: Documentation/HTML
@ -70,6 +75,7 @@ Requires: %{name} = %{version}
%description doc
Various documentation files for %{name}.
%endif
%package devel
Summary: Development Environment for %{name} Plugins
@ -168,7 +174,10 @@ ln -sf %{_bindir}/weechat %{buildroot}%{_bindir}/weechat-curses
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Network IRCClient
# Not on SLE12
%if 0%{?suse_version} != 1315
mv "%{buildroot}%{_datadir}/doc/weechat" html
%endif
%find_lang "%{name}" --with-man
@ -180,9 +189,12 @@ mv "%{buildroot}%{_datadir}/doc/weechat" html
%desktop_database_postun
%icon_theme_cache_postun
# Not on SLE12
%if 0%{?suse_version} != 1315
%files doc
%defattr(-,root,root)
%doc html/
%endif
%files
%defattr(-,root,root)