SPECS: python-4Suite.spec - --root still needs to be solved

arekm arekm at pld-linux.org
Fri Dec 30 12:49:04 CET 2005


Author: arekm                        Date: Fri Dec 30 11:49:04 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- --root still needs to be solved

---- Files affected:
SPECS:
   python-4Suite.spec (1.25 -> 1.26) 

---- Diffs:

================================================================
Index: SPECS/python-4Suite.spec
diff -u SPECS/python-4Suite.spec:1.25 SPECS/python-4Suite.spec:1.26
--- SPECS/python-4Suite.spec:1.25	Sat Mar 12 13:32:37 2005
+++ SPECS/python-4Suite.spec	Fri Dec 30 12:48:58 2005
@@ -1,20 +1,18 @@
 # $Revision$, $Date$
+# TODO:
+# - external expat
 
 %define		short_name	4Suite
-%define		snap_y		2003
-%define		snap_m		08
-%define		snap_d		08
-%define		snap		%{snap_y}%{snap_m}%{snap_d}
 Summary:	XML processing tools
 Summary(pl):	Narzędzia do przetwarzania XML-a
 Name:		python-%{short_name}
 Version:	1.0
-Release:	0.%{snap}.1
+%define	_rc	b1
+Release:	0.%{_rc}.1
 License:	Custom
 Group:		Development/Libraries
-#Source0:	ftp://ftp.fourthought.com/pub/%{short_name}/%{short_name}-%{version}.tar.gz
-Source0:	ftp://ftp.4suite.org/pub/cvs-snapshots/%{snap_y}-%{snap_m}-%{snap_d}-%{short_name}.tar.gz
-# Source0-md5:	bd8400a0468f18523b99078febbf9cd9
+Source0:	ftp://ftp.4suite.org/pub/4Suite/%{short_name}-%{version}%{_rc}.tar.bz2
+# Source0-md5:	d512d79dcbe08584d0b5ba4c9704a820
 URL:		http://4suite.org/
 BuildRequires:	python-devel >= 2.0
 %pyrequires_eq	python-modules
@@ -47,31 +45,35 @@
 Przykłady użycia 4Suite.
 
 %prep
-%setup -q -n %{short_name}
+%setup -q -n %{short_name}-%{version}%{_rc}
+
 cat > config.cache <<EOF
-[linux-i686-2.3]
+[linux-%{_target_cpu}-%{py_ver}]
 docdir = %{_datadir}/doc/%{name}-%{version}
 pythonlibdir = %{py_sitedir}
 sysconfdir = %{_sysconfdir}
 exec_prefix =
 libdir = %{_libdir}/%{short_name}
 datadir = %{_datadir}/%{short_name}
+localedir = %{_datadir}/locale
 localstatedir = %{_var}/lib/%{short_name}
 prefix =
 bindir = %{_bindir}
 EOF
 
 %build
-CFLAGS="%{rpmcflags}" python setup.py build --with-docs
+CFLAGS="%{rpmcflags}" python setup.py build
+
+grep -q "/usr/local" config.cache && exit 1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
 
-mv config.cache cc
-cat cc | sed -e "s#/usr/local#/usr#" > config.cache
+python setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
 
-python setup.py install --root=$RPM_BUILD_ROOT --with-docs
 cp -a demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}
 cp -a profile $RPM_BUILD_ROOT%{_examplesdir}/%{name}
 cp -a test $RPM_BUILD_ROOT%{_examplesdir}/%{name}
@@ -99,6 +101,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26  2005/12/30 11:48:58  arekm
+- --root still needs to be solved
+
 Revision 1.25  2005/03/12 12:32:37  troll
 - mass commit: remove obsolete BR: rpm-pythonprov
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-4Suite.spec?r1=1.25&r2=1.26&f=u



More information about the pld-cvs-commit mailing list