rubygem-temple/rubygem-temple.spec

77 lines
2.1 KiB
RPMSpec
Raw Normal View History

2020-08-21 10:15:56 +08:00
%global gem_name temple
Name: rubygem-%{gem_name}
Version: 0.8.0
Release: 3
2020-08-21 10:15:56 +08:00
Summary: Template compilation framework in Ruby
License: MIT
URL: https://github.com/judofyr/temple
Source0: https://rubygems.org/gems/temple-%{version}.gem
2020-08-24 14:12:45 +08:00
Patch0: rubygem-temple-0.8.2-Use-Erubi-instead-of-Erubis.patch
Patch1: rubygem-temple-0.8.0-object-regexp-removal-ruby32.patch
2020-08-24 14:12:45 +08:00
BuildRequires: ruby(release) rubygems-devel ruby rubygem-bacon rubygem(erubi) rubygem(tilt)
2020-08-21 10:15:56 +08:00
BuildArch: noarch
%description
Temple is an abstraction and a framework for compiling templates to pure Ruby.
It's all about making it easier to experiment, implement and optimize template
languages. If you're interested in implementing your own template language,
or anything else related to the internals of a template engine: You've come
to the right place.
2020-08-24 09:31:44 +08:00
%package help
2020-08-21 10:15:56 +08:00
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
2020-08-24 09:31:44 +08:00
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
2020-08-21 10:15:56 +08:00
Documentation for %{name}.
%prep
2020-08-24 14:12:45 +08:00
%setup -q -n %{gem_name}-%{version}
%patch0 -p1
%patch1 -p1
2020-08-21 10:15:56 +08:00
%build
2020-08-24 14:12:45 +08:00
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
2020-08-21 10:15:56 +08:00
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
bacon -Itest -a
popd
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
2020-08-24 09:31:44 +08:00
%files help
2020-08-21 10:15:56 +08:00
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGES
%doc %{gem_instdir}/EXPRESSIONS.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/temple.gemspec
%{gem_instdir}/test
%changelog
* Mon Aug 14 2023 liyanan <thistleslyn@163.com> - 0.8.0-3
- fix build error with ruby3.2
2020-08-24 14:12:45 +08:00
* Tue Jan 10 liyanan <liyanan32@h-partners.com> - 0.8.0-2
- Use Erubi instead of Erubis
2020-08-24 09:31:44 +08:00
* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 0.8.0-1
- package init