2008-10-12 00:54:17 +02:00
|
|
|
#
|
2011-05-19 13:46:11 +02:00
|
|
|
# spec file for package boinc-client
|
|
|
|
#
|
2012-02-02 21:59:26 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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
|
|
|
|
|
|
|
# Global definitions
|
2011-05-02 07:14:10 +02:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %wx_requires
|
|
|
|
%define version_ 6_10_60
|
2011-04-28 19:29:54 +02:00
|
|
|
%define soname 6
|
2012-02-02 21:59:26 +01:00
|
|
|
%define boinc_dir %{_localstatedir}/lib/boinc
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2011-05-02 07:14:10 +02:00
|
|
|
Name: boinc-client
|
|
|
|
Version: 6.10.60
|
|
|
|
Release: 1
|
|
|
|
Summary: The BOINC client core
|
2012-02-06 16:06:42 +01:00
|
|
|
License: 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/
|
2011-05-02 07:14:10 +02:00
|
|
|
Source0: boinc_core_release_%{version_}.tar.bz2
|
|
|
|
Source1: boinc-icons.tar.bz2
|
|
|
|
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: boincmanager
|
|
|
|
Source6: boinc-manager
|
2011-04-28 19:29:54 +02:00
|
|
|
# The source for this package was pulled from upstream's vcs. Use the
|
|
|
|
# following commands to generate the tarball:
|
|
|
|
#
|
|
|
|
# ./generate-tarball.sh boinc_core_release_%{version_}
|
|
|
|
#
|
|
|
|
# Trim all binaries and other unnecessary things.
|
2011-05-02 07:14:10 +02:00
|
|
|
Source8: generate-tarball.sh
|
2012-02-02 21:59:26 +01:00
|
|
|
Source10: %{name}.init
|
2011-05-02 07:14:10 +02:00
|
|
|
Source100: %{name}-rpmlintrc
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# PATCH-FIX-OPENSUSE boinc-guirpcauth.patch
|
|
|
|
# Create password file rw for group, this enables passwordless connection
|
|
|
|
# of manager from users of the boinc group.
|
|
|
|
# This won't be probably upstreamed as it might be unsafe for common usage
|
|
|
|
# without setting proper group ownership of the password file.
|
2011-05-02 07:14:10 +02:00
|
|
|
Patch0: boinc-guirpcauth.patch
|
2011-04-28 19:29:54 +02:00
|
|
|
# PATCH-FIX-OPENSUSE boinc-init.patch
|
2011-05-02 07:14:10 +02:00
|
|
|
Patch1: boinc-init.patch
|
2011-04-28 19:29:54 +02:00
|
|
|
# PATCH-FIX-OPENSUSE boinc-LC_MESSAGES.patch
|
2011-05-02 07:14:10 +02:00
|
|
|
Patch2: boinc-LC_MESSAGES.patch
|
2011-04-28 19:29:54 +02:00
|
|
|
# PATCH-FIX-OPENSUSE boinc-completion.patch
|
2011-05-02 07:14:10 +02:00
|
|
|
Patch3: boinc-completion.patch
|
2011-04-28 19:29:54 +02:00
|
|
|
# PATCH-FIX-OPENSUSE boinc-docbook2x.patch
|
2011-05-02 07:14:10 +02:00
|
|
|
Patch4: boinc-docbook2x.patch
|
2011-04-28 19:29:54 +02:00
|
|
|
# PATCH-FIX-OPENSUSE boinc-server.patch
|
2011-05-02 07:14:10 +02:00
|
|
|
Patch5: boinc-server.patch
|
2011-04-28 19:29:54 +02:00
|
|
|
# PATCH-FIX-OPENSUSE saigkill@opensuse.org adds define HAVE_STRCASESRTR
|
2012-02-02 21:59:26 +01:00
|
|
|
Patch6: %{name}-str_util.patch
|
2011-05-17 16:59:23 +02:00
|
|
|
# PATCH-FIX-OPENSUSE pth@suse.de use asprintf to fix buffer overflow
|
2012-02-02 21:59:26 +01:00
|
|
|
Patch7: %{name}-dynamic_buffers.patch
|
2011-05-02 07:14:10 +02:00
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
Requires(pre): pwdutils
|
|
|
|
Requires(pre): %insserv_prereq
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
BuildRequires: Mesa-devel
|
2011-05-02 07:14:10 +02:00
|
|
|
#BuildRequires: autoconf
|
|
|
|
#BuildRequires: automake
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: docbook2x
|
|
|
|
BuildRequires: docbook_4
|
|
|
|
#BuildRequires: fcgi-devel
|
|
|
|
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: gnutls-devel
|
|
|
|
BuildRequires: libcurl-devel >= 7.17.1
|
|
|
|
BuildRequires: libjpeg-devel
|
2011-10-02 17:30:05 +02:00
|
|
|
BuildRequires: libtool
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: libxslt
|
|
|
|
#BuildRequires: m4
|
|
|
|
#BuildRequires: make
|
2011-04-28 19:29:54 +02:00
|
|
|
BuildRequires: mysql-devel
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
#BuildRequires: patch
|
2011-05-19 13:46:11 +02:00
|
|
|
BuildRequires: pkg-config
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: pwdutils
|
|
|
|
BuildRequires: python-mysql
|
|
|
|
BuildRequires: sqlite3-devel
|
|
|
|
BuildRequires: xorg-x11-libXmu-devel
|
2011-04-29 16:44:39 +02:00
|
|
|
%if 0%{?suse_version} <= 1130
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildRequires: wxGTK-devel >= 2.6.0
|
2011-04-29 16:44:39 +02:00
|
|
|
%else
|
2011-04-28 19:29:54 +02:00
|
|
|
BuildRequires: wxWidgets-devel >= 2.8.7
|
2011-04-29 16:44:39 +02:00
|
|
|
%endif
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2011-05-02 07:14:10 +02:00
|
|
|
Requires: logrotate
|
|
|
|
Requires: cron
|
2012-02-04 01:38:54 +01:00
|
|
|
## !! Do not remove thie "hard" dependency !!
|
|
|
|
Requires: libboinc%{soname} = %{version}-%{release}
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
%lang_package
|
2012-02-02 21:59:26 +01:00
|
|
|
%lang_package -n boinc-manager
|
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
|
2012-02-06 00:23:12 +01:00
|
|
|
#Requires: %{name} = %{version}-%{release}
|
2011-05-02 07:14:10 +02:00
|
|
|
Requires: boinc-manager-lang = %{version}-%{release}
|
|
|
|
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: mysql-devel
|
|
|
|
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}.
|
|
|
|
|
|
|
|
%package -n libboinc%{soname}
|
2011-05-02 07:14:10 +02:00
|
|
|
Summary: Shared Libs for %{name}
|
|
|
|
Group: System/Libraries
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
%description -n libboinc%{soname}
|
|
|
|
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
|
2011-05-02 07:14:10 +02:00
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
Group: Documentation/Other
|
2011-04-28 19:29:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-05-02 07:14:10 +02:00
|
|
|
BuildArch: noarch
|
2011-04-28 19:29:54 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains documentation files for %{name}.
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%prep
|
2011-05-02 07:14:10 +02:00
|
|
|
%setup -q -n boinc_core_release_%{version_} -D -a 1
|
2011-04-28 19:29:54 +02:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
2011-05-17 16:59:23 +02:00
|
|
|
%patch7
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Install user hints
|
|
|
|
%{__install} -m0644 %{S:3} README.SUSE
|
|
|
|
|
|
|
|
# Fix lang directories (refer patch2)
|
|
|
|
%{__mv} locale/pt_PT locale/pt
|
|
|
|
%{__mv} locale/sv_SE locale/sv
|
|
|
|
|
|
|
|
# fix warning: deprecated conversion from string constant to 'char*'
|
|
|
|
pushd clientgui/common/
|
|
|
|
%{__sed} -i 's/static char/static const char/g' wxFlatNotebookImages.h
|
|
|
|
popd
|
|
|
|
pushd clientgui/res/
|
|
|
|
%{__sed} -i 's/static char/static const char/g' *.xpm
|
|
|
|
popd
|
|
|
|
pushd clientgui/res/skins/default/graphic/
|
|
|
|
%{__sed} -i 's/static char/static const char/g' *.xpm
|
|
|
|
popd
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%build
|
|
|
|
#remove ltmain.sh & run libtoolize and ./_autosetup
|
|
|
|
%{__rm} ltmain.sh
|
|
|
|
/usr/bin/libtoolize --force
|
|
|
|
./_autosetup
|
|
|
|
|
2011-05-02 07:14:10 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--enable-dynamic-client-linkage \
|
|
|
|
--disable-server \
|
|
|
|
--disable-fcgi \
|
|
|
|
--enable-unicode \
|
|
|
|
--with-ssl \
|
|
|
|
--with-x
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Disable rpaths
|
|
|
|
%{__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
|
|
|
|
|
|
|
|
# Export Path and make
|
|
|
|
%{__make} clean
|
2011-05-02 07:14:10 +02:00
|
|
|
%{__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
|
|
|
|
%{makeinstall}
|
|
|
|
|
|
|
|
# Creates default folders
|
2012-02-02 21:59:26 +01: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
|
2012-02-02 21:59:26 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_bindir}/boinc
|
|
|
|
%{__mv} -f %{buildroot}%{_bindir}/boinc_client %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
# Rename boincmgr and wrap it
|
|
|
|
%{__mv} %{buildroot}%{_bindir}/boincmgr %{buildroot}%{_bindir}/boinc-gui
|
|
|
|
|
|
|
|
# Install boinc-manager wrapper script
|
|
|
|
%{__install} -Dm0755 %{S:6} %{buildroot}%{_bindir}/boinc-manager
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Use symlink instead of hardlink
|
|
|
|
pushd %{buildroot}%{_bindir}
|
2012-02-02 21:59:26 +01:00
|
|
|
%{__ln_s} -f %{name} boinc
|
|
|
|
%{__ln_s} -f boinc-manager boincmgr
|
2012-02-06 00:23:12 +01:00
|
|
|
%{__ln_s} -f boinc-manager boincmanager
|
2012-02-02 21:59:26 +01:00
|
|
|
popd
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2012-02-02 21:59:26 +01:00
|
|
|
# replace @boinc_dir@, @bindir@
|
|
|
|
%{__sed} -i \
|
|
|
|
-e "s,@boincdir@,%{boinc_dir},g" \
|
|
|
|
-e "s,@bindir@,%{_bindir},g" \
|
|
|
|
%{buildroot}%{_bindir}/boinc-manager
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Remove /etc/sysconfig/boinc-client, it is added by %%fillup_and_insserv
|
2012-02-02 21:59:26 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
|
|
|
|
|
|
|
# Install init and create symlink to /etc/init.d/boinc-client
|
|
|
|
%{__install} -Dm0755 %{S:10} %{buildroot}%{_initrddir}/%{name}
|
|
|
|
%{__install} -dm0755 %{buildroot}%{_sbindir}
|
|
|
|
/bin/ln -sf %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
2011-04-28 19:29:54 +02:00
|
|
|
|
2012-02-02 21:59:26 +01:00
|
|
|
# Install logrotate
|
2011-05-02 07:14:10 +02:00
|
|
|
%{__install} -Dm0644 %{S:5} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Install bash completition
|
|
|
|
%{__install} -Dpm0644 client/scripts/boinc.bash %{buildroot}%{_sysconfdir}/bash_completion.d/boinc
|
|
|
|
|
2012-02-02 21:59:26 +01:00
|
|
|
# Install template for sysconfig
|
|
|
|
%{__install} -Dm0644 %{S:4} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
|
2011-04-28 19:29:54 +02:00
|
|
|
|
|
|
|
# Install desktop-file and icons
|
2012-02-02 21:59:26 +01:00
|
|
|
%{__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
|
|
|
|
|
|
|
# Move and rename icons
|
|
|
|
%{__mv} %{buildroot}%{_datadir}/boinc/boincmgr.16x16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/boincmgr.png
|
|
|
|
%{__mv} %{buildroot}%{_datadir}/boinc/boincmgr.32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/boincmgr.png
|
|
|
|
%{__mv} %{buildroot}%{_datadir}/boinc/boincmgr.48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/boincmgr.png
|
|
|
|
|
|
|
|
# Install *.desktop File
|
|
|
|
%suse_update_desktop_file -i boinc-gui Utility
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
# Remove libtool archives
|
|
|
|
%{__rm} %{buildroot}%{_libdir}/*.la
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
# Relinking Manpages
|
|
|
|
/bin/ln -sf boincmgr.1.gz %{buildroot}%{_mandir}/man1/boincmanager.1.gz
|
|
|
|
/bin/ln -sf boinccmd.1.gz %{buildroot}%{_mandir}/man1/boinccmd.1.gz
|
2012-02-02 21:59:26 +01:00
|
|
|
/bin/ln -sf 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
|
|
|
|
%{__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
|
|
|
|
%{__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
|
|
|
|
%find_lang BOINC-Manager
|
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
|
|
|
|
|
|
|
%clean
|
2011-04-28 19:29:54 +02:00
|
|
|
%{__rm} -rf '%{buildroot}'
|
|
|
|
|
|
|
|
%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" \
|
|
|
|
-g boinc -r -s /bin/bash boinc 2>/dev/null || :
|
2008-10-12 00:54:17 +02:00
|
|
|
|
|
|
|
%preun
|
2012-02-02 21:59:26 +01:00
|
|
|
%stop_on_removal %{name}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%fillup_and_insserv %{name}
|
|
|
|
%{_sbindir}/usermod -c "BOINC Client" boinc 2>/dev/null || :
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2012-02-02 21:59:26 +01:00
|
|
|
%postun
|
|
|
|
%restart_on_update %{name}
|
2009-05-04 17:59:30 +02:00
|
|
|
%insserv_cleanup
|
2011-05-19 13:46:11 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%post -n boinc-manager
|
|
|
|
/usr/bin/touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun -n boinc-manager
|
|
|
|
/usr/bin/touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%post -n libboinc%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libboinc%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%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,-)
|
2012-02-02 21:59:26 +01:00
|
|
|
%doc COPYING* COPYRIGHT INSTALL notes todo TODO_OLD README.SUSE
|
2011-04-28 19:29:54 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/bash_completion.d/
|
2012-02-02 21:59:26 +01:00
|
|
|
/var/adm/fillup-templates/sysconfig.%{name}
|
2008-10-12 00:54:17 +02:00
|
|
|
%{_bindir}/boinc
|
2012-02-02 21:59:26 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_sbindir}/rc%{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
|
|
|
%{_initrddir}/%{name}
|
|
|
|
%{_mandir}/man1/boinccmd.1.gz
|
|
|
|
%{_mandir}/man1/boinc.1.gz
|
|
|
|
%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
|
|
|
|
|
|
|
%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
|
2011-04-28 19:29:54 +02:00
|
|
|
%{_datadir}/applications/boinc-gui.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
%{_mandir}/man1/boincmgr.1.gz
|
|
|
|
%{_mandir}/man1/boincmanager.1.gz
|
|
|
|
|
|
|
|
%files -n boinc-manager-lang -f BOINC-Manager.lang
|
2009-05-04 17:59:30 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
%files -n libboinc%{soname}
|
|
|
|
%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
|