-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rubygem-angular-rails-templates to 1.2.2
- Loading branch information
Showing
4 changed files
with
28 additions
and
71 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
packages/plugins/rubygem-angular-rails-templates/angular-rails-templates-1.1.0.gem
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/plugins/rubygem-angular-rails-templates/angular-rails-templates-1.2.2.gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../.git/annex/objects/6g/jG/SHA256E-s10240--f9f2010b70fb3aff53c85dc1a512624431c2b0468b5acac53fb7ffd6582089ba.2.gem/SHA256E-s10240--f9f2010b70fb3aff53c85dc1a512624431c2b0468b5acac53fb7ffd6582089ba.2.gem |
29 changes: 0 additions & 29 deletions
29
packages/plugins/rubygem-angular-rails-templates/enable-fips.patch
This file was deleted.
Oops, something went wrong.
68 changes: 27 additions & 41 deletions
68
packages/plugins/rubygem-angular-rails-templates/rubygem-angular-rails-templates.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,66 @@ | ||
# Template for Rubygem's spec file | ||
# It should work with f18, f19, rhel6 and rhel6 with SCL | ||
|
||
%{?scl:%scl_package rubygem-%{gem_name}} | ||
%{!?scl:%global pkg_name %{name}} | ||
|
||
# template: default | ||
%global gem_name angular-rails-templates | ||
|
||
Name: %{?scl_prefix}rubygem-%{gem_name} | ||
Version: 1.1.0 | ||
Release: 2%{?dist} | ||
Name: rubygem-%{gem_name} | ||
Version: 1.2.2 | ||
Release: 1%{?dist} | ||
Epoch: 1 | ||
Summary: Use your angular templates with rails' asset pipeline | ||
Group: Development/Languages | ||
License: MIT | ||
URL: https://github.com/pitr/angular-rails-templates | ||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | ||
Patch0: enable-fips.patch | ||
|
||
# start specfile generated dependencies | ||
Requires: ruby | ||
BuildRequires: ruby | ||
BuildRequires: rubygems-devel | ||
BuildArch: noarch | ||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} | ||
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}} | ||
|
||
Requires: %{?scl_prefix_ruby}ruby(rubygems) | ||
Requires: %{?scl_prefix}rubygem(railties) >= 4.2 | ||
Requires: %{?scl_prefix}rubygem(railties) < 7 | ||
Requires: %{?scl_prefix}rubygem(sprockets) >= 3.0 | ||
Requires: %{?scl_prefix}rubygem(sprockets) < 5 | ||
Requires: %{?scl_prefix}rubygem(tilt) | ||
Requires: %{?scl_prefix_ruby}ruby(release) | ||
|
||
BuildRequires: %{?scl_prefix_ruby}ruby(rubygems) | ||
BuildRequires: %{?scl_prefix_ruby}rubygems-devel | ||
BuildRequires: %{?scl_prefix_ruby}ruby(release) | ||
# end specfile generated dependencies | ||
|
||
%description | ||
Adds your HTML templates into Angular's $templateCache using Rails asset pipeline. | ||
It removes the need for AJAX calls to retrieve the templates (or for you to manually set them into the DOM). | ||
Use your angular templates with rails' asset pipeline. | ||
|
||
|
||
%package doc | ||
BuildArch: noarch | ||
Requires: %{name} = %{epoch}:%{version}-%{release} | ||
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc} | ||
Summary: Documentation for %{name} | ||
|
||
%description doc | ||
This package contains documentation for %{pkg_name} | ||
Documentation for %{name}. | ||
|
||
%prep | ||
%setup -n %{pkg_name}-%{version} -q -c -T | ||
%{?scl:scl enable %{scl} - <<EOF} | ||
%gem_install -n %{SOURCE0} | ||
%{?scl:EOF} | ||
pushd .%{gem_instdir} | ||
%patch0 -p1 | ||
popd | ||
%setup -q -n %{gem_name}-%{version} | ||
|
||
%build | ||
# Create the gem as gem install only works on a gem file | ||
gem build ../%{gem_name}-%{version}.gemspec | ||
|
||
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir | ||
# by default, so that we can move it into the buildroot in %%install | ||
%gem_install | ||
|
||
%install | ||
mkdir -p %{buildroot}%{gem_dir} | ||
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir} | ||
cp -a .%{gem_dir}/* \ | ||
%{buildroot}%{gem_dir}/ | ||
|
||
%files | ||
%dir %{gem_instdir} | ||
%{gem_instdir}/vendor/assets/javascripts/angular-rails-templates.js.erb | ||
%{gem_instdir}/LICENSE | ||
%license %{gem_instdir}/LICENSE | ||
%{gem_libdir} | ||
%{gem_instdir}/vendor | ||
%exclude %{gem_cache} | ||
%{gem_spec} | ||
%{gem_libdir} | ||
|
||
%files doc | ||
%doc %{gem_docdir} | ||
%doc %{gem_instdir}/README.md | ||
|
||
%changelog | ||
* Tue Nov 19 2024 Ewoud Kohl van Wijngaarden <[email protected]> - 1:1.2.2-1 | ||
- Update to 1.2.2 | ||
|
||
* Tue Apr 06 2021 Eric D. Helms <[email protected]> - 1:1.1.0-2 | ||
- Rebuild for Ruby 2.7 | ||
|
||
|