SPECS: python-logilab-astng.spec (NEW) - initial pld release

charles charles at pld-linux.org
Tue Nov 15 11:24:12 CET 2005


Author: charles                      Date: Tue Nov 15 10:24:12 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial pld release

---- Files affected:
SPECS:
   python-logilab-astng.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-logilab-astng.spec
diff -u /dev/null SPECS/python-logilab-astng.spec:1.1
--- /dev/null	Tue Nov 15 11:24:12 2005
+++ SPECS/python-logilab-astng.spec	Tue Nov 15 11:24:06 2005
@@ -0,0 +1,65 @@
+# $Revision$, $Date$
+
+%define	module	astng
+Summary:	Python Abstract Syntax Tree New Generation
+Name:		python-logilab-astng
+Version:	0.13.1
+Release:	1
+License:	GPL
+Group:		Development/Languages/Python
+Source0:	ftp://ftp.logilab.fr/pub/astng/%{module}-%{version}.tar.gz
+# Source0-md5:	57b899fb6caf7b88f33161b89ee1e6fa
+URL:		http://www.logilab.org/projects/astng
+BuildRequires:	python-devel
+BuildRequires:	python-modules >= 2.2.1
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.112
+%pyrequires_eq	python-modules
+Requires:	python-logilab-common
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The aim of this module is to provide a common base representation of
+python source code for projects such as pychecker, pyreverse,
+pylint... Well, actually the development of this library is essentialy
+governed by pylint's needs.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/logilab/astng/
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/logilab/astng/
+
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm -f {} \;
+
+# see install section of python-logilab-common for explanation
+rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/logilab/__init__.*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{py_sitescriptdir}/logilab/astng
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/11/15 10:24:06  charles
+- initial pld release
+
================================================================



More information about the pld-cvs-commit mailing list