2008-10-12 00:54:17 +02:00
|
|
|
#
|
2011-05-19 13:46:11 +02:00
|
|
|
# spec file for package boinc-client
|
|
|
|
#
|
2021-01-07 01:45:58 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-04-24 08:46:24 +02:00
|
|
|
# Copyright (c) 2016 by Aaron Puchert <aaronpuchert@alice-dsl.net>
|
2011-04-29 08:16:42 +02:00
|
|
|
# Copyright (c) 2011 by Sascha Manns <saigkill@opensuse.org>
|
2008-10-12 00:54:17 +02: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.
|
|
|
|
|
2018-12-17 23:02:20 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-10-12 00:54:17 +02:00
|
|
|
#
|
2011-05-19 13:46:11 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2017-11-23 19:07:23 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2016-12-27 22:25:14 +01:00
|
|
|
%define sonum 7
|
2012-02-02 21:59:26 +01:00
|
|
|
%define boinc_dir %{_localstatedir}/lib/boinc
|
2017-02-25 01:53:52 +01:00
|
|
|
|
|
|
|
# do not build boinc-manager on SLES 11/12
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%bcond_without manager
|
|
|
|
%else
|
|
|
|
%bcond_with manager
|
|
|
|
%endif
|
|
|
|
|
2011-05-02 07:14:10 +02:00
|
|
|
Name: boinc-client
|
2017-10-27 01:01:55 +02:00
|
|
|
%define rel_name %{name}_release
|
2021-07-16 11:47:11 +02:00
|
|
|
%define minor_version 7.18
|
|
|
|
Version: %{minor_version}.0
|
2012-07-01 22:09:47 +02:00
|
|
|
Release: 0
|
2019-12-08 15:39:55 +01:00
|
|
|
Summary: Client for Berkeley Open Infrastructure for Network Computing
|
2018-07-11 17:57:19 +02:00
|
|
|
License: GPL-3.0-or-later OR LGPL-3.0-or-later
|
2011-05-02 07:14:10 +02:00
|
|
|
Group: Productivity/Clustering/Computing
|
2019-09-10 12:19:51 +02:00
|
|
|
URL: https://boinc.berkeley.edu/
|
2016-04-24 10:24:14 +02:00
|
|
|
|
2019-09-10 12:19:51 +02:00
|
|
|
#Git-Clone: https://github.com/BOINC/boinc
|
2018-08-06 15:31:58 +02:00
|
|
|
Source0: https://github.com/BOINC/boinc/archive/client_release/%{minor_version}/%{version}.tar.gz
|
2014-06-17 15:30:54 +02:00
|
|
|
Source1: boinc-icons.tar.bz2
|
2011-05-02 07:14:10 +02:00
|
|
|
Source2: boinc-gui.desktop
|
|
|
|
Source3: README.SUSE
|
2012-02-02 21:59:26 +01:00
|
|
|
Source4: sysconfig.%{name}
|
2011-05-02 07:14:10 +02:00
|
|
|
Source5: boinc-logrotate
|
2012-02-02 21:59:26 +01:00
|
|
|
Source6: boinc-manager
|
2017-02-25 01:53:52 +01:00
|
|
|
Source10: %{name}.init
|
2014-03-22 15:01:27 +01:00
|
|
|
Source20: %{name}.service
|
2011-05-02 07:14:10 +02:00
|
|
|
Source100: %{name}-rpmlintrc
|
2017-09-03 12:14:15 +02:00
|
|
|
Patch2: boinc-docbook2x.patch
|
|
|
|
Patch4: xlocale.patch
|
2018-08-06 15:31:58 +02:00
|
|
|
Patch5: build-client-scripts.patch
|
|
|
|
Patch6: libboinc-shared.patch
|
2011-04-28 19:29:54 +02:00
|
|
|
BuildRequires: Mesa-devel
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: docbook2x
|
|
|
|
BuildRequires: docbook_4
|
|
|
|
BuildRequires: fdupes
|
2011-04-28 19:29:54 +02:00
|
|
|
BuildRequires: freeglut-devel
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-fortran
|
2011-04-28 19:29:54 +02:00
|
|
|
BuildRequires: gettext-runtime
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: libcurl-devel >= 7.17.1
|
|
|
|
BuildRequires: libjpeg-devel
|
2012-07-01 22:09:47 +02:00
|
|
|
BuildRequires: libnotify-devel
|
2011-10-02 17:30:05 +02:00
|
|
|
BuildRequires: libtool
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: openssl-devel
|
2011-05-19 13:46:11 +02:00
|
|
|
BuildRequires: pkg-config
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: sqlite3-devel
|
2014-06-17 15:14:55 +02:00
|
|
|
BuildRequires: xorg-x11-libXmu-devel
|
2020-08-26 17:57:44 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-util)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
2021-01-21 12:05:10 +01:00
|
|
|
Requires(pre): shadow
|
2017-09-04 18:37:20 +02:00
|
|
|
Requires: ca-certificates-mozilla
|
2014-06-17 15:30:54 +02:00
|
|
|
Recommends: boinc-client-lang = %{version}
|
2015-03-20 20:27:42 +01:00
|
|
|
Recommends: logrotate
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: wxWidgets-3_0-devel >= 3.0.2
|
2012-02-02 21:59:26 +01:00
|
|
|
%lang_package -n boinc-manager
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
|
|
|
%lang_package
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%description
|
2019-12-08 15:39:55 +01:00
|
|
|
The Berkeley Open Infrastructure for Network Computing (BOINC) is a
|
|
|
|
software platform which supports distributed computing, primarily in
|
|
|
|
the form of "volunteer" computing and "desktop grid" computing. It is
|
|
|
|
well suited for problems which are often described as "trivially
|
|
|
|
parallel". BOINC is the underlying software used by projects such as
|
2020-08-26 17:57:44 +02:00
|
|
|
Einstein@Home, ClimatePrediciton.net, the World Community
|
2019-12-08 15:39:55 +01:00
|
|
|
Grid, and many other distributed computing projects.
|
|
|
|
|
|
|
|
This package installs the BOINC client software, which will allow
|
|
|
|
your computer to participate in one or more BOINC projects, using
|
|
|
|
your spare computer time to search for cures for diseases, model
|
|
|
|
protein folding, study global warming, discover sources of
|
|
|
|
gravitational waves, and many other types of scientific and
|
|
|
|
mathematical research.
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
%package -n boinc-manager
|
2012-02-02 21:59:26 +01:00
|
|
|
Summary: GUI to control and monitor boinc-client
|
2011-05-02 07:14:10 +02:00
|
|
|
Group: Productivity/Scientific/Astronomy
|
2014-06-17 15:30:54 +02:00
|
|
|
Recommends: boinc-manager-lang = %{version}
|
2011-05-02 07:14:10 +02:00
|
|
|
Requires: hicolor-icon-theme
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
%description -n boinc-manager
|
|
|
|
The BOINC Manager is a graphical monitor and control utility for the BOINC
|
|
|
|
core client. It gives a detailed overview of the state of the client it is
|
|
|
|
monitoring. The BOINC Manager has two modes of operation, the "Simple View" in
|
|
|
|
which it only displays the most important information and the "Advanced View"
|
|
|
|
in which all information and all control elements are available.
|
|
|
|
|
2016-12-27 22:25:14 +01:00
|
|
|
%package -n libboinc%{sonum}
|
|
|
|
Summary: Berkeley Open Infrastructure For Network Computing library
|
2011-05-02 07:14:10 +02:00
|
|
|
Group: System/Libraries
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2016-12-27 22:25:14 +01:00
|
|
|
%description -n libboinc%{sonum}
|
2019-12-08 15:39:55 +01:00
|
|
|
The Berkeley Open Infrastructure for Network Computing (BOINC) is a
|
|
|
|
software platform which supports distributed computing.
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2018-08-06 15:31:58 +02:00
|
|
|
%package -n libboinc-devel
|
|
|
|
Summary: Development files for libboinc
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libboinc%{sonum} = %{version}-%{release}
|
|
|
|
Conflicts: %{name}-devel
|
|
|
|
Requires: openssl-devel
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2018-08-06 15:31:58 +02:00
|
|
|
%description -n libboinc-devel
|
|
|
|
This package contains development files for libboinc.
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%prep
|
2019-09-10 12:18:05 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2020-08-26 17:57:44 +02:00
|
|
|
%autosetup -p1 -n %{name}_release-%{minor_version}-%{version} -D -a 1
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2016-04-24 10:24:14 +02:00
|
|
|
%build
|
2018-08-06 15:31:58 +02:00
|
|
|
# Fix default path for boincscr
|
|
|
|
sed -i -e "s,/var/lib/boinc-client,%{boinc_dir},g" \
|
|
|
|
clientscr/screensaver_x11.cpp
|
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
# Install user hints
|
2014-06-17 15:30:54 +02:00
|
|
|
install -m0644 %{SOURCE3} README.SUSE
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Fix lang directories (refer patch2)
|
2014-06-17 15:30:54 +02:00
|
|
|
mv locale/pt_PT locale/pt
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2013-10-28 11:17:07 +01:00
|
|
|
# fix utf8
|
2017-10-27 00:08:40 +02:00
|
|
|
for i in 2005 2009 2010 2011; do
|
|
|
|
iconv -f ISO88591 -t UTF8 < checkin_notes_$i > checkin_notes_$i.utf8
|
|
|
|
touch -r checkin_notes_$i checkin_notes_$i.utf8
|
|
|
|
mv checkin_notes_$i.utf8 checkin_notes_$i
|
|
|
|
done
|
2013-10-28 11:17:07 +01:00
|
|
|
|
2012-02-11 00:18:48 +01:00
|
|
|
## remove files with questionable licenses
|
|
|
|
# removing NVIDIA owned file that does not clearly allow redistribution or
|
|
|
|
# modification
|
2017-10-27 00:08:40 +02:00
|
|
|
rm -r coprocs/NVIDIA
|
|
|
|
|
|
|
|
# Remove unnecessary components and files for other platforms.
|
2018-08-06 15:31:58 +02:00
|
|
|
rm -r android drupal mac_build mac_installer win_build xcompile
|
2012-02-11 00:18:48 +01:00
|
|
|
|
2016-04-24 10:24:14 +02:00
|
|
|
autoreconf -fi
|
2011-05-02 07:14:10 +02:00
|
|
|
%configure \
|
2016-04-24 08:46:24 +02:00
|
|
|
--enable-optimize \
|
|
|
|
--enable-shared \
|
2011-05-02 07:14:10 +02:00
|
|
|
--disable-static \
|
|
|
|
--enable-dynamic-client-linkage \
|
2017-02-25 01:53:52 +01:00
|
|
|
--enable-unicode \
|
2011-05-02 07:14:10 +02:00
|
|
|
--disable-server \
|
|
|
|
--disable-fcgi \
|
2017-02-25 01:53:52 +01:00
|
|
|
%if ! %{with manager}
|
|
|
|
--disable-manager \
|
|
|
|
%endif
|
|
|
|
--with-ssl
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Disable rpaths
|
2014-06-17 15:30:54 +02:00
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2014-06-17 15:30:54 +02:00
|
|
|
# Export Path and make
|
|
|
|
make clean %{?_smp_mflags}
|
|
|
|
make libboinc_la_LIBADD="-L%{_libdir} -lssl -ldl" \
|
2020-08-26 17:57:44 +02:00
|
|
|
CFLAGS="%{optflags} -W -pipe -fno-strict-aliasing -D_REENTRANT" \
|
|
|
|
CXXFLAGS="%{optflags} -W -pipe -fno-strict-aliasing -D_REENTRANT" \
|
2011-05-02 07:14:10 +02:00
|
|
|
DESTDIR=%{_prefix} %{?_smp_mflags}
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%install
|
2020-08-26 17:57:44 +02:00
|
|
|
%make_install
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2012-07-01 22:09:47 +02:00
|
|
|
for i in clientgui locale; do
|
2017-02-25 01:53:52 +01:00
|
|
|
%else
|
|
|
|
for i in locale; do
|
|
|
|
%endif
|
2012-07-01 22:09:47 +02:00
|
|
|
pushd $i
|
2020-08-26 17:57:44 +02:00
|
|
|
%make_install
|
2012-07-01 22:09:47 +02:00
|
|
|
popd
|
|
|
|
done
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Creates default folders
|
2014-06-17 15:30:54 +02:00
|
|
|
install -dm0755 %{buildroot}%{boinc_dir}
|
|
|
|
install -dm0755 %{buildroot}%{_mandir}/man1
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Remove old boinc & rename boinc_client to boinc-client
|
2014-06-17 15:30:54 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/boinc
|
|
|
|
mv -f %{buildroot}%{_bindir}/boinc_client %{buildroot}%{_bindir}/%{name}
|
2012-02-02 21:59:26 +01:00
|
|
|
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2012-02-02 21:59:26 +01:00
|
|
|
# Rename boincmgr and wrap it
|
2014-06-17 15:30:54 +02:00
|
|
|
mv %{buildroot}%{_bindir}/boincmgr %{buildroot}%{_bindir}/boinc-gui
|
2012-02-02 21:59:26 +01:00
|
|
|
|
|
|
|
# Install boinc-manager wrapper script
|
2014-06-17 15:30:54 +02:00
|
|
|
install -Dm0755 %{SOURCE6} %{buildroot}%{_bindir}/boinc-manager
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Use symlink instead of hardlink
|
|
|
|
pushd %{buildroot}%{_bindir}
|
2014-06-17 15:30:54 +02:00
|
|
|
ln -s -f %{name} boinc
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2014-06-17 15:30:54 +02:00
|
|
|
ln -s -f boinc-manager boincmgr
|
|
|
|
ln -s -f boinc-manager boincmanager
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2012-02-02 21:59:26 +01:00
|
|
|
popd
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2012-02-02 21:59:26 +01:00
|
|
|
# replace @boinc_dir@, @bindir@
|
2014-06-17 15:30:54 +02:00
|
|
|
sed -i \
|
2012-02-11 00:18:48 +01:00
|
|
|
-e "s,@boinc_dir@,%{boinc_dir},g" \
|
2012-02-02 21:59:26 +01:00
|
|
|
-e "s,@bindir@,%{_bindir},g" \
|
|
|
|
%{buildroot}%{_bindir}/boinc-manager
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2017-02-25 01:53:52 +01:00
|
|
|
# Remove {buildroot}/etc/sysconfig/boinc-client, it is added by %%fillup_and_insserv
|
2014-06-17 15:30:54 +02:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
2012-02-02 21:59:26 +01:00
|
|
|
|
2014-06-17 15:14:55 +02:00
|
|
|
# Install init and create symlink for rcboinc
|
2017-02-25 01:53:52 +01:00
|
|
|
install -dm0755 %{buildroot}%{_sbindir}
|
2014-06-17 15:30:54 +02:00
|
|
|
install -D -m0644 %{SOURCE20} %{buildroot}%{_unitdir}/%{name}.service
|
2017-02-25 01:53:52 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
# Install template for sysconfig
|
2017-11-23 19:07:23 +01:00
|
|
|
install -Dm0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name}
|
2013-10-28 11:17:07 +01:00
|
|
|
|
2012-02-02 21:59:26 +01:00
|
|
|
# Install logrotate
|
2014-06-17 15:30:54 +02:00
|
|
|
install -Dm0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2012-07-01 22:09:47 +02:00
|
|
|
# Install bash completion
|
2018-08-06 15:31:58 +02:00
|
|
|
install -Dpm0644 client/scripts/boinc.bash %{buildroot}%{_datadir}/bash-completion/completions/boinc
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2014-06-17 15:30:54 +02:00
|
|
|
# Install desktop-file and icons
|
|
|
|
install -Dm0644 boinc-gui-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/boinc-gui.png
|
|
|
|
install -Dm0644 boinc-gui-64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/boinc-gui.png
|
|
|
|
install -Dm0644 boinc-gui-48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/boinc-gui.png
|
|
|
|
install -Dm0644 boinc-gui-32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/boinc-gui.png
|
|
|
|
install -Dm0644 boinc-gui-22.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/boinc-gui.png
|
|
|
|
install -Dm0644 boinc-gui-16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/boinc-gui.png
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Install *.desktop File
|
|
|
|
%suse_update_desktop_file -i boinc-gui Utility
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2014-03-22 15:01:27 +01:00
|
|
|
# Remove static libraries, libtool archives
|
2018-08-06 15:31:58 +02:00
|
|
|
rm %{buildroot}%{_libdir}/*.la
|
2014-03-22 15:01:27 +01:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
# Relinking Manpages
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2014-06-17 15:30:54 +02:00
|
|
|
ln -s -f boincmgr.1.gz %{buildroot}%{_mandir}/man1/boinc-manager.1.gz
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2014-06-17 15:30:54 +02:00
|
|
|
ln -s -f boinccmd.1.gz %{buildroot}%{_mandir}/man1/boinccmd.1.gz
|
|
|
|
ln -s -f boinc.1.gz %{buildroot}%{_mandir}/man1/boinc.1.gz
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
# Install fake /var/lib/boinc
|
2014-06-17 15:30:54 +02:00
|
|
|
install -dm0755 %{buildroot}%{_var}/lib/boinc
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
# Prepare $LANG Packages
|
2012-07-01 22:09:47 +02:00
|
|
|
%find_lang BOINC-Client
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2011-04-28 19:29:54 +02:00
|
|
|
%find_lang BOINC-Manager
|
2017-02-25 01:53:52 +01:00
|
|
|
%else
|
2021-07-16 11:47:11 +02:00
|
|
|
find %{buildroot}/%{_datadir}/locale/ -name "BOINC-Manager.mo" -delete
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%pre
|
2019-12-08 15:39:55 +01:00
|
|
|
getent group boinc >/dev/null || %{_sbindir}/groupadd -r boinc
|
2012-02-02 21:59:26 +01:00
|
|
|
# add user
|
2019-12-08 15:39:55 +01:00
|
|
|
getent passwd boinc >/dev/null || \
|
2012-02-02 21:59:26 +01:00
|
|
|
%{_sbindir}/useradd -c "BOINC Client" -d "%{_localstatedir}/lib/boinc" \
|
2019-12-08 15:39:55 +01:00
|
|
|
-g boinc -r -s /sbin/nologin boinc
|
2017-02-25 01:53:52 +01:00
|
|
|
# fix replacing old sysconfig file (r21)
|
2012-02-09 00:10:31 +01:00
|
|
|
if [ -f %{_sysconfdir}/sysconfig/%{name} ]; then
|
2017-02-25 01:53:52 +01:00
|
|
|
if ! grep -q "BOINC_BOINC_USR" %{_sysconfdir}/sysconfig/boinc-client; then
|
2012-02-09 00:10:31 +01:00
|
|
|
mv -f %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/sysconfig/%{name}.save
|
|
|
|
fi
|
|
|
|
fi
|
2014-03-22 15:01:27 +01:00
|
|
|
%service_add_pre %{name}.service
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%preun
|
2013-10-28 11:17:07 +01:00
|
|
|
%service_del_preun %{name}.service
|
2012-02-02 21:59:26 +01:00
|
|
|
|
|
|
|
%post
|
2017-02-25 01:53:52 +01:00
|
|
|
%{fillup_only}
|
2013-10-28 11:17:07 +01:00
|
|
|
%service_add_post %{name}.service
|
2012-07-01 22:09:47 +02:00
|
|
|
%{_sbindir}/usermod -c "BOINC Client" -s /sbin/nologin boinc 2>/dev/null || :
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2012-02-02 21:59:26 +01:00
|
|
|
%postun
|
2014-03-22 15:01:27 +01:00
|
|
|
%service_del_postun %{name}.service
|
2011-05-19 13:46:11 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%post -n boinc-manager
|
2014-06-17 15:30:54 +02:00
|
|
|
%{_bindir}/touch --no-create %{_datadir}/icons/hicolor || :
|
2011-04-28 19:29:54 +02:00
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun -n boinc-manager
|
2014-06-17 15:30:54 +02:00
|
|
|
%{_bindir}/touch --no-create %{_datadir}/icons/hicolor || :
|
2011-04-28 19:29:54 +02:00
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
|
fi
|
|
|
|
|
2016-12-27 22:25:14 +01:00
|
|
|
%post -n libboinc%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n libboinc%{sonum} -p /sbin/ldconfig
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2008-10-12 00:54:17 +02:00
|
|
|
%files
|
2018-08-06 15:31:58 +02:00
|
|
|
%license COPYING* COPYRIGHT
|
|
|
|
%doc README.SUSE
|
2011-04-28 19:29:54 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
2018-08-06 15:31:58 +02:00
|
|
|
%{_datadir}/bash-completion/completions/*
|
2008-10-12 00:54:17 +02:00
|
|
|
%{_bindir}/boinc
|
2012-02-02 21:59:26 +01:00
|
|
|
%{_bindir}/%{name}
|
2011-04-28 19:29:54 +02:00
|
|
|
%{_bindir}/boinccmd
|
2008-10-12 00:54:17 +02:00
|
|
|
%{_bindir}/switcher
|
2011-04-28 19:29:54 +02:00
|
|
|
%{_mandir}/man1/boinccmd.1.gz
|
|
|
|
%{_mandir}/man1/boinc.1.gz
|
2014-03-22 15:01:27 +01:00
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
%{_sbindir}/rc%{name}
|
2017-11-23 19:07:23 +01:00
|
|
|
%{_fillupdir}/sysconfig.%{name}
|
2020-08-26 17:57:44 +02:00
|
|
|
%attr(-,boinc,boinc) %{boinc_dir}/
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2017-02-25 01:53:52 +01:00
|
|
|
%files -n %{name}-lang -f BOINC-Client.lang
|
|
|
|
|
|
|
|
%if %{with manager}
|
2011-04-28 19:29:54 +02:00
|
|
|
%files -n boinc-manager
|
2012-02-02 21:59:26 +01:00
|
|
|
%{_bindir}/boinc-gui
|
|
|
|
%{_bindir}/boinc-manager
|
|
|
|
%{_bindir}/boincmgr
|
2012-02-06 00:23:12 +01:00
|
|
|
%{_bindir}/boincmanager
|
2017-02-25 01:53:52 +01:00
|
|
|
%{_bindir}/boincscr
|
2021-07-16 11:47:11 +02:00
|
|
|
%{_datadir}/applications/boinc.desktop
|
2011-04-28 19:29:54 +02:00
|
|
|
%{_datadir}/applications/boinc-gui.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
%{_mandir}/man1/boincmgr.1.gz
|
2012-07-01 22:09:47 +02:00
|
|
|
%{_mandir}/man1/boinc-manager.1.gz
|
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%files -n boinc-manager-lang -f BOINC-Manager.lang
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2009-05-04 17:59:30 +02:00
|
|
|
|
2016-12-27 22:25:14 +01:00
|
|
|
%files -n libboinc%{sonum}
|
2011-04-28 19:29:54 +02:00
|
|
|
%{_libdir}/*.so.*
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2018-08-06 15:31:58 +02:00
|
|
|
%files -n libboinc-devel
|
|
|
|
%{_libdir}/*.a
|
2011-04-28 19:29:54 +02:00
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_includedir}/boinc
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%changelog
|