- define name for module
authorlisu <lisu@pld-linux.org>
Fri, 10 Dec 2010 08:41:00 +0000 (08:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use rm macro

Changed files:
    python-pycairo.spec -> 1.45

python-pycairo.spec

index 8fcbd70eff14c2ef17ad3452d1fc1c0569a4a247..90edc20255786cfcf42bda3e4761a542e06d49a5 100644 (file)
@@ -1,6 +1,7 @@
+%define                module  pycairo
 Summary:       Python Cairo bindings
 Summary(pl.UTF-8):     Dowiązania Pythona dla Cairo
-Name:          python-pycairo
+Name:          python-%{module}
 Version:       1.8.10
 Release:       3
 License:       LGPL v2.1 or MPL v1.1
@@ -56,7 +57,7 @@ Example programs using Python Cairo bindings.
 Przykładowe programy w Pythonie używające Cairo.
 
 %prep
-%setup -q -n pycairo-%{version}
+%setup -q -n %{module}-%{version}
 
 %build
 %{__libtoolize}
@@ -77,7 +78,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}
 
 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-rm $RPM_BUILD_ROOT%{py_sitedir}/cairo/*.{la,py}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/cairo/*.{la,py}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.062558 seconds and 4 git commands to generate.