2011-07-29 14:45:57 +00:00
|
|
|
#
|
|
|
|
# spec file for package quassel
|
|
|
|
#
|
2024-02-07 12:12:47 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2020-01-27 11:28:02 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-29 14:45:57 +00:00
|
|
|
#
|
|
|
|
|
2011-12-14 13:34:42 +00:00
|
|
|
|
2022-07-22 18:12:12 +00:00
|
|
|
%define realver 0.14.0
|
2017-11-24 07:06:14 +00:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
2018-04-25 07:59:34 +00:00
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2017-11-24 07:06:14 +00:00
|
|
|
%endif
|
2011-07-29 14:45:57 +00:00
|
|
|
Name: quassel
|
2022-07-22 18:12:12 +00:00
|
|
|
Version: 0.14.0
|
2011-12-14 13:34:42 +00:00
|
|
|
Release: 0
|
2018-04-30 14:54:25 +00:00
|
|
|
Summary: Distributed IRC client
|
2018-04-25 07:59:34 +00:00
|
|
|
License: GPL-2.0-only OR GPL-3.0-only
|
2011-07-29 14:45:57 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
2020-01-27 11:28:02 +00:00
|
|
|
URL: https://quassel-irc.org/
|
2018-07-31 11:57:13 +00:00
|
|
|
Source: http://%{name}-irc.org/pub/%{name}-%{realver}.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
|
2014-07-31 15:31:21 +00:00
|
|
|
Source5: quassel-rpmlintrc
|
2022-07-22 18:12:12 +00:00
|
|
|
BuildRequires: boost-devel
|
2023-12-15 22:04:00 +00:00
|
|
|
BuildRequires: extra-cmake-modules
|
2011-07-29 14:45:46 +00:00
|
|
|
BuildRequires: fdupes
|
2014-10-22 11:48:30 +00:00
|
|
|
BuildRequires: git
|
2015-01-08 13:07:27 +00:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2015-03-09 13:05:07 +00:00
|
|
|
BuildRequires: kf5-filesystem
|
2019-01-08 12:45:11 +00:00
|
|
|
BuildRequires: openldap2-devel
|
2018-04-25 07:59:34 +00:00
|
|
|
BuildRequires: pkgconfig
|
2020-11-23 09:05:40 +00:00
|
|
|
BuildRequires: cmake(KF5ConfigWidgets)
|
|
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
|
|
BuildRequires: cmake(KF5Notifications)
|
|
|
|
BuildRequires: cmake(KF5NotifyConfig)
|
|
|
|
BuildRequires: cmake(KF5TextWidgets)
|
|
|
|
BuildRequires: cmake(KF5XmlGui)
|
|
|
|
BuildRequires: cmake(LibsnoreQt5) >= 0.7
|
2020-11-23 09:10:34 +00:00
|
|
|
BuildRequires: cmake(Qca-qt5)
|
2022-07-22 18:12:12 +00:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.5.0
|
2020-11-23 09:05:40 +00:00
|
|
|
BuildRequires: cmake(Qt5Gui)
|
2016-08-25 19:00:21 +00:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools)
|
2020-11-23 09:05:40 +00:00
|
|
|
BuildRequires: cmake(Qt5Multimedia)
|
|
|
|
BuildRequires: cmake(Qt5Network)
|
|
|
|
BuildRequires: cmake(Qt5Script)
|
|
|
|
BuildRequires: cmake(Qt5Sql)
|
|
|
|
BuildRequires: cmake(Qt5WebEngine)
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
|
|
BuildRequires: cmake(dbusmenu-qt5)
|
2018-04-25 08:21:39 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2014-10-22 11:48:30 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%{?systemd_requires}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%description
|
2018-04-30 14:54:25 +00:00
|
|
|
Quassel IRC is a distributed IRC client, meaning that one (or
|
|
|
|
multiple) client(s) can attach to and detach from a central core --
|
|
|
|
much like the combination of GNU Screen and a text-based IRC client
|
|
|
|
such as WeeChat, but graphical.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%package mono
|
2018-04-30 14:54:25 +00:00
|
|
|
Summary: Standalone client for the Quassel 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}
|
2014-10-22 11:48:30 +00:00
|
|
|
Requires: libqt5_sql_backend
|
|
|
|
Recommends: libQt5Sql5-sqlite
|
2011-10-12 14:15:02 +00:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
Provides: %{name}_ui = %{version}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%description mono
|
2018-04-30 14:54:25 +00:00
|
|
|
Quassel IRC is a distributed IRC client, meaning that one (or
|
|
|
|
multiple) client(s) can attach to and detach from a central core --
|
|
|
|
much like the combination of GNU Screen and a text-based IRC client
|
|
|
|
such as WeeChat, but graphical.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
2018-04-30 14:54:25 +00:00
|
|
|
This is the quassel standalone client.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%package client
|
2018-04-30 14:54:25 +00:00
|
|
|
Summary: KDE client for the Quassel 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}
|
2022-07-22 18:12:12 +00:00
|
|
|
Requires: update-alternatives
|
|
|
|
Requires(post): update-alternatives
|
2011-10-12 14:15:02 +00:00
|
|
|
Provides: %{name}_ui = %{version}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%description client
|
2018-04-30 14:54:25 +00:00
|
|
|
Quassel IRC is a distributed IRC client, meaning that one (or
|
|
|
|
multiple) client(s) can attach to and detach from a central core --
|
|
|
|
much like the combination of GNU Screen and a text-based IRC client
|
|
|
|
such as WeeChat, but graphical.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
2018-04-30 14:54:25 +00:00
|
|
|
This is the quassel KDE client only.
|
2016-02-07 13:10:03 +00:00
|
|
|
|
|
|
|
%package client-qt5
|
2018-04-30 14:54:25 +00:00
|
|
|
Summary: Qt5 client for the Quassel IRC client
|
2016-02-07 13:10:03 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name}-base = %{version}
|
2022-07-22 18:12:12 +00:00
|
|
|
Requires: update-alternatives
|
|
|
|
Requires(post): update-alternatives
|
2016-02-07 13:10:03 +00:00
|
|
|
Provides: %{name}_ui = %{version}
|
|
|
|
|
|
|
|
%description client-qt5
|
2018-04-30 14:54:25 +00:00
|
|
|
Quassel IRC is a distributed IRC client, meaning that one (or
|
|
|
|
multiple) client(s) can attach to and detach from a central core --
|
|
|
|
much like the combination of GNU Screen and a text-based IRC client
|
|
|
|
such as WeeChat, but graphical.
|
2016-02-07 13:10:03 +00:00
|
|
|
|
|
|
|
This is the quassel Qt5 client only
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%package core
|
2018-04-30 14:54:25 +00:00
|
|
|
Summary: Core program for the Quassel IRC client
|
2012-08-07 19:34:03 +00:00
|
|
|
Group: Productivity/Networking/IRC
|
2014-10-22 11:48:30 +00:00
|
|
|
Requires: libqt5_sql_backend
|
2011-07-29 14:45:46 +00:00
|
|
|
Requires: logrotate
|
2014-10-22 11:48:30 +00:00
|
|
|
Requires(pre): %fillup_prereq
|
2019-04-26 10:55:25 +00:00
|
|
|
Requires(pre): shadow
|
2014-10-22 11:48:30 +00:00
|
|
|
Recommends: libqt5-sql-sqlite
|
2024-02-07 12:12:47 +00:00
|
|
|
Provides: group(%{name}core)
|
|
|
|
Provides: user(%{name}core)
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%description core
|
2018-04-30 14:54:25 +00:00
|
|
|
Quassel IRC is a distributed IRC client, meaning that one (or
|
|
|
|
multiple) client(s) can attach to and detach from a central core --
|
|
|
|
much like the combination of GNU Screen and a text-based IRC client
|
|
|
|
such as WeeChat, but graphical.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
2018-04-30 14:54:25 +00:00
|
|
|
This is the core only.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%package base
|
2018-04-30 14:54:25 +00:00
|
|
|
Summary: Base files for the Quassel 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}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%description base
|
2018-04-30 14:54:25 +00:00
|
|
|
Quassel IRC is a distributed IRC client, meaning that one (or
|
|
|
|
multiple) client(s) can attach to and detach from a central core --
|
|
|
|
much like the combination of GNU Screen and a text-based IRC client
|
|
|
|
such as WeeChat, but graphical.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
2018-04-30 14:54:25 +00:00
|
|
|
This contains common parts shared by %{name} and %{name}-client.
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%prep
|
2020-11-23 09:05:40 +00:00
|
|
|
%autosetup -p1 -n %{name}-%{realver}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
2016-02-13 08:50:05 +00:00
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/common/quassel.cpp
|
2011-07-29 14:45:46 +00:00
|
|
|
FAKE_BUILDTIME=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S')
|
2016-02-13 08:50:05 +00:00
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/common/quassel.cpp
|
2011-07-29 14:45:46 +00:00
|
|
|
|
2022-07-22 18:12:12 +00:00
|
|
|
%cmake_kf5 -d build -- -DUSE_QT5=ON -DWITH_WEBENGINE=ON -DWITH_KDE=ON -DENABLE_SHARED=OFF
|
2020-11-23 09:05:40 +00:00
|
|
|
%cmake_build
|
2016-02-07 13:10:03 +00:00
|
|
|
cd ..
|
2022-07-22 18:12:12 +00:00
|
|
|
%cmake_kf5 -d build-qt5 -- -DUSE_QT5=ON -DWITH_WEBENGINE=ON -DWITH_KDE=OFF -DENABLE_SHARED=OFF
|
2020-11-23 09:05:40 +00:00
|
|
|
%cmake_build
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%install
|
2015-03-09 13:05:07 +00:00
|
|
|
%kf5_makeinstall -C build
|
2016-02-07 13:10:03 +00:00
|
|
|
|
|
|
|
# Allow client qt5/kde co-install
|
|
|
|
mv %{buildroot}%{_bindir}/quasselclient %{buildroot}%{_bindir}/quasselclient-kde
|
|
|
|
install build-qt5/quasselclient %{buildroot}%{_bindir}/quasselclient-qt5
|
|
|
|
# Alternatives
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/quasselclient
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/quasselclient %{buildroot}%{_bindir}/quasselclient
|
|
|
|
|
2018-04-30 14:54:25 +00:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2011-10-12 14:15:02 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}core
|
2014-10-22 11:48:30 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_sbindir}
|
2013-10-14 20:04:49 +00:00
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/quasselcore.service
|
2015-03-09 13:05:07 +00:00
|
|
|
# Provide SUSE policy symlink /usr/sbin/rcFOO -> service
|
2013-10-14 20:04:49 +00:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcquasselcore
|
2017-11-24 07:06:14 +00:00
|
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.quasselcore
|
2011-10-12 14:15:02 +00:00
|
|
|
install -d -m 751 %{buildroot}%{_localstatedir}/log/%{name}
|
2014-10-22 11:48:30 +00:00
|
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}core
|
2011-07-29 14:45:46 +00:00
|
|
|
|
2022-07-22 18:12:12 +00:00
|
|
|
# actions svg icon dir is named incorrectly as 'action'
|
|
|
|
if [ -d %{buildroot}%{_datadir}/icons/hicolor/scalable/action ]; then
|
|
|
|
mv %{buildroot}%{_datadir}/icons/hicolor/scalable/action %{buildroot}%{_datadir}/icons/hicolor/scalable/actions
|
|
|
|
fi
|
|
|
|
|
2018-07-11 12:18:09 +00:00
|
|
|
# rewrite env shebang on scripts to normal shebang
|
|
|
|
sed -i '1{
|
2019-01-08 12:45:11 +00:00
|
|
|
s,^#!%{_bindir}/env *bash *$,#!/bin/bash,
|
|
|
|
s,^#!%{_bindir}/env *\([^ ]*\) *$,#!%{_bindir}/\1,
|
2018-07-11 12:18:09 +00:00
|
|
|
}' %{buildroot}%{_datadir}/%{name}/scripts/*
|
|
|
|
|
2011-07-29 14:45:46 +00:00
|
|
|
%pre core
|
2018-04-30 14:54:25 +00:00
|
|
|
%{_bindir}/getent group %{name}core >/dev/null || %{_sbindir}/groupadd -r %{name}core
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_bindir}/getent passwd %{name}core >/dev/null || %{_sbindir}/useradd -r -d %{_localstatedir}/lib/%{name}core \
|
2018-04-30 14:54:25 +00:00
|
|
|
-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
|
|
|
|
2016-02-07 13:10:03 +00:00
|
|
|
%post client
|
|
|
|
update-alternatives --install %{_bindir}/quasselclient quasselclient %{_bindir}/quasselclient-kde 20
|
|
|
|
|
|
|
|
%postun client
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
update-alternatives --remove quasselclient %{_bindir}/quasselclient-kde
|
|
|
|
fi
|
|
|
|
|
|
|
|
%post client-qt5
|
2016-02-07 14:16:44 +00:00
|
|
|
update-alternatives --install %{_bindir}/quasselclient quasselclient %{_bindir}/quasselclient-qt5 10
|
2016-02-07 13:10:03 +00:00
|
|
|
|
|
|
|
%postun client-qt5
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
update-alternatives --remove quasselclient %{_bindir}/quasselclient-qt5
|
|
|
|
fi
|
|
|
|
|
2011-07-29 14:45:46 +00:00
|
|
|
%files mono
|
2018-04-25 08:21:39 +00:00
|
|
|
%doc AUTHORS ChangeLog README.md
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_bindir}/%{name}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files client
|
2018-04-25 08:21:39 +00:00
|
|
|
%doc AUTHORS ChangeLog README.md
|
2016-02-07 13:10:03 +00:00
|
|
|
%{_bindir}/%{name}client-kde
|
|
|
|
%ghost %{_sysconfdir}/alternatives/quasselclient
|
|
|
|
%{_bindir}/%{name}client
|
|
|
|
|
|
|
|
%files client-qt5
|
2018-04-25 08:21:39 +00:00
|
|
|
%doc AUTHORS ChangeLog README.md
|
2016-02-07 13:10:03 +00:00
|
|
|
%{_bindir}/%{name}client-qt5
|
|
|
|
%ghost %{_sysconfdir}/alternatives/quasselclient
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_bindir}/%{name}client
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files core
|
2018-04-25 08:21:39 +00:00
|
|
|
%doc AUTHORS ChangeLog README.md
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_bindir}/%{name}core
|
|
|
|
%{_sbindir}/rc%{name}core
|
2013-10-14 20:04:49 +00:00
|
|
|
%{_unitdir}/%{name}core.service
|
2014-10-22 11:48:30 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}core
|
2011-10-12 14:15:02 +00:00
|
|
|
%attr(-,%{name}core,%{name}core) %dir %{_localstatedir}/lib/%{name}core
|
|
|
|
%attr(-,%{name}core,%{name}core) %dir %{_localstatedir}/log/%{name}
|
2017-11-24 07:06:14 +00:00
|
|
|
%{_fillupdir}/sysconfig.%{name}core
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files base
|
2018-04-25 07:59:34 +00:00
|
|
|
%license COPYING
|
2015-03-09 13:05:07 +00:00
|
|
|
%{_datadir}/%{name}
|
2022-07-22 18:12:12 +00:00
|
|
|
%{_datadir}/applications/%{name}client.desktop
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
2015-05-06 13:03:19 +00:00
|
|
|
%{_datadir}/knotifications5/%{name}.notifyrc
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%changelog
|