rpms/python-zope-filesystem/F-9 python-zope-filesystem-__init__.py, NONE, 1.1 python-zope-filesystem.spec, NONE, 1.1

Conrad Meyer konradm at fedoraproject.org
Thu Dec 18 01:58:17 UTC 2008


Author: konradm

Update of /cvs/pkgs/rpms/python-zope-filesystem/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27384

Added Files:
	python-zope-filesystem-__init__.py python-zope-filesystem.spec 
Log Message:
Import.


--- NEW FILE python-zope-filesystem-__init__.py ---
# this is a namespace package
try:
    import pkg_resources
    pkg_resources.declare_namespace(__name__)
except ImportError:
    import pkgutil
    __path__ = pkgutil.extend_path(__path__, __name__)


--- NEW FILE python-zope-filesystem.spec ---
%define debug_package %{nil}
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-zope-filesystem
Version:        1
Release:        2%{?dist}
Summary:        Python-Zope Libraries Base Filesystem
Group:          Development/Languages
License:        ZPLv2.1
URL:            https://fedoraproject.org/wiki/SIGs/SciTech/SAGE
Source0:        python-zope-filesystem-__init__.py
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel


%description
This package contains the base filesystem layout for all Fedora
python-zope-* packages.


%prep
%setup -q -c -T
cp -p %{SOURCE0} __init__.py


%build
# nothing


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{python_sitelib}/zope
install -p -m 644 __init__.py $RPM_BUILD_ROOT%{python_sitelib}/zope
mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/zope
install -p -m 644 __init__.py $RPM_BUILD_ROOT%{python_sitearch}/zope

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
# For noarch packages: sitelib
%{python_sitelib}/zope
%if "%{python_sitearch}" != "%{python_sitelib}"
# For arch-specific packages: sitearch
%{python_sitearch}/zope
%endif


%changelog
* Wed Dec 17 2008 Conrad Meyer <konrad at tylerc.org> - 1-2
- Don't list files twice on non-lib64 platforms.
- Preserve timestamps.

* Sun Dec 14 2008 Conrad Meyer <konrad at tylerc.org> - 1-1
- Initial package.




More information about the fedora-extras-commits mailing list