Stephan Kulow 2013-11-22 09:18:16 +00:00 committed by Git OBS Bridge
parent 65222d3670
commit e14ec5e4d9
4 changed files with 74 additions and 25 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7e8bda00c054c026d0bcea10dfa587907bf96c19c9a66317bc21fe391b36985
size 39936

3
mustache-0.99.5.gem Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c84be205017ada80aa4d4ad16b7af4bd89f840b26125a0e8eead5a914d279005
size 41472

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 22 08:40:26 UTC 2013 - coolo@suse.com
- updated to version 0.99.5
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Mar 24 16:40:07 CET 2012 - berendt@b1-systems.de Sat Mar 24 16:40:07 CET 2012 - berendt@b1-systems.de

View File

@ -1,8 +1,7 @@
# #
# spec file for package rubygem-mustache (Version 0.99.4) # spec file for package rubygem-mustache
# #
# Copyright (c) 2012 B1 Systems GmbH, Vohburg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,23 +15,25 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: rubygem-mustache Name: rubygem-mustache
Version: 0.99.4 Version: 0.99.5
Release: 0 Release: 0
%define mod_name mustache %define mod_name mustache
# %define mod_full_name %{mod_name}-%{version}
Group: Development/Languages/Ruby %define mod_branch -%{version}
License: GPLv2+ or Ruby %define mod_weight 9905
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: rubygems_with_buildroot_patch BuildRequires: ruby-macros >= 1
Requires: rubygems >= 1.8.15 BuildRequires: update-alternatives
#
Url: http://github.com/defunkt/mustache Url: http://github.com/defunkt/mustache
Source: %{mod_name}-%{version}.gem Source: http://rubygems.org/gems/%{mod_full_name}.gem
#
Summary: Mustache is a framework-agnostic way to render logic-free views Summary: Mustache is a framework-agnostic way to render logic-free views
License: GPL-2.0+ or Ruby
Group: Development/Languages/Ruby
PreReq: update-alternatives
%description %description
Inspired by ctemplate, Mustache is a framework-agnostic way to render Inspired by ctemplate, Mustache is a framework-agnostic way to render
logic-free views. logic-free views.
@ -44,24 +45,67 @@ consisting of ERB or HAML with random helpers and arbitrary logic,
your views are broken into two parts: a Ruby class and an HTML your views are broken into two parts: a Ruby class and an HTML
template. template.
%package doc
Summary: RDoc documentation for %{mod_name}
Group: Development/Languages/Ruby
Requires: %{name} = %{version}
%description doc
Documentation generated at gem installation time.
Usually in RDoc and RI formats.
%package testsuite
Summary: Test suite for %{mod_name}
Group: Development/Languages/Ruby
Requires: %{name} = %{version}
%description testsuite
Test::Unit or RSpec files, useful for developers.
%prep %prep
#gem_unpack
#if you need patches, apply them here and replace the # with a % sign in the surrounding lines
#gem_build
%build %build
%install %install
%gem_install %{S:0} %gem_install -f
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/mustache{,%{mod_branch}}
touch %{buildroot}%{_sysconfdir}/alternatives/mustache
ln -s %{_sysconfdir}/alternatives/mustache %{buildroot}%{_bindir}/mustache
mkdir -p %{buildroot}%{_docdir}/%{name}
ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md
ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE
%clean %post
%{__rm} -rf %{buildroot} /usr/sbin/update-alternatives --install \
%{_bindir}/mustache mustache %{_bindir}/mustache%{mod_branch} %{mod_weight}
%preun
if [ "$1" = 0 ] ; then
/usr/sbin/update-alternatives --remove mustache %{_bindir}/mustache%{mod_branch}
fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_docdir}/%{name}
%{_bindir}/mustache%{mod_branch}
%{_bindir}/mustache %{_bindir}/mustache
%ghost %{_sysconfdir}/alternatives/mustache
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem %files doc
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/ %defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec %doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/
%files testsuite
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test
%changelog %changelog