2011-07-29 14:45:57 +00:00
|
|
|
#
|
|
|
|
# spec file for package quassel
|
|
|
|
#
|
2016-02-07 09:52:09 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
2016-05-02 09:01:25 +00:00
|
|
|
Version: 0.12.4
|
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
|
2015-03-09 13:05:07 +00:00
|
|
|
Url: http://quassel-irc.org/
|
2015-04-21 09:21:30 +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
|
2014-07-31 15:31:21 +00:00
|
|
|
Source5: quassel-rpmlintrc
|
2015-07-05 06:31:23 +00:00
|
|
|
# PATCH-FIX-SUSE: Set the correct libraries and compiler flags in order to use qglobal.h in check_cxx_source_compiles function
|
|
|
|
Patch0: quassel-set-required-libs-and-flags.patch
|
2014-10-22 11:48:30 +00:00
|
|
|
BuildRequires: cmake >= 2.8.10
|
2015-03-09 13:05:07 +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: kconfigwidgets-devel
|
|
|
|
BuildRequires: kcoreaddons-devel
|
|
|
|
BuildRequires: kf5-filesystem
|
|
|
|
BuildRequires: knotifications-devel
|
|
|
|
BuildRequires: knotifyconfig-devel
|
|
|
|
BuildRequires: ktextwidgets-devel
|
|
|
|
BuildRequires: kxmlgui-devel
|
2014-10-22 11:48:30 +00:00
|
|
|
BuildRequires: phonon4qt5-devel
|
2016-02-13 08:50:05 +00:00
|
|
|
BuildRequires: snorenotify-qt5-devel >= 0.7
|
2013-10-14 20:04:49 +00:00
|
|
|
BuildRequires: systemd
|
2014-10-22 11:48:30 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
BuildRequires: pkgconfig(Qt5Script)
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt5WebKit)
|
|
|
|
BuildRequires: pkgconfig(Qt5WebKitWidgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(dbusmenu-qt5)
|
2015-03-09 13:05:07 +00:00
|
|
|
BuildRequires: pkgconfig(qca2-qt5)
|
2014-10-22 11:48:30 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2011-10-12 14:15:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-22 11:48:30 +00:00
|
|
|
%{?systemd_requires}
|
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}
|
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
|
|
|
|
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}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2016-02-07 13:10:03 +00:00
|
|
|
This is the quassel KDE client only
|
|
|
|
|
|
|
|
%package client-qt5
|
|
|
|
Summary: Modern, cross-platform, distributed IRC client
|
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name}-base = %{version}
|
|
|
|
Provides: %{name}_ui = %{version}
|
|
|
|
|
|
|
|
%description client-qt5
|
|
|
|
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 Qt5 client only
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%package core
|
|
|
|
Summary: Modern, cross-platform, distributed 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
|
|
|
|
Requires(pre): pwdutils
|
|
|
|
Recommends: libqt5-sql-sqlite
|
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}
|
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.
|
|
|
|
|
2014-10-22 11:48:30 +00:00
|
|
|
This contains common parts shared by %{name} and %{name}-client
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%prep
|
2015-04-21 09:21:30 +00:00
|
|
|
%setup -q
|
2015-07-03 06:25:51 +00:00
|
|
|
%patch0 -p1
|
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
|
|
|
|
2015-03-09 13:05:07 +00:00
|
|
|
%cmake_kf5 -d build -- -DUSE_QT5=ON -DWITH_WEBKIT=ON -DWITH_KDE=ON
|
2014-10-22 11:48:30 +00:00
|
|
|
make %{?_smp_mflags}
|
2016-02-07 13:10:03 +00:00
|
|
|
cd ..
|
|
|
|
%cmake_kf5 -d build-qt5 -- -DUSE_QT5=ON -DWITH_WEBKIT=ON -DWITH_KDE=OFF
|
|
|
|
make %{?_smp_mflags}
|
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
|
|
|
|
|
2011-07-29 14:45:46 +00:00
|
|
|
%fdupes %{buildroot}
|
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
|
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}
|
2014-10-22 11:48:30 +00:00
|
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}core
|
|
|
|
install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%pre core
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_bindir}/getent group %{name}core >/dev/null || %{_sbindir}/groupadd -r %{name}core || :
|
|
|
|
%{_bindir}/getent passwd %{name}core >/dev/null || %{_sbindir}/useradd -r -d %{_localstatedir}/lib/%{name}core \
|
2011-10-12 14:15:02 +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
|
|
|
|
2015-01-08 13:07:27 +00:00
|
|
|
%post base
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun base
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog README
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_bindir}/%{name}
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files client
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog README
|
2016-02-07 13:10:03 +00:00
|
|
|
%{_bindir}/%{name}client-kde
|
|
|
|
%ghost %{_sysconfdir}/alternatives/quasselclient
|
|
|
|
%{_bindir}/%{name}client
|
|
|
|
|
|
|
|
%files client-qt5
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog README
|
|
|
|
%{_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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog README
|
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
|
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
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}
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}core
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%files base
|
|
|
|
%defattr(-,root,root)
|
2016-02-07 13:10:03 +00:00
|
|
|
%{_datadir}/applications/%{name}client.desktop
|
2011-10-12 14:15:02 +00:00
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2015-03-09 13:05:07 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
2014-10-22 11:48:30 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
|
|
|
%{_datadir}/icons/hicolor/*/status/%{name}-*.png
|
2015-03-09 13:05:07 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/status/irc-channel-joined.png
|
|
|
|
%{_datadir}/icons/hicolor/*/status/irc-channel-parted.png
|
|
|
|
%{_datadir}/icons/hicolor/*/actions/im-user-away.png
|
|
|
|
%{_datadir}/icons/hicolor/*/actions/im-user-offline.png
|
|
|
|
%{_datadir}/icons/hicolor/*/actions/im-user.png
|
|
|
|
%{_datadir}/icons/hicolor/scalable/*/*
|
2015-05-06 13:03:19 +00:00
|
|
|
%{_datadir}/knotifications5/%{name}.notifyrc
|
2011-07-29 14:45:46 +00:00
|
|
|
|
|
|
|
%changelog
|