[brltty] Remove %pyver

Kalev Lember kalev at fedoraproject.org
Thu Apr 4 14:06:37 UTC 2013


commit 8df2858285a3ff54fcdf8ce4f659535c2f97bc30
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Thu Apr 4 15:34:47 2013 +0200

    Remove %pyver
    
    Easier to use a glob than to extract the exact python version.

 brltty.spec |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/brltty.spec b/brltty.spec
index 9e8c724..ebc24bf 100644
--- a/brltty.spec
+++ b/brltty.spec
@@ -1,8 +1,6 @@
 %define pkg_version 4.5
 %define api_version 0.6.0
 
-%{!?pyver: %define pyver %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v")}
-
 %{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
 %{!?tcl_sitearch: %define tcl_sitearch %{_prefix}/%{_lib}/tcl%{tcl_version}}
 
@@ -284,7 +282,7 @@ exit 0
 
 %files -n python-brlapi
 %{python_sitearch}/brlapi.so
-%{python_sitearch}/Brlapi-%{api_version}-py%{pyver}.egg-info
+%{python_sitearch}/Brlapi-%{api_version}-*.egg-info
 
 %files -n brlapi-java
 %{_libdir}/brltty/libbrlapi_java.so


More information about the scm-commits mailing list