# # spec file for package quassel # # Copyright (c) 2013 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: quassel Version: 0.9.0 Release: 0 Summary: Modern, cross-platform, distributed IRC client License: GPL-2.0 or GPL-3.0 Group: Productivity/Networking/IRC Url: http://%{name}-irc.org/ Source: http://%{name}-irc.org/pub/%{name}-%{version}.tar.bz2 Source1: init.%{name}core Source2: sysconfig.%{name}core Source3: logrotate.%{name}core Source4: %{name}.SuSEfirewall2 BuildRequires: fdupes BuildRequires: libQtWebKit-devel BuildRequires: libdbusmenu-qt-devel BuildRequires: libkde4-devel BuildRequires: libqca2-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRecommends:libdbusmenu-qt-devel %description Quassel IRC is a modern, cross-platform, distributed IRC client, meaning that one (or multiple) client(s) can attach to and detach from a central core -- much like the popular combination of screen and a text-based IRC client such as WeeChat, but graphical. In addition to this uniqe feature, we aim to bring a pleasurable, comfortable chatting experience to all major platforms (including Linux®, Windows®, and MacOS X® as well as Qtopia-based cell phones and PDAs), making communication with your peers not only convenient, but also ubiquitous available. %package mono Summary: Modern, cross-platform, distributed IRC client Group: Productivity/Networking/IRC Requires: %{name}-base = %{version} Requires: libqt4_sql_backend Recommends: libqt4-sql-sqlite Provides: %{name} = %{version} Obsoletes: %{name} < %{version} Provides: kde4-%{name}-mono = %{version} Obsoletes: kde4-%{name}-mono < %{version} Provides: %{name}_ui = %{version} %kde4_runtime_requires %description mono Quassel IRC is a modern, cross-platform, distributed IRC client, meaning that one (or multiple) client(s) can attach to and detach from a central core -- much like the popular combination of screen and a text-based IRC client such as WeeChat, but graphical. In addition to this uniqe feature, we aim to bring a pleasurable, comfortable chatting experience to all major platforms (including Linux®, Windows®, and MacOS X® as well as Qtopia-based cell phones and PDAs), making communication with your peers not only convenient, but also ubiquitous available. This is the quassel standalone client %package client Summary: Modern, cross-platform, distributed IRC client Group: Productivity/Networking/IRC Requires: %{name}-base = %{version} Provides: %{name}_ui = %{version} Provides: kde4-%{name}-client = %{version} Obsoletes: kde4-%{name}-client < %{version} %kde4_runtime_requires %description client Quassel IRC is a modern, cross-platform, distributed IRC client, meaning that one (or multiple) client(s) can attach to and detach from a central core -- much like the popular combination of screen and a text-based IRC client such as WeeChat, but graphical. In addition to this uniqe feature, we aim to bring a pleasurable, comfortable chatting experience to all major platforms (including Linux®, Windows®, and MacOS X® as well as Qtopia-based cell phones and PDAs), making communication with your peers not only convenient, but also ubiquitous available. This is the quassel client only %package core Summary: Modern, cross-platform, distributed IRC client Group: Productivity/Networking/IRC PreReq: %fillup_prereq PreReq: %insserv_prereq PreReq: pwdutils Requires: %fillup_prereq Requires: libqt4_sql_backend Requires: logrotate Recommends: libqt4-sql-sqlite Provides: kde4-%{name}-core = %{version} Obsoletes: kde4-%{name}-core < %{version} %description core Quassel IRC is a modern, cross-platform, distributed IRC client, meaning that one (or multiple) client(s) can attach to and detach from a central core -- much like the popular combination of screen and a text-based IRC client such as WeeChat, but graphical. In addition to this uniqe feature, we aim to bring a pleasurable, comfortable chatting experience to all major platforms (including Linux®, Windows®, and MacOS X® as well as Qtopia-based cell phones and PDAs), making communication with your peers not only convenient, but also ubiquitous available. This is the core only %package base Summary: Modern, cross-platform, distributed IRC client Group: Productivity/Networking/IRC Requires: %{name}_ui = %{version} Provides: kde4-%{name}-base = %{version} Obsoletes: kde4-%{name}-base < %{version} %description base Quassel IRC is a modern, cross-platform, distributed IRC client, meaning that one (or multiple) client(s) can attach to and detach from a central core -- much like the popular combination of screen and a text-based IRC client such as WeeChat, but graphical. In addition to this uniqe feature, we aim to bring a pleasurable, comfortable chatting experience to all major platforms (including Linux®, Windows®, and MacOS X® as well as Qtopia-based cell phones and PDAs), making communication with your peers not only convenient, but also ubiquitous available. This contains common parts shared by kde4-%{name} ind kde4-%{name}-client %prep %setup -q %build FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/common/main.cpp FAKE_BUILDTIME=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/common/main.cpp %cmake_kde4 -- -DWITH_KDE=ON -DWITH_OPENSSL=ON -DWITH_DBUS=ON -DWITH_PHONON=ON -DWITH_WEBKIT=ON %make_jobs %install %make_install %kde_post_install %fdupes %{buildroot} install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}core install -d -m 755 %{buildroot}%{_kde4_sbindir} install -D -m 755 %{SOURCE1} %{buildroot}%{_kde4_sysconfdir}/init.d/%{name}core ln -sf ../../%{_kde4_sysconfdir}/init.d/%{name}core %{buildroot}%{_kde4_sbindir}/rc%{name}core install -D -m 644 %{SOURCE2} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}core install -d -m 751 %{buildroot}%{_localstatedir}/log/%{name} install -D -m 644 %{SOURCE3} %{buildroot}%{_kde4_sysconfdir}/logrotate.d/%{name}core install -D -m 644 %{SOURCE4} %{buildroot}%{_kde4_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name} %pre core %{_kde4_bindir}/getent group %{name}core >/dev/null || %{_kde4_sbindir}/groupadd -r %{name}core || : %{_kde4_bindir}/getent passwd %{name}core >/dev/null || %{_kde4_sbindir}/useradd -r -d /var/lib/%{name}core \ -s /bin/false -c "%{name}core daemon" -g %{name}core %{name}core || : %post core %{fillup_and_insserv -yn %{name}core %{name}core} %preun core %{stop_on_removal %{name}core} %postun core %{restart_on_update %{name}core} %{insserv_cleanup} %files mono %defattr(-,root,root) %doc AUTHORS ChangeLog README %{_kde4_applicationsdir}/%{name}.desktop %{_kde4_bindir}/%{name} %files client %defattr(-,root,root) %doc AUTHORS ChangeLog README %{_kde4_applicationsdir}/%{name}client.desktop %{_kde4_bindir}/%{name}client %files core %defattr(-,root,root) %doc AUTHORS ChangeLog README %{_kde4_bindir}/%{name}core %{_kde4_sbindir}/rc%{name}core %config %{_kde4_sysconfdir}/init.d/%{name}core %config(noreplace) %{_kde4_sysconfdir}/logrotate.d/%{name}core %config %{_kde4_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name} %attr(-,%{name}core,%{name}core) %dir %{_localstatedir}/lib/%{name}core %attr(-,%{name}core,%{name}core) %dir %{_localstatedir}/log/%{name} %{_localstatedir}/adm/fillup-templates/sysconfig.%{name}core %files base %defattr(-,root,root) %{_datadir}/pixmaps/%{name}.png %{_kde4_appsdir}/%{name} %{_kde4_iconsdir}/hicolor/*/apps/%{name}.png %{_kde4_iconsdir}/hicolor/*/status/%{name}-*.png %changelog