From a8757eb2f3f209761d68c615c80b3c8dddee9cb0 Mon Sep 17 00:00:00 2001 From: Brian C. Lane Date: Aug 16 2013 19:00:34 +0000 Subject: - Removed BuildRoot from spec - Rename package to python-astroid - Upstream v1.0.0 --- diff --git a/.gitignore b/.gitignore index e69de29..f767b7c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/astroid-version-1.0.0.tar.bz2 diff --git a/python-astroid.spec b/python-astroid.spec new file mode 100644 index 0000000..c6126ee --- /dev/null +++ b/python-astroid.spec @@ -0,0 +1,238 @@ +%if 0%{?fedora} > 12 +%global with_python3 0 +%else +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")} +%endif + +# This needs to be pulled from the source tarball +%global commit 1d6914a1a1a0 + + +Name: python-astroid +Version: 1.0.0 +Release: 2%{?dist} +Summary: Python Abstract Syntax Tree New Generation +Group: Development/Languages +License: GPLv2+ +URL: http://www.astroid.org +Source0: https://bitbucket.org/logilab/astroid/get/astroid-version-%{version}.tar.bz2 + +Provides: python-astroid = %{version}-%{release} +Obsoletes: python-astng + +BuildArch: noarch +BuildRequires: python-devel python-setuptools +BuildRequires: python-logilab-common >= 0.60.0 +Requires: python-logilab-common >= 0.60.0 +%if 0%{?with_python3} +BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-logilab-common >= 0.60.0 +%endif # if with_python3 + +%description +The aim of this module is to provide a common base representation of +python source code for projects such as pychecker, pyreverse, +pylint, and others. It extends the class defined in the compiler.ast +python module with some additional methods and attributes. + +%if 0%{?with_python3} +%package -n python3-astroid +Summary: Python Abstract Syntax Tree New Generation +Group: Development/Languages +Requires: python3-logilab-common >= 0.60.0 + +%description -n python3-astroid +The aim of this module is to provide a common base representation of +python source code for projects such as pychecker, pyreverse, +pylint, and others. It extends the class defined in the compiler.ast +python module with some additional methods and attributes. +%endif # if with_python3 + +%prep +%setup -q -n logilab-astroid-%{commit} + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif # with_python3 + +%build +%{__python} setup.py build + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif # with_python3 + +%install +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +rm -rf %{buildroot}%{python3_sitelib}/astroid/test +# Provided by the python3-logilab-common package +rm -f %{buildroot}%{python3_sitelib}/logilab/__init__.* +# Fix encoding in readme +for FILE in README; do + iconv -f iso-8859-15 -t utf-8 $FILE > $FILE.utf8 + mv -f $FILE.utf8 $FILE +done +popd +%endif # with_python3 + +%{__python} setup.py install -O1 --skip-build --root %{buildroot} +rm -rf %{buildroot}%{python_sitelib}/astroid/test +# Provided by the python-logilab-common package +rm -f %{buildroot}%{python_sitelib}/logilab/__init__.* +# Fix encoding in readme +for FILE in README; do + iconv -f iso-8859-15 -t utf-8 $FILE > $FILE.utf8 + mv -f $FILE.utf8 $FILE +done + +%check +%{__python} setup.py test + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py test +popd +%endif # with_python3 + +%files +%doc README COPYING +%{python_sitelib}/astroid +%{python_sitelib}/astroid*.egg-info + +%if 0%{?with_python3} +%files -n python3-astroid +%doc README COPYING +%{python3_sitelib}/astroid +%{python3_sitelib}/astroid*.egg-info +%endif # with_python3 + +%changelog +* Fri Aug 16 2013 Brian C. Lane 1.0.0-2 +- Removed BuildRoot from spec + +* Tue Aug 13 2013 Brian C. Lane 1.0.0-1 +- Rename package to python-astroid +- Upstream v1.0.0 + +* Sun Aug 04 2013 Fedora Release Engineering - 0.24.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.24.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jan 10 2013 Brian C. Lane 0.24.1-1 +- Upstream v0.24.1 +- Add python3-logilab-astng subpackage to spec. Not ready to turn it on yet + due to this upstream bug: http://www.logilab.org/ticket/110213 + +* Fri Aug 03 2012 Brian C. Lane 0.24.0-1 +- Upstream v0.24.0 + +* Sat Jul 21 2012 Fedora Release Engineering - 0.23.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Mar 14 2012 Brian C. Lane 0.23.1-1 +- Upstream v0.23.1 + +* Sat Jan 14 2012 Fedora Release Engineering - 0.23.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Nov 18 2011 Brian C. Lane - 0.23.0-1 +- Upstream v0.23.0 + +* Fri Jul 29 2011 Brian C. Lane - 0.22.0-1 +- Upstream v0.22.0 + +* Mon Mar 28 2011 Brian C. Lane - 0.21.1-1 +- Upstream 0.21.1 +- Add unit tests to spec + +* Tue Feb 08 2011 Fedora Release Engineering - 0.21.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 06 2010 Brian C. Lane - 0.21.0-2 +- Add version to requirement for python-logilab-common so that updates will + work correctly. + +* Mon Nov 29 2010 Brian C. Lane - 0.21.0-1 +- Upstream 0.21.0 + +* Thu Jul 22 2010 David Malcolm - 0.20.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Thu Jul 08 2010 Brian C. Lane - 0.20.1-1 +- Upstream 0.20.1 + +* Thu Mar 25 2010 Brian C. Lane - 0.20.0-2 +- Added python-setuptools to BuildRequires + +* Thu Mar 25 2010 Brian C. Lane - 0.20.0-1 +- Upstream 0.20.0 + +* Sun Aug 30 2009 Konstantin Ryabitsev - 0.19.1-1 +- Upstream 0.19.1 (bugfixes) + +* Sun Jul 26 2009 Fedora Release Engineering - 0.19.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jun 17 2009 Konstantin Ryabitsev - 0.19.0-1 +- Upstream 0.19.0 +- Fixes for better support of python 2.5 and 2.6 + +* Thu Feb 26 2009 Fedora Release Engineering - 0.17.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Dec 27 2008 Konstantin Ryabitsev - 0.17.4-1 +- Upstream 0.17.4 + +* Thu Jan 17 2008 Konstantin Ryabitsev - 0.17.2-1 +- Upstream 0.17.2 +- Package .egg-info file + +* Mon Dec 24 2007 Konstantin Ryabitsev - 0.17.1-1 +- Upstream 0.17.1 +- Adjust license to a more specific GPLv2+ +- Fix docs to be valid utf-8 + +* Sun Apr 01 2007 Konstantin Ryabitsev - 0.17.0-1 +- Upstream 0.17.0 + +* Sun Dec 17 2006 Konstantin Ryabitsev - 0.16.3-1 +- Upstream 0.16.3 + +* Tue Sep 26 2006 Konstantin Ryabitsev - 0.16.1-2 +- Setting Provides/Obsoletes as per guidelines. + +* Tue Sep 26 2006 Konstantin Ryabitsev - 0.16.1-1 +- Renaming package python-logilab-astng from python-astng. Should have done + a while ago. +- Upstream version 0.16.1 + +* Mon May 01 2006 Konstantin Ryabitsev - 0.16.0-0 +- Version 0.16.0 + +* Sun Mar 12 2006 Konstantin Ryabitsev - 0.15.1-1 +- Version 0.15.1 + +* Thu Jan 12 2006 Konstantin Ryabitsev - 0.14.0-1 +- Version 0.14.0 +- Drop the modname patch + +* Tue Nov 15 2005 Konstantin Ryabitsev - 0.13.1-2 +- Patch for the modname traceback + +* Sat Nov 12 2005 Konstantin Ryabitsev - 0.13.1-1 +- Fedora Extras import +- Disttagging + +* Mon Nov 07 2005 Konstantin Ryabitsev - 0.13.1-0.1 +- Version 0.13.1 +- Remove our own GPL license text, since it's now included. + +* Sun Nov 06 2005 Konstantin Ryabitsev - 0.13.0-0.1 +- Initial packaging. diff --git a/sources b/sources index e69de29..b19dbc8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e7aeaf5b02af4526e577ba5787243445 astroid-version-1.0.0.tar.bz2