File smuxi.spec of Package smuxi
#
# spec file for package smuxi
#
# Copyright (c) 2011 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: smuxi
Version: 0.8
Release: 1
License: GPLv2+
Url: http://www.smuxi.org
Source0: http://smuxi.meebey.net/jaws/data/files/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM desktop-file.patch vuntz@opensuse.org -- Make desktop file valid, already done in git
Patch0: desktop-file.patch
# PATCH-FIX-UPSTREAM smuxi-mono-2.10.patch vuntz@opensuse.org -- Fix build with mono 2.10, fixes taken from twitterizer repo (745d4469 & 55c0ad81)
Patch1: smuxi-mono-2.10.patch
Summary: Smart MUltipleXed Irc
Group: Productivity/Networking/IRC
BuildRequires: glade-sharp2
BuildRequires: gtk-sharp2
#BuildRequires: indicate-sharp
BuildRequires: intltool
BuildRequires: log4net
BuildRequires: mono-devel >= 1.9
BuildRequires: nini
BuildRequires: notify-sharp
BuildRequires: update-desktop-files
BuildRequires: mono(System.Web.Extensions)
Recommends: %{name}-frontend-gnome-irc
%if 0%{suse_version} >= 1100
Recommends: %{name}-server
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
IRC client for advanced users, targeting the GNOME desktop.
%package engine
Summary: Smart MUltipleXed Irc - Engine Library
Group: Productivity/Networking/IRC
Recommends: %{name}-engine-lang
%description engine
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
IRC client for advanced users, targeting the GNOME desktop.
%package engine-irc
Summary: Smart MUltipleXed Irc - IRC Engine
Group: Productivity/Networking/IRC
Requires: %{name}-engine = %{version}
Recommends: %{name}-engine-irc-lang
%description engine-irc
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
IRC client for advanced users, targeting the GNOME desktop.
%package engine-twitter
Summary: Smart MUltipleXed Irc - Twitter Engine
Group: Productivity/Networking/Other
Requires: %{name}-engine = %{version}
Recommends: %{name}-engine-twitter-lang
%description engine-twitter
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
Twitter client for advanced users, targeting the GNOME desktop.
%package frontend
Summary: Smart MUltipleXed Irc - Frontend Library
Group: Productivity/Networking/IRC
Requires: %{name}-engine = %{version}
Recommends: %{name}-frontend-lang
%description frontend
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
IRC client for advanced users, targeting the GNOME desktop.
%package frontend-gnome
Summary: Smart MUltipleXed Irc - GNOME Frontend
Group: Productivity/Networking/IRC
Requires: %{name}-frontend = %{version}
Recommends: %{name}-frontend-gnome-lang
%description frontend-gnome
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
IRC client for advanced users, targeting the GNOME desktop.
%package frontend-gnome-irc
Summary: Smart MUltipleXed Irc - IRC Library for GNOME Frontend
Group: Productivity/Networking/IRC
Requires: %{name}-engine-irc = %{version}
Requires: %{name}-frontend-gnome = %{version}
Recommends: %{name}-frontend-gnome-irc-lang
%description frontend-gnome-irc
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
IRC client for advanced users, targeting the GNOME desktop.
%package server
Summary: Smart MUltipleXed Irc - Server
Group: Productivity/Networking/IRC
Requires: %{name}-engine = %{version}
Recommends: %{name}-server-lang
%description server
Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform
IRC client for advanced users, targeting the GNOME desktop.
%lang_package -n %{name}-engine
%lang_package -n %{name}-engine-irc
%lang_package -n %{name}-engine-twitter
%lang_package -n %{name}-frontend
%lang_package -n %{name}-frontend-gnome
%lang_package -n %{name}-frontend-gnome-irc
%lang_package -n %{name}-server
%prep
%setup -q
%patch0
%patch1 -p0
%build
%configure \
--libdir=%{_prefix}/lib
make
%install
%make_install
rm -f %{buildroot}%{_prefix}/lib/pkgconfig/*.pc
%find_lang %{name}-engine
%find_lang %{name}-engine-irc
%find_lang %{name}-engine-twitter
%find_lang %{name}-frontend
%find_lang %{name}-frontend-gnome
%find_lang %{name}-frontend-gnome-irc
%find_lang %{name}-server
%suse_update_desktop_file %{name}-frontend-gnome
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc BUGS LICENSE TODO FEATURES README CREDITS
%dir %{_prefix}/lib/%{name}
%files engine
%defattr(-,root,root)
%doc LICENSE
%{_prefix}/lib/%{name}/Nini.dll
%{_prefix}/lib/%{name}/%{name}-engine.dll*
%{_prefix}/lib/%{name}/%{name}-common.dll*
%files engine-lang -f %{name}-engine.lang
%files engine-irc
%defattr(-,root,root)
%doc LICENSE
%{_prefix}/lib/%{name}/%{name}-engine-irc.dll*
%{_prefix}/lib/%{name}/Meebey.SmartIrc4net.dll*
%files engine-irc-lang -f %{name}-engine-irc.lang
%files engine-twitter
%defattr(-,root,root)
%doc LICENSE
%{_prefix}/lib/%{name}/%{name}-engine-twitter.dll*
%{_prefix}/lib/%{name}/Newtonsoft.Json.dll*
%{_prefix}/lib/%{name}/Twitterizer2.dll*
%files engine-twitter-lang -f %{name}-engine-twitter.lang
%files frontend
%defattr(-,root,root)
%doc LICENSE
%{_prefix}/lib/%{name}/%{name}-frontend.dll*
%files frontend-lang -f %{name}-frontend.lang
%files frontend-gnome
%defattr(-,root,root)
%doc LICENSE
%{_bindir}/%{name}-frontend-gnome
%{_prefix}/lib/%{name}/%{name}-frontend-gnome.exe*
%{_datadir}/applications/%{name}-frontend-gnome.desktop
%{_datadir}/pixmaps/smuxi-frontend-gnome.svg
%files frontend-gnome-lang -f %{name}-frontend-gnome.lang
%files frontend-gnome-irc
%defattr(-,root,root)
%doc LICENSE
%{_prefix}/lib/%{name}/%{name}-frontend-gnome-irc.dll*
%files frontend-gnome-irc-lang -f %{name}-frontend-gnome-irc.lang
%files server
%defattr(-,root,root)
%doc LICENSE
%{_bindir}/%{name}-server
%{_prefix}/lib/%{name}/%{name}-server.exe*
%files server-lang -f %{name}-server.lang
%changelog