rpms/python-unipath/devel import.log, NONE, 1.1 python-unipath.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Terje Røsten terjeros at fedoraproject.org
Tue Apr 14 19:45:44 UTC 2009


Author: terjeros

Update of /cvs/extras/rpms/python-unipath/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31319/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log python-unipath.spec 
Log Message:
Importing python-unipath.




--- NEW FILE import.log ---
python-unipath-0_2_1-2_fc10:HEAD:python-unipath-0.2.1-2.fc10.src.rpm:1239737998


--- NEW FILE python-unipath.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}

%global oname  Unipath

Summary:       Alternative to Python modules os, os.path and shutil
Name:          python-unipath
Version:       0.2.1
Release:       2%{?dist}
License:       Python
Group:         Development/Tools
URL  :         http://pypi.python.org/pypi/Unipath/
Source0:       http://pypi.python.org/packages/source/U/Unipath/%{oname}-%{version}.tar.gz
BuildArch:     noarch
BuildRequires: python-setuptools-devel python-nose dos2unix
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description

Unipath is a package for doing pathname calculations and filesystem
access in an object-oriented manner, an alternative to functions in
os.path, shutil and glob, and even some functions in os.* It's based
on Jason Orendorff's path.py but does not adhere as strictly to the
underlying functions' syntax, in order to provide more user
convenience and higher-level functionality. For example:

 o p.mkdir() succeeds silently if the directory already exists, and
 o p.mkdir(True) creates intermediate directories a la os.makedirs.
 o p.rmtree(parents=True) combines shutil.rmtree, os.path.isdir,
   os.remove, and os.removedirs, to recursively remove whatever it is
   if it exists.
 o p.read_file("rb") returns the file's contents in binary mode.
 o p.needs_update([other_path1, ...]) returns True if p doesn't exist
   or has an older timestamp than any of the others.
 o extra convenience functions in the unipath.tools module. dict2dir
   creates a directory hierarchy described by a dict. dump_path displays
   an ASCII tree of a directory hierarchy.

%prep
%setup -q -n %{oname}-%{version}
for f in doc/reference/{test_,}path_nr.py ; do
    dos2unix -k $f
done
for f in README.txt doc/reference/path_355.py ; do
    iconv -f ISO-8859-1 -t UTF-8 -o $f.utf8 $f && \
    touch -r $f $f.utf8 && \
    %{__mv} $f.utf8 $f
done

# To avoid warning about script without execute bit set
%{__sed} -i -e '1d' unipath/test.py

%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

%clean
%{__rm} -rf %{buildroot}

%check
%{__cp} unipath/test.py .
%{__python} test.py

%files
%defattr(-, root, root, -)
%doc BUGS.txt CHANGES doc/reference/ PKG-INFO README.html README.txt 
%{python_sitelib}/unipath/
%{python_sitelib}/%{oname}-%{version}-py%{pyver}.egg-info

%changelog
* Tue Apr 14 2009 Terje Rosten <terje.rosten at ntnu.no> - 0.2.1-2
- Minor changes taken from review

* Sun Mar 29 2009 Terje Rosten <terje.rosten at ntnu.no> - 0.2.1-1
- initial build


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-unipath/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	14 Apr 2009 16:10:18 -0000	1.1
+++ .cvsignore	14 Apr 2009 19:45:12 -0000	1.2
@@ -0,0 +1 @@
+Unipath-0.2.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-unipath/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	14 Apr 2009 16:10:18 -0000	1.1
+++ sources	14 Apr 2009 19:45:13 -0000	1.2
@@ -0,0 +1 @@
+da24f0e0d39931df3fc61f2db09d4e57  Unipath-0.2.1.tar.gz




More information about the fedora-extras-commits mailing list