]> git.pld-linux.org Git - packages/empy.git/commitdiff
- use py_postclean macro
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 4 Dec 2010 09:48:41 +0000 (09:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    empy.spec -> 1.26

empy.spec

index 4a5da36132cc555e97daf812769685a7bfda1e46..6da65d85a8fd905aa00f6b8fc412bfb0d3bc3e2e 100644 (file)
--- a/empy.spec
+++ b/empy.spec
@@ -10,6 +10,7 @@ Source0:      http://www.alcyone.com/software/empy/%{name}-%{version}.tar.gz
 URL:           http://www.alcyone.com/software/empy/
 BuildRequires: python >= 1:2.5
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
 %pyrequires_eq python-modules
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -25,13 +26,13 @@ System wbudowywania wyrażeń języka Python w pliki tekstowe.
 %setup -q
 
 %build
-python setup.py build
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_bindir}}
 
-python setup.py install \
+%{__python} setup.py install \
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
 
@@ -41,7 +42,7 @@ import em
 em.invoke(sys.argv[1:])
 EOF
 
-rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.084323 seconds and 4 git commands to generate.