]> git.pld-linux.org Git - packages/Smarty.git/blobdiff - Smarty.spec
up to 2.6.31, php7.2 compat
[packages/Smarty.git] / Smarty.spec
index ce9e703d679769c7420f535b85b13375c5ee4b7f..2ee8780eca3d67d5ea5e19f133debf915c32422d 100644 (file)
@@ -1,15 +1,16 @@
+%define                main_version    2.6.31
 %define                doc_version     2.6.14
 %define                php_min_version 5.0.0
 %include       /usr/lib/rpm/macros.php
 Summary:       Template engine for PHP
 Summary(pl.UTF-8):     System szablonów dla PHP
 Name:          Smarty
-Version:       2.6.27
+Version:       %{main_version}
 Release:       1
 License:       LGPL v2.1+
 Group:         Development/Languages/PHP
-Source0:       http://www.smarty.net/files/%{name}-%{version}.tar.gz
-# Source0-md5: da7b37c8d4c2f35570b3a9710547b22d
+Source0:       https://github.com/smarty-php/smarty/archive/v%{version}/smarty-%{version}.tar.gz
+# Source0-md5: 49f8c7f60d2c551589f937082a7faaa5
 # Source1Download: http://www.smarty.net/download-docs.php
 Source1:       http://www.smarty.net/distributions/manual/en/%{name}-%{doc_version}-docs.tar.gz
 # Source1-md5: 5123152dd248898a84b96b806f551e78
@@ -56,7 +57,7 @@ Documentation for Smarty template engine.
 Dokumentacja do systemu szablonów Smarty.
 
 %prep
-%setup -q -a1
+%setup -qn smarty-%{main_version} -a1
 %patch0 -p1
 cp -a libs/plugins/modifier.{,mb_}truncate.php
 %patch1 -p1
This page took 0.060471 seconds and 4 git commands to generate.