[xflr5] Fix spec

Sandro Mani smani at fedoraproject.org
Mon Mar 24 22:54:36 UTC 2014


commit 92f7cb9343cd363255d9137ca50b5b5cfab6dbc0
Author: Sandro Mani <manisandro at gmail.com>
Date:   Mon Mar 24 23:54:36 2014 +0100

    Fix spec

 xflr5.spec |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xflr5.spec b/xflr5.spec
index 26d14b1..5799674 100644
--- a/xflr5.spec
+++ b/xflr5.spec
@@ -41,7 +41,7 @@ Reynolds Numbers. It includes:
 
 
 %prep
-%setup -q -n %{name}-%{ver}
+%setup -q -n %{name}-%(v=%{version}; echo ${v%.*})
 
 # Fix FSF addresses
 find . -type f -print0 | xargs -0 sed -i 's|59 Temple Place, Suite 330, Boston, MA  02111-1307|51 Franklin Street, Fifth Floor, Boston, MA  02110-1301|'
@@ -50,7 +50,7 @@ find . -type f -print0 | xargs -0 sed -i 's|59 Temple Place, Suite 330, Boston,
 find . -type f -exec dos2unix {} \;
 
 %build
-%qmake_qt4 PREFIX=%{_prefix} DEFINES='APPLICATION_DATA_DIR=\\\"%{_datadir}/%{name}\\\"' %{name}_6.09.pro
+%qmake_qt4 PREFIX=%{_prefix} DEFINES='APPLICATION_DATA_DIR=\\\"%{_datadir}/%{name}\\\"' %{name}_%(v=%{version}; echo ${v%.*}).pro
 make %{?_smp_mflags}
 make -C doc/latex
 lrelease-qt4 translations/*.ts


More information about the scm-commits mailing list