diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-10 16:54:03 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-10 16:54:03 +0000 |
commit | b650d51bd2c03290846be2e9d5ecc4af6c00bbb5 (patch) | |
tree | 06facc8b657dfe1ef9d15528d23c240879e223d4 | |
parent | c8aed6a8c2b9dfdfbaa804ee5e92e4cd87ab041d (diff) |
automatic import of rubygem-ancestryopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-ancestry.spec | 90 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/ancestry-4.3.0.gem diff --git a/rubygem-ancestry.spec b/rubygem-ancestry.spec new file mode 100644 index 0000000..9eb2f2f --- /dev/null +++ b/rubygem-ancestry.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name ancestry +Name: rubygem-ancestry +Version: 4.3.0 +Release: 1 +Summary: Organize ActiveRecord model into a tree structure +License: MIT +URL: https://github.com/stefankroes/ancestry +Source0: https://rubygems.org/gems/ancestry-4.3.0.gem +BuildArch: noarch + +Requires: rubygem-activerecord +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +Provides: rubygem-ancestry + +%description + Ancestry allows the records of a ActiveRecord model to be organized in a tree + structure, using the materialized path pattern. It exposes the standard + relations (ancestors, parent, root, children, siblings, descendants) + and allows them to be fetched in a single query. Additional features include + named scopes, integrity checking, integrity restoration, arrangement + of (sub)tree into hashes and different strategies for dealing with orphaned + records. + + +%package help +Summary: Development documents and examples for ancestry +Provides: rubygem-ancestry-doc +BuildArch: noarch + +%description help + Ancestry allows the records of a ActiveRecord model to be organized in a tree + structure, using the materialized path pattern. It exposes the standard + relations (ancestors, parent, root, children, siblings, descendants) + and allows them to be fetched in a single query. Additional features include + named scopes, integrity checking, integrity restoration, arrangement + of (sub)tree into hashes and different strategies for dealing with orphaned + records. + + +%prep +%autosetup -n ancestry-4.3.0 +gem spec %{SOURCE0} -l --ruby > ancestry.gemspec + +%build +gem build ancestry.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ +rsync -a --exclude=".*" .%{gem_dir}/* %{buildroot}%{gem_dir}/ +if [ -d .%{_bindir} ]; then + mkdir -p %{buildroot}%{_bindir} + cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ +fi +if [ -d ext ]; then + mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name} + if [ -d .%{gem_extdir_mri}/%{gem_name} ]; then + cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} + else + cp -a .%{gem_extdir_mri}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} +fi + cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/ + rm -rf %{buildroot}%{gem_instdir}/ext/ +fi +pushd %{buildroot} +touch filelist.lst +if [ -d %{buildroot}%{_bindir} ]; then + find .%{_bindir} -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%files -n rubygem-ancestry -f filelist.lst +%dir %{gem_instdir} +%{gem_instdir}/* +%exclude %{gem_cache} +%{gem_spec} + +%files help +%{gem_docdir}/* + +%changelog +* Fri Mar 10 2023 Ruby_Bot <Ruby_Bot@openeuler.org> +- Package Spec generated @@ -0,0 +1 @@ +41def353d140c720b2fde262df4a23a8 ancestry-4.3.0.gem |