diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-18 07:18:53 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-18 07:18:53 +0000 |
commit | f13d4aa082328794919f77dbc340113e811a4985 (patch) | |
tree | 14595ce82b355d97aca66e6f9624f49d80b8ba2c | |
parent | 1b6ec6bd8723c03cfcbd4f482de4bf8602a90e1b (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-autoguid.spec | 82 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/autoguid-1.1.gem diff --git a/rubygem-autoguid.spec b/rubygem-autoguid.spec new file mode 100644 index 0000000..a411248 --- /dev/null +++ b/rubygem-autoguid.spec @@ -0,0 +1,82 @@ +# Generated from autoguid-1.1.gem by gem2rpm -*- rpm-spec -*- +%global gem_name autoguid + +Name: rubygem-%{gem_name} +Version: 1.1 +Release: 1%{?dist} +Summary: Autoguid adds human readable uuids to your models +License: MIT +URL: http://hacktivism.cc +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# BuildRequires: rubygem(rspec) >= 3.0.0 +# BuildRequires: rubygem(rspec) < 3.1 +# BuildRequires: rubygem(rspec) >= 3.0.0 +# BuildRequires: rubygem(sqlite3) >= 1.3.9 +# BuildRequires: rubygem(sqlite3) < 1.4 +# BuildRequires: rubygem(sqlite3) >= 1.3.9 +BuildArch: noarch + +%description +Autoguid lets you trivially add human readable uuids to all +your models, a whitelisted set of models, or a blacklisted set. +Indices are automatically created based on a configuration option. +There's also a rake task that will backfill these uuids into resources that +have already been created. +To get started, include the gem file, run `bundle install`, then run +`rake autoguid:install`. From there, edit the config/initializers/autoguid.rb +file to specifcy your configuration. Next, migrate your tables with +`rake autoguid:migrate:up` and `rake autoguid:migrate:backfill` as required. +`rake autoguid:migrate:drop_all` will drop all autoguid generated columns and +the data in them. You can always change the config/initializers/autoguid.rb +file +and rerun `rake autoguid:migrate:up` to add autoguid to new models. + + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%prep +%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}/ + + + +%check +pushd .%{gem_instdir} +# rspec spec +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Rakefile + +%changelog +* Mon Apr 18 2022 mockbuilder - 1.1-1 +- Initial package @@ -0,0 +1 @@ +670bfdd613a1698427c7cbb674763115 autoguid-1.1.gem |