[packages/jquery-twitter-bootstrap] up to 2.3.2, version output dir
glen
glen at pld-linux.org
Wed Mar 26 15:48:17 CET 2014
commit b99806812760efc6dc9e05f70c324225b4b49cec
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Mar 26 16:47:32 2014 +0200
up to 2.3.2, version output dir
added default bcond to create symlink from this package version
jquery-twitter-bootstrap.spec | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/jquery-twitter-bootstrap.spec b/jquery-twitter-bootstrap.spec
index 9a3a4b7..b601298 100644
--- a/jquery-twitter-bootstrap.spec
+++ b/jquery-twitter-bootstrap.spec
@@ -1,20 +1,26 @@
+#
+# Conditional build:
+%bcond_without default # use this version as default version (symlink)
+
%define plugin twitter-bootstrap
%define altname bootstrap
Summary: Bootstrap - front-end framework for faster and easier web development
Name: jquery-%{plugin}
-Version: 2.3.1
+Version: 2.3.2
Release: 1
License: Apache License v2.0
Group: Applications/WWW
-Source0: http://twitter.github.com/bootstrap/assets/bootstrap.zip?/%{plugin}-%{version}.zip
-# Source0-md5: 99a94c7ced6527822470f9d9f5a58681
+Source0: http://getbootstrap.com/%{version}/assets/bootstrap.zip?/%{plugin}-%{version}.zip
+# Source0-md5: 2b2df1b111dfb560e7b0a1f1b8e0743a
URL: http://twitter.github.io/bootstrap/
BuildRequires: unzip
Requires: jquery >= 1.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _appdir %{_datadir}/jquery/%{plugin}
+%define jquerydir %{_datadir}/jquery
+%define basedir %{_datadir}/jquery/%{altname}
+%define _appdir %{basedir}-2.3
%description
Sleek, intuitive, and powerful front-end framework for faster and
@@ -47,9 +53,16 @@ ln -s %{altname}-responsive-%{version}.min.css $RPM_BUILD_ROOT%{_appdir}/css/%{a
cp -a %{altname}/img $RPM_BUILD_ROOT%{_appdir}
+%if %{with default}
+ln -s $(basename %{_appdir}) $RPM_BUILD_ROOT%{jquerydir}/%{altname}
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%{_appdir}
+%if %{with default}
+%{jquerydir}/%{altname}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/jquery-twitter-bootstrap.git/commitdiff/b99806812760efc6dc9e05f70c324225b4b49cec
More information about the pld-cvs-commit
mailing list