Added auto-selection of Tcl version based on Fedora version

This commit is contained in:
Jan Staněk 2014-08-22 11:49:05 +02:00
parent 7515b23d4d
commit 7bea281fe2

View File

@ -10,7 +10,7 @@
Summary: Library that implements an embeddable SQL database engine Summary: Library that implements an embeddable SQL database engine
Name: sqlite Name: sqlite
Version: %{rpmver} Version: %{rpmver}
Release: 1%{?dist} Release: 2%{?dist}
License: Public Domain License: Public Domain
Group: Applications/Databases Group: Applications/Databases
URL: http://www.sqlite.org/ URL: http://www.sqlite.org/
@ -37,7 +37,12 @@ BuildRequires: autoconf
%if %{with tcl} %if %{with tcl}
BuildRequires: /usr/bin/tclsh BuildRequires: /usr/bin/tclsh
BuildRequires: tcl-devel BuildRequires: tcl-devel
%{!?fedora:%{!?tcl_version: %global tcl_version 8.6}}
%if %{fedora} <= 20
%{!?tcl_version: %global tcl_version 8.5}
%else
%{!?tcl_version: %global tcl_version 8.6} %{!?tcl_version: %global tcl_version 8.6}
%endif
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}} %{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}}
%endif %endif
@ -204,6 +209,9 @@ make test
%endif %endif
%changelog %changelog
* Tue Aug 19 2014 Jan Stanek <jstanek@redhat.com> - 3.8.6-2
- Added auto-selection of Tcl version based on Fedora version
* Tue Aug 19 2014 Jan Stanek <jstanek@redhat.com> - 3.8.6-1 * Tue Aug 19 2014 Jan Stanek <jstanek@redhat.com> - 3.8.6-1
- Updated to version 3.8.6 (http://www.sqlite.org/releaselog/3_8_6.html) - Updated to version 3.8.6 (http://www.sqlite.org/releaselog/3_8_6.html)