summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Lee <robinlee.sysu@gmail.com>2010-06-16 01:14:28 +0800
committerRobin Lee <robinlee.sysu@gmail.com>2010-06-16 01:14:28 +0800
commit9b7239126c2da9fbec135492c6813f69c9d616a5 (patch)
tree60cb019394ccc6af794d806ede551ceccd819b59
parent00133f46cb4e60442c64c8c4192c8bad0dc3a657 (diff)
downloadzope-rpm-9b7239126c2da9fbec135492c6813f69c9d616a5.tar.gz
zope-rpm-9b7239126c2da9fbec135492c6813f69c9d616a5.tar.xz
zope-rpm-9b7239126c2da9fbec135492c6813f69c9d616a5.zip
python-five-filesystem 1-1 to get the URL
-rw-r--r--python-five-filesystem/F-13/python-five-filesystem-__init__.py7
-rw-r--r--python-five-filesystem/F-13/python-five-filesystem.spec49
2 files changed, 56 insertions, 0 deletions
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 <robinlee.sysu@gmail.com> - 1-1
+- Initial package imitating python-zope-filesystem.