rpms/python-enum/devel python-enum.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matej Cepl (mcepl) fedora-extras-commits at redhat.com
Fri Nov 23 17:14:39 UTC 2007


Author: mcepl

Update of /cvs/extras/rpms/python-enum/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20266

Modified Files:
	.cvsignore sources 
Added Files:
	python-enum.spec 
Log Message:
Initial upload.



--- NEW FILE python-enum.spec ---
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-enum
Version:        0.4.3
Release:        3%{?dist}
Summary:        Robust enumerated type support in Python

Group:          Development/Languages
License:        GPLv2+ or Python
URL:            http://cheeseshop.python.org/pypi/enum/
Source0:        http://pypi.python.org/packages/source/e/enum/enum-%{version}.tar.gz
Source1:        python-enum-README.txt
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel
%else
BuildRequires: python-setuptools
%endif

%description
This package provides a module for robust enumerations in Python.
    
%prep
%setup -q -n enum-%{version}
cp -p %{SOURCE1} README

%build
# Remove CFLAGS=... for noarch packages (unneeded)
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE.GPL LICENSE.PSF PKG-INFO README
%{python_sitelib}/*

%changelog
* Thu Nov 22 2007 Matej Cepl <mcepl at redhat.com> 0.4.3-3
- fix %%changelog

* Thu Nov 22 2007 Matej Cepl <mcepl at redhat.com> 0.4.3-2
- reduce %%description and put the stuff into README file.

* Thu Nov 22 2007 Matej Cepl <mcepl at redhat.com> 0.4.3-1.fc9
- The initial attempt to package.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-enum/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	23 Nov 2007 16:41:54 -0000	1.1
+++ .cvsignore	23 Nov 2007 17:14:06 -0000	1.2
@@ -0,0 +1,2 @@
+enum-0.4.3.tar.gz
+python-enum-README.txt


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-enum/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Nov 2007 16:41:54 -0000	1.1
+++ sources	23 Nov 2007 17:14:06 -0000	1.2
@@ -0,0 +1,2 @@
+f0e2bd1a0a581897ea3ed245a1db6c8e  enum-0.4.3.tar.gz
+5e3a14356d3e2e1ae5cc7bfb8c64ea74  python-enum-README.txt




More information about the fedora-extras-commits mailing list