From 9b7239126c2da9fbec135492c6813f69c9d616a5 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Wed, 16 Jun 2010 01:14:28 +0800 Subject: python-five-filesystem 1-1 to get the URL --- .../F-13/python-five-filesystem-__init__.py | 7 ++++ .../F-13/python-five-filesystem.spec | 49 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 python-five-filesystem/F-13/python-five-filesystem-__init__.py create mode 100644 python-five-filesystem/F-13/python-five-filesystem.spec diff --git a/python-five-filesystem/F-13/python-five-filesystem-__init__.py b/python-five-filesystem/F-13/python-five-filesystem-__init__.py new file mode 100644 index 0000000..2e2033b --- /dev/null +++ b/python-five-filesystem/F-13/python-five-filesystem-__init__.py @@ -0,0 +1,7 @@ +# this is a namespace package +try: + import pkg_resources + pkg_resources.declare_namespace(__name__) +except ImportError: + import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/python-five-filesystem/F-13/python-five-filesystem.spec b/python-five-filesystem/F-13/python-five-filesystem.spec new file mode 100644 index 0000000..d865249 --- /dev/null +++ b/python-five-filesystem/F-13/python-five-filesystem.spec @@ -0,0 +1,49 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + +Name: python-five-filesystem +Version: 1 +Release: 1%{?dist} +Summary: python-five Libraries Base Filesystem + +Group: Development/Languages +License: ZPLv2.1 +URL: +Source0: python-five-filesystem-__init__.py + +BuildRequires: python-devel + +%description +This package contains the base filesystem layout for all Fedora +python-five-* packages. + +%prep + +%build + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{python_sitelib}/five +install -p -m 644 __init__.py $RPM_BUILD_ROOT%{python_sitelib}/five +mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/five +install -p -m 644 __init__.py $RPM_BUILD_ROOT%{python_sitearch}/five + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +# For noarch packages: sitelib +%{python_sitelib}/five +%if "%{python_sitearch}" != "%{python_sitelib}" +# For arch-specific packages: sitearch +%{python_sitearch}/five +%endif + +%changelog +* Wed Jun 16 2010 Robin Lee - 1-1 +- Initial package imitating python-zope-filesystem. -- cgit