2008-10-12 00:54:17 +02:00
|
|
|
#
|
2011-05-19 13:46:11 +02:00
|
|
|
# spec file for package boinc-client
|
|
|
|
#
|
2017-01-02 11:32:30 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-05-19 13:46:11 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
|
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
|
2016-12-27 22:25:14 +01:00
|
|
|
Version: 7.6.33
|
2012-07-01 22:09:47 +02:00
|
|
|
Release: 0
|
2014-03-22 15:01:27 +01:00
|
|
|
Summary: The BOINC client
|
2014-03-26 23:35:37 +01:00
|
|
|
License: GPL-3.0+ or LGPL-3.0+
|
2011-05-02 07:14:10 +02:00
|
|
|
Group: Productivity/Clustering/Computing
|
2011-05-19 13:46:11 +02:00
|
|
|
Url: http://boinc.berkeley.edu/
|
2016-04-24 10:24:14 +02:00
|
|
|
|
|
|
|
#Git-Clone: git://github.com/BOINC/boinc
|
2017-02-25 01:53:52 +01:00
|
|
|
Source0: https://github.com/BOINC/boinc/archive/client_release/7.6/%{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
|
|
|
Patch1: boinc-guirpcauth.patch
|
|
|
|
Patch2: boinc-docbook2x.patch
|
|
|
|
Patch3: 0001-Fix-1530-null-pointer-dereference.patch
|
|
|
|
Patch4: xlocale.patch
|
2017-09-13 22:26:14 +02:00
|
|
|
Patch5: 0001-MGR-support-wxWidgets-without-webview.patch
|
2017-02-25 01:53:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
#
|
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: libxslt
|
|
|
|
BuildRequires: openssl-devel
|
2011-05-19 13:46:11 +02:00
|
|
|
BuildRequires: pkg-config
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: pwdutils
|
|
|
|
BuildRequires: sqlite3-devel
|
2014-06-17 15:14:55 +02:00
|
|
|
BuildRequires: xorg-x11-libXmu-devel
|
2017-09-04 21:52:48 +02:00
|
|
|
Requires(pre): pwdutils
|
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
|
|
|
#
|
2014-06-17 15:30:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
BuildRequires: libXScrnSaver-devel
|
|
|
|
BuildRequires: libXi-devel
|
|
|
|
BuildRequires: libxcb-devel
|
|
|
|
BuildRequires: xcb-util-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: xorg-x11-libxcb-devel
|
|
|
|
%endif
|
2017-02-25 01:53:52 +01:00
|
|
|
#
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%define has_systemd 1
|
|
|
|
%else
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): %insserv_prereq
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
%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
|
2011-04-28 19:29:54 +02:00
|
|
|
The Berkeley Open Infrastructure for Network Computing (BOINC) is an open-
|
|
|
|
source 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 SETI@home, Einstein@Home,
|
|
|
|
ClimatePrediciton.net, the World Community 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.
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package devel
|
2012-02-02 21:59:26 +01:00
|
|
|
Summary: Development files for boinc-client
|
2011-05-02 07:14:10 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: openssl-devel
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%description devel
|
|
|
|
This package contains development files for %{name}.
|
|
|
|
|
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}
|
2011-04-28 19:29:54 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
%package doc
|
2016-12-27 22:25:14 +01:00
|
|
|
Summary: Documentation files for boinc-client
|
2011-05-02 07:14:10 +02:00
|
|
|
Group: Documentation/Other
|
2017-02-25 01:53:52 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildArch: noarch
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
%description doc
|
2016-12-27 22:25:14 +01:00
|
|
|
This package contains documentation files for the BOINC client.
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%prep
|
2016-04-24 08:46:24 +02:00
|
|
|
%setup -q -n %{name}_release-7.6-%{version} -D -a 1
|
2017-09-13 22:26:14 +02:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2016-04-24 10:24:14 +02:00
|
|
|
%build
|
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
|
|
|
|
iconv -f ISO88591 -t UTF8 < checkin_notes_2005 > checkin_notes_2005.utf8
|
|
|
|
touch -r checkin_notes_2005 checkin_notes_2005.utf8
|
|
|
|
mv checkin_notes_2005.utf8 checkin_notes_2005
|
|
|
|
|
2014-03-22 15:01:27 +01:00
|
|
|
iconv -f ISO88591 -t UTF8 < checkin_notes_2009 > checkin_notes_2009.utf8
|
|
|
|
touch -r checkin_notes_2009 checkin_notes_2009.utf8
|
|
|
|
mv checkin_notes_2009.utf8 checkin_notes_2009
|
|
|
|
|
|
|
|
iconv -f ISO88591 -t UTF8 < checkin_notes_2010 > checkin_notes_2010.utf8
|
|
|
|
touch -r checkin_notes_2010 checkin_notes_2010.utf8
|
|
|
|
mv checkin_notes_2010.utf8 checkin_notes_2010
|
2013-10-28 11:17:07 +01:00
|
|
|
|
2017-02-25 01:53:52 +01:00
|
|
|
%if %{with manager}
|
2013-10-28 11:17:07 +01:00
|
|
|
# fix permissions and newlines on source files
|
|
|
|
chmod 644 clientgui/{DlgItemProperties.h,AsyncRPC.cpp,DlgItemProperties.cpp}
|
|
|
|
sed -i 's/\r//' clientgui/DlgItemProperties.cpp
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
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
|
2014-06-17 15:30:54 +02:00
|
|
|
rm coprocs/NVIDIA/include/nvapi.h
|
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
|
|
|
|
%if %{with manager}
|
|
|
|
--with-x \
|
|
|
|
%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" \
|
2011-04-28 19:29:54 +02:00
|
|
|
CFLAGS="%{optflags} -g -W -pipe -fno-strict-aliasing -D_REENTRANT" \
|
|
|
|
CXXFLAGS="%{optflags} -g -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
|
2014-06-17 15:30:54 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
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
|
2014-06-17 15:30:54 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
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}
|
|
|
|
%if 0%{?has_systemd}
|
2014-06-17 15:30:54 +02:00
|
|
|
install -D -m0644 %{SOURCE20} %{buildroot}%{_unitdir}/%{name}.service
|
2013-10-28 11:17:07 +01:00
|
|
|
# And remove sysvinit script installed by boinc
|
2014-06-17 15:30:54 +02:00
|
|
|
rm -r %{buildroot}/%{_initddir}
|
2017-02-25 01:53:52 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
%else
|
|
|
|
install -Dm0755 %{SOURCE10} %{buildroot}%{_initddir}/%{name}
|
|
|
|
/bin/ln -sf %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
%endif
|
|
|
|
# Install template for sysconfig
|
|
|
|
install -Dm0644 %{SOURCE4} %{buildroot}%{_localstatedir}/adm/fillup-templates/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
|
2014-06-17 15:30:54 +02:00
|
|
|
install -Dpm0644 client/scripts/boinc.bash %{buildroot}%{_sysconfdir}/bash_completion.d/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
|
2014-06-17 15:30:54 +02:00
|
|
|
rm %{buildroot}%{_libdir}/*.{a,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
|
|
|
# Fix spurious-executable-perm
|
2014-06-17 15:30:54 +02:00
|
|
|
chmod 0644 doc/*.php
|
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
|
|
|
|
find %{buildroot}/%{_datadir}/locale/ -name "BOINC-Manager.mo" -print0 | xargs -0 rm -f --
|
|
|
|
%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
|
2012-02-02 21:59:26 +01:00
|
|
|
# add group
|
|
|
|
%{_sbindir}/groupadd -r boinc 2>/dev/null || :
|
|
|
|
# add user
|
|
|
|
%{_sbindir}/useradd -c "BOINC Client" -d "%{_localstatedir}/lib/boinc" \
|
2012-02-09 00:44:31 +01:00
|
|
|
-g boinc -r -s /sbin/nologin boinc 2>/dev/null || :
|
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
|
2017-02-25 01:53:52 +01:00
|
|
|
%if 0%{?has_systemd}
|
2014-03-22 15:01:27 +01:00
|
|
|
%service_add_pre %{name}.service
|
2017-02-25 01:53:52 +01:00
|
|
|
%endif
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%preun
|
2017-02-25 01:53:52 +01:00
|
|
|
%if 0%{?has_systemd}
|
2013-10-28 11:17:07 +01:00
|
|
|
%service_del_preun %{name}.service
|
2017-02-25 01:53:52 +01:00
|
|
|
%else
|
|
|
|
%stop_on_removal %{name}
|
|
|
|
%endif
|
2012-02-02 21:59:26 +01:00
|
|
|
|
|
|
|
%post
|
2017-02-25 01:53:52 +01:00
|
|
|
%if 0%{?has_systemd}
|
|
|
|
%{fillup_only}
|
2013-10-28 11:17:07 +01:00
|
|
|
%service_add_post %{name}.service
|
2017-02-25 01:53:52 +01:00
|
|
|
%else
|
|
|
|
%fillup_and_insserv %{name}
|
|
|
|
%endif
|
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
|
2017-02-25 01:53:52 +01:00
|
|
|
%if 0%{?has_systemd}
|
2014-03-22 15:01:27 +01:00
|
|
|
%service_del_postun %{name}.service
|
2017-02-25 01:53:52 +01:00
|
|
|
%else
|
|
|
|
%restart_on_update %{name}
|
|
|
|
%insserv_cleanup
|
|
|
|
%endif
|
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
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2016-12-27 22:25:14 +01:00
|
|
|
%postun -n libboinc%{sonum} -p /sbin/ldconfig
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
%post devel -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun devel -p /sbin/ldconfig
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%files
|
2011-04-28 19:29:54 +02:00
|
|
|
%defattr(-,root,root,-)
|
2014-03-22 15:01:27 +01:00
|
|
|
%doc COPYING* COPYRIGHT notes todo README.SUSE
|
2011-04-28 19:29:54 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
2013-04-03 15:11:46 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/bash_completion.d/*
|
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
|
2017-02-25 01:53:52 +01:00
|
|
|
%if 0%{?has_systemd}
|
2014-03-22 15:01:27 +01:00
|
|
|
%{_unitdir}/%{name}.service
|
2017-02-25 01:53:52 +01:00
|
|
|
%else
|
|
|
|
%{_initddir}/%{name}
|
|
|
|
%endif
|
2014-03-22 15:01:27 +01:00
|
|
|
%{_sbindir}/rc%{name}
|
2017-02-25 19:35:11 +01:00
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
2011-04-28 19:29:54 +02:00
|
|
|
%defattr(-,boinc,boinc,-)
|
|
|
|
%{_localstatedir}/lib/boinc/
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc checkin_*
|
2012-02-02 21:59:26 +01:00
|
|
|
%doc doc/*.txt doc/bolt doc/logo doc/*.php doc/*.png doc/*.html
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2017-02-25 01:53:52 +01:00
|
|
|
%files -n %{name}-lang -f BOINC-Client.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%if %{with manager}
|
2011-04-28 19:29:54 +02:00
|
|
|
%files -n boinc-manager
|
|
|
|
%defattr(-,root,root,-)
|
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
|
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
|
2014-06-17 15:30:54 +02:00
|
|
|
%defattr(-,root,root)
|
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
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.so.*
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%files devel
|
2011-04-28 19:29:54 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_includedir}/boinc
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%changelog
|