-Summary: boinc is a bash script used to manage boinc client
-Summary(pl): boinc to napisany w bash skrypt do zarz±dzanie klientem boinc
+# TODO:
+# - check for BR-s
+# - check configure options
+# - create devel and static subpackages
+# - package boinc script into separate package
+# - package BOINC server in separate package
+# - build files section
+# - maybe BOINC.spec
+# - find out license
+# - fix linking for amd64 arch
+# - wxGTK2-devel or wxGTK2-unicode-devel or wxGTK2-univ-devel or wxGTK2-univ-unicode-devel ??
+
+Summary: BOINC - Berkeley Open Infrastructure for Network Computing
+Summary(pl.UTF-8): BOINC - otwarta infrastruktura Berkeley do obliczeń sieciowych
Name: boinc
-Version: 1.5
-Release: 0.1
+Version: 5.3.22
+Release: 0.2
License: GPL
Group: Applications
-Source0: http://phileimer.9online.fr/%{name}-%{version}.tar.bz2
-# Source0-md5: 24a148365107dae762cbf76bc4cac8b4
-# Source0-size: 12859
-Patch0: %{name}-path.patch
-Requires: setiathome
-BuildArch: noarch
-URL: http://phileimer.9online.fr/
+# Source generated from:
+# cvs -d :pserver:anonymous:@alien.ssl.berkeley.edu:/home/cvs/cvsroot checkout -r boinc_core_release_5_3_22 boinc
+Source0: %{name}-%{version}.tar.gz
+# Source0-md5: c2a9af4f22e37b5a44a3ca45aa7eb843
+Source1: http://phileimer.9online.fr/%{name}-1.10.tar.bz2
+# Source1-md5: 85907bd0b9b3527ee90ee73ad2d4ea8d
+Patch0: %{name}-include.patch
+Patch1: %{name}-Makefile.am.patch
+Patch2: %{name}-platform.patch
+#Patch for boinc script not used for now don't delete
+#Patch2: %{name}-path.patch
+URL: http://boinc.berkeley.edu/
+# URL for boinc script
+#URL: http://phileimer.9online.fr/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: curl-devel
+BuildRequires: glut-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: mysql-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: wxGTK2-devel
+BuildRequires: wxWidgets-devel
+ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-boinc is a bash script for unix like systems used to manage client of
-the boinc project (Berkeley Open Infrastructure for Network
+BOINC is a software platform for distributed computing using
+volunteered computer resources.
+
+%description -l pl.UTF-8
+BOINC (Berkeley Open Infrastructure for Network Computing) to
+platforma programowa do rozproszonych obliczeń przy użyciu zasobów
+komputerowych ochotników.
+
+%package script
+Summary: boinc - a bash script used to manage boinc client
+Summary(pl.UTF-8): boinc - napisany w bashu skrypt do zarządzania klientem boinc
+Group: Applications
+URL: http://phileimer.9online.fr/
+
+%description script
+boinc is a bash script for Unix like systems used to manage client of
+the BOINC project (Berkeley Open Infrastructure for Network
Computing).
-%description -l pl
-boinc to napisany w bashu skrypt dla systemów uniksowych s³u¿±cy do
-zarz±dzania klientem projektu boinc (Berkeley Open Infrastructure for
+%description script -l pl.UTF-8
+boinc to napisany w bashu skrypt dla systemów uniksowych służący do
+zarządzania klientem projektu BOINC (Berkeley Open Infrastructure for
Network Computing).
%prep
%setup -q
-%patch0 -p0
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+mv clientgui/BOINCDial{u,U}pManager.h
+mv clientgui/BOINCDial{u,U}pManager.cpp
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+%ifarch %{x8664}
+ --with-boinc-platform=i686-pc-linux-gnu \
+%endif
+ --enable-static \
+ --enable-shared \
+ --with-x \
+ --with-ssl \
+ --with-wx-config=/usr/bin/wx-gtk2-ansi-config
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/%{_bindir}
-install -d $RPM_BUILD_ROOT%{_datadir}/boinc
-install boinc $RPM_BUILD_ROOT/%{_bindir}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES README
+%doc doc/
%attr(755,root,root) %{_bindir}/*
-%{_datadir}/boinc