summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-10 16:13:33 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-10 16:13:33 +0000
commitd11083bdb250a3f8bde8bd735fe940921e9a22f5 (patch)
treec61fe56242c28174edf01e681f2dd1dd03655c21
parent9bea3bcfcf4393cc9ab99d11672b427a71fb23b2 (diff)
automatic import of rubygem-tinsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--rubygem-tins.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c19c3aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tins-1.32.1.gem
diff --git a/rubygem-tins.spec b/rubygem-tins.spec
new file mode 100644
index 0000000..d3f4e71
--- /dev/null
+++ b/rubygem-tins.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+%global gem_name tins
+Name: rubygem-tins
+Version: 1.32.1
+Release: 1
+Summary: Useful stuff.
+License: MIT
+URL: https://github.com/flori/tins
+Source0: https://rubygems.org/gems/tins-1.32.1.gem
+BuildArch: noarch
+
+Requires: rubygem-sync
+BuildRequires: ruby
+BuildRequires: ruby-devel
+BuildRequires: rubygems
+BuildRequires: rubygems-devel
+BuildRequires: rsync
+Provides: rubygem-tins
+
+%description
+All the stuff that isn't good/big enough for a real library.
+
+%package help
+Summary: Development documents and examples for tins
+Provides: rubygem-tins-doc
+BuildArch: noarch
+
+%description help
+All the stuff that isn't good/big enough for a real library.
+
+%prep
+%autosetup -n tins-1.32.1
+gem spec %{SOURCE0} -l --ruby > tins.gemspec
+
+%build
+gem build tins.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-tins -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..12fd487
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3cdeb6b330ac99bbe18ccb6fa4bd08c1 tins-1.32.1.gem