2011-07-29 14:45:57 +00:00
|
|
|
#
|
|
|
|
# spec file for package quassel
|
|
|
|
#
|
2014-01-08 12:49:34 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-07-29 14:45:57 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-12-14 13:34:42 +00:00
|
|
|
|
2011-07-29 14:45:57 +00:00
|
|
|
Name: quassel
|
2014-03-27 13:47:29 +00:00
|
|
|
Version: 0.10.0
|
2011-12-14 13:34:42 +00:00
|
|
|
Release: 0
|
2011-07-29 14:45:46 +00:00
|
|
|
Summary: Modern, cross-platform, distributed IRC client
|
2011-12-14 13:34:42 +00:00
|
|
|
License: GPL-2.0 or GPL-3.0
|
2011-07-29 14:45:57 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
2011-12-14 13:34:42 +00:00
|
|
|
Url: http://%{name}-irc.org/
|
2011-10-12 14:15:02 +00:00
|
|
|
Source: http://%{name}-irc.org/pub/%{name}-%{version}.tar.bz2
|
2013-10-14 20:04:49 +00:00
|
|
|
Source1: service.%{name}core
|
2011-10-12 14:15:02 +00:00
|
|
|
Source2: sysconfig.%{name}core
|
|
|
|
Source3: logrotate.%{name}core
|
|
|
|
Source4: %{name}.SuSEfirewall2
|
2011-07-29 14:45:46 +00:00
|
|
|
BuildRequires: fdupes
|
2011-10-12 14:15:02 +00:00
|
|
|
BuildRequires: libQtWebKit-devel
|
|
|
|
BuildRequires: libdbusmenu-qt-devel
|
2011-07-29 14:45:46 +00:00
|
|
|
BuildRequires: libkde4-devel
|
|
|
|
BuildRequires: libqca2-devel
|
2013-10-14 20:04:49 +00:00
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
2011-10-12 14:15:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%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
|
2012-08-07 19:34:03 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
2011-10-12 14:15:02 +00:00
|
|
|
Requires: %{name}-base = %{version}
|
2012-08-07 19:34:03 +00:00
|
|
|
Requires: libqt4_sql_backend
|
2011-07-29 14:45:46 +00:00
|
|
|
Recommends: libqt4-sql-sqlite
|
2011-10-12 14:15:02 +00:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
Provides: kde4-%{name}-mono = %{version}
|
|
|
|
Obsoletes: kde4-%{name}-mono < %{version}
|
|
|
|
Provides: %{name}_ui = %{version}
|
2011-07-29 14:45:46 +00:00
|
|
|
%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
|
2012-08-07 19:34:03 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
2011-10-12 14:15:02 +00:00
|
|
|
Requires: %{name}-base = %{version}
|
|
|
|
Provides: %{name}_ui = %{version}
|
|
|
|
Provides: kde4-%{name}-client = %{version}
|
|
|
|
Obsoletes: kde4-%{name}-client < %{version}
|
2011-07-29 14:45:46 +00:00
|
|
|
%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
|
2012-08-07 19:34:03 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
2011-10-12 14:15:02 +00:00
|
|
|
PreReq: pwdutils
|
2014-01-08 12:49:34 +00:00
|
|
|
PreReq: %fillup_prereq
|
2011-07-29 14:45:46 +00:00
|
|
|
Requires: libqt4_sql_backend
|
|
|
|
Requires: logrotate
|
2011-10-12 14:15:02 +00:00
|
|
|
Recommends: libqt4-sql-sqlite
|
|
|
|
Provides: kde4-%{name}-core = %{version}
|
|
|
|
Obsoletes: kde4-%{name}-core < %{version}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%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
|
2012-08-07 19:34:03 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
2011-10-12 14:15:02 +00:00
|
|
|
Requires: %{name}_ui = %{version}
|
|
|
|
Provides: kde4-%{name}-base = %{version}
|
|
|
|
Obsoletes: kde4-%{name}-base < %{version}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-10-12 14:15:02 +00:00
|
|
|
This contains common parts shared by kde4-%{name} ind kde4-%{name}-client
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%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
|
2011-10-12 14:15:02 +00:00
|
|
|
%make_jobs
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%install
|
2011-10-12 14:15:02 +00:00
|
|
|
%make_install
|
2011-07-29 14:45:46 +00:00
|
|
|
%kde_post_install
|
|
|
|
%fdupes %{buildroot}
|
2011-10-12 14:15:02 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}core
|
|
|
|
install -d -m 755 %{buildroot}%{_kde4_sbindir}
|
2013-10-14 20:04:49 +00:00
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/quasselcore.service
|
|
|
|
# Provide SUSE policy symlink /usr/sbin/rcFOO -> /etc/init.d/FOO
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcquasselcore
|
2014-01-08 12:49:34 +00:00
|
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.quasselcore
|
2011-10-12 14:15:02 +00:00
|
|
|
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}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%pre core
|
2011-10-12 14:15:02 +00:00
|
|
|
%{_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 || :
|
2013-10-14 20:04:49 +00:00
|
|
|
%service_add_pre quasselcore.service
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%post core
|
2014-01-08 12:49:34 +00:00
|
|
|
%{fillup_only -n quasselcore}
|
2013-10-14 20:04:49 +00:00
|
|
|
%service_add_post quasselcore.service
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%preun core
|
2013-10-14 20:04:49 +00:00
|
|
|
%service_del_preun quasselcore.service
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%postun core
|
2013-10-14 20:04:49 +00:00
|
|
|
%service_del_postun quasselcore.service
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files mono
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog README
|
2011-10-12 14:15:02 +00:00
|
|
|
%{_kde4_applicationsdir}/%{name}.desktop
|
|
|
|
%{_kde4_bindir}/%{name}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files client
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog README
|
2011-10-12 14:15:02 +00:00
|
|
|
%{_kde4_applicationsdir}/%{name}client.desktop
|
|
|
|
%{_kde4_bindir}/%{name}client
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files core
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog README
|
2011-10-12 14:15:02 +00:00
|
|
|
%{_kde4_bindir}/%{name}core
|
|
|
|
%{_kde4_sbindir}/rc%{name}core
|
2013-10-14 20:04:49 +00:00
|
|
|
%{_unitdir}/%{name}core.service
|
2011-10-12 14:15:02 +00:00
|
|
|
%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
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files base
|
|
|
|
%defattr(-,root,root)
|
2011-10-12 14:15:02 +00:00
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_kde4_appsdir}/%{name}
|
|
|
|
%{_kde4_iconsdir}/hicolor/*/apps/%{name}.png
|
2012-03-22 11:39:57 +00:00
|
|
|
%{_kde4_iconsdir}/hicolor/*/status/%{name}-*.png
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%changelog
|