summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Miƛkiewicz2005-12-09 21:30:54 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit06f1cd37bea4659a29fba244aab5e68f6fe5030d (patch)
tree8b430e700812355227ebe44032449b1a85e21db9
parenteea5edd06eb640fa148c9084a631d451c9edad47 (diff)
downloadpython-FormEncode-06f1cd37bea4659a29fba244aab5e68f6fe5030d.zip
python-FormEncode-06f1cd37bea4659a29fba244aab5e68f6fe5030d.tar.gz
- rel 2; package egg version
Changed files: python-FormEncode.spec -> 1.4
-rw-r--r--python-FormEncode.spec31
1 files changed, 18 insertions, 13 deletions
diff --git a/python-FormEncode.spec b/python-FormEncode.spec
index 7cb1520..91a5096 100644
--- a/python-FormEncode.spec
+++ b/python-FormEncode.spec
@@ -1,18 +1,17 @@
%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
@@ -29,25 +28,31 @@ struktur. Pozwala na deklaratywny sposób definiowania reguł poprawno¶ci
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