]> git.pld-linux.org Git - packages/empy.git/commitdiff
- updated to 3.0.2
authorArtur Frysiak <artur@frysiak.net>
Mon, 30 Jun 2003 07:05:21 +0000 (07:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- install it as module and put wrapper in %%{_bindir}
- added docs

Changed files:
    empy.spec -> 1.8

empy.spec

index 379d1be13c8f7452e64555f8351eee3d4fea9e6f..dc786b06bc59776fd2d869e825a6d7b5e201b787 100644 (file)
--- a/empy.spec
+++ b/empy.spec
@@ -4,12 +4,12 @@
 Summary:       System for embedding Python expressions and statements in template text
 Summary(pl):   System wbudowywania wyra¿eñ jêzyka Python w pliki tekstowe
 Name:          empy
-Version:       2.1
+Version:       3.0.2
 Release:       1
 License:       GPL
 Group:         Applications/Text
 Source0:       http://www.alcyone.com/pyos/empy/%{name}-%{version}.tar.gz
-# Source0-md5: c3a114a9e412f9420b7c45de3708ecf8
+# Source0-md5: f1f8e84f2c1d076af983d0a57d96fb8b
 URL:           http://www.alcyone.com/pyos/empy/
 BuildRequires: rpm-pythonprov
 %pyrequires_eq python-modules
@@ -27,19 +27,31 @@ System wbudowywania wyra
 %setup -q
 
 %build
-sed 's;^#!/usr/local/bin/python;#!/usr/bin/python;' < em.py > em.py.1
-mv em.py.1 em.py
+python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_bindir}}
 
-install em.py $RPM_BUILD_ROOT%{_bindir}
+python setup.py install \
+       --root=$RPM_BUILD_ROOT
+
+cat > $RPM_BUILD_ROOT%{_bindir}/em.py <<"EOF"
+#!/usr/bin/python
+import em
+em.invoke(sys.argv[1:])
+EOF
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.py
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README *.em
+%doc README *.em doc
 %attr(755,root,root) %{_bindir}/*
+%{py_sitedir}/*.py[co]
This page took 0.064381 seconds and 4 git commands to generate.