packages: bitcoin/bitcoin.spec - added -boost.patch and -nostatic.patch - b...

megabajt megabajt at pld-linux.org
Thu May 26 18:23:02 CEST 2011


Author: megabajt                     Date: Thu May 26 16:23:02 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added -boost.patch and -nostatic.patch
- builds, but needs wxWidgets 2.9 (DEVEL branch)

---- Files affected:
packages/bitcoin:
   bitcoin.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/bitcoin/bitcoin.spec
diff -u packages/bitcoin/bitcoin.spec:1.1 packages/bitcoin/bitcoin.spec:1.2
--- packages/bitcoin/bitcoin.spec:1.1	Wed May 25 15:19:24 2011
+++ packages/bitcoin/bitcoin.spec	Thu May 26 18:22:57 2011
@@ -7,11 +7,14 @@
 Group:		X11/Applications
 Source0:	http://downloads.sourceforge.net/bitcoin/%{name}-%{version}-linux.tar.gz
 # Source0-md5:	19e530a9b60e3a0987998a87b30d8cdc
+Patch0:		%{name}-boost.patch
+Patch1:		%{name}-nostatic.patch
 URL:		http://www.bitcoin.org
 BuildRequires:	boost-devel
-BuildRequires:	miniupnpc-devel
+BuildRequires:	db-cxx-devel
+BuildRequires:	miniupnpc-devel >= 1.5
 BuildRequires:	openssl-devel
-BuildRequires:	wxGTK2-unicode-devel
+BuildRequires:	wxGTK2-unicode-devel >= 2.9
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -21,23 +24,46 @@
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} -C src -f makefile.unix \
 	CXX="%{__cxx}" \
-	WXINCLUDEPATHS="$(wx-gtk2-unicode-config --cxxflags)" \
-	WXLIBS="$(wx-gtk2-unicode-config --libs)" \
+	WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
+	WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
+	USE_UPNP=1
+
+%{__make} -C src -f makefile.unix \
+	CXX="%{__cxx}" \
+	WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
+	WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
 	USE_UPNP=1 \
+	bitcoind
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_localedir}}
+
+install src/{bitcoin,bitcoind} $RPM_BUILD_ROOT%{_bindir}
+
+# install locales
+for dir in $(find locale/ -mindepth 1 -maxdepth 1 -type d); do
+	lang=$(basename $dir)
+	
+	install -d $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
+	install $dir/LC_MESSAGES/bitcoin.mo $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
+done
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/bitcoin
+%attr(755,root,root) %{_bindir}/bitcoind
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -45,6 +71,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/05/26 16:22:57  megabajt
+- added -boost.patch and -nostatic.patch
+- builds, but needs wxWidgets 2.9 (DEVEL branch)
+
 Revision 1.1  2011/05/25 13:19:24  arekm
 - initial/raw
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bitcoin/bitcoin.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list