SPECS: python-FormEncode.spec - rel 2; package egg version
arekm
arekm at pld-linux.org
Fri Dec 9 22:31:00 CET 2005
Author: arekm Date: Fri Dec 9 21:31:00 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- rel 2; package egg version
---- Files affected:
SPECS:
python-FormEncode.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/python-FormEncode.spec
diff -u SPECS/python-FormEncode.spec:1.3 SPECS/python-FormEncode.spec:1.4
--- SPECS/python-FormEncode.spec:1.3 Fri Dec 9 22:12:36 2005
+++ SPECS/python-FormEncode.spec Fri Dec 9 22:30:54 2005
@@ -1,19 +1,18 @@
# $Revision$, $Date$
%define module FormEncode
-%define _module formencode
Summary: HTML form validation, generation, and convertion package
Summary(pl): Moduł do walidacji, tworzenia i konwersji formularzy HTML
Name: python-%{module}
Version: 0.4
-Release: 1
+Release: 2
License: PSF
Group: Development/Languages/Python
Source0: http://cheeseshop.python.org/packages/source/F/%{module}/%{module}-%{version}.tar.gz
# Source0-md5: 797852a19505f7d919db96dd994d0484
-Patch0: %{name}-disable-setuptools.patch
URL: http://formencode.org/
BuildRequires: python
+BuildRequires: python-setuptools
%pyrequires_eq python-modules
Requires: python-elementtree
BuildArch: noarch
@@ -30,28 +29,34 @@
i niezależne od nich wypełnianie i generowanie formularzy.
%prep
-%setup -q -n %{module}-%{version}
-%patch0 -p1
+%setup -q -c
%build
-rm -rf ez_setup
-python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-python setup.py install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
-find $RPM_BUILD_ROOT%{py_sitescriptdir}/%{_module}/ -name \*.py | xargs rm -f
+%{_bindir}/easy_install \
+ --no-deps \
+ --script-dir="$RPM_BUILD_ROOT%{_bindir}" \
+ --install-dir="$RPM_BUILD_ROOT%{py_sitescriptdir}" \
+ --always-unzip \
+ --ignore-conflicts-at-my-risk \
+ %{SOURCE0}
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+echo '%{module}-%{version}-py%{py_ver}.egg' > $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}.pth
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{py_sitescriptdir}/%{_module}
-%doc docs/*.txt
+%{py_sitescriptdir}/%{module}*
+%doc %{module}*/docs/*.txt
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -59,6 +64,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2005/12/09 21:30:54 arekm
+- rel 2; package egg version
+
Revision 1.3 2005/12/09 21:12:36 arekm
- up to 0.4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-FormEncode.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list