summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-10 15:59:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-10 15:59:03 +0000
commit544e2ac201dc7543b6098a263a863b0626f21b99 (patch)
tree9db50c76ec04bd17e54f492485185ad55263b30f
parent2b91ef3300259904c7da9e4d121842efcfe402f1 (diff)
automatic import of rubygem-prawn-manual_builderopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--rubygem-prawn-manual_builder.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7dab168 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/prawn-manual_builder-0.3.1.gem
diff --git a/rubygem-prawn-manual_builder.spec b/rubygem-prawn-manual_builder.spec
new file mode 100644
index 0000000..0e27996
--- /dev/null
+++ b/rubygem-prawn-manual_builder.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+%global gem_name prawn-manual_builder
+Name: rubygem-prawn-manual_builder
+Version: 0.3.1
+Release: 1
+Summary: A tool for writing manuals for Prawn and Prawn accessories
+License: PRAWN, GPL-2.0, GPL-3.0
+URL: None
+Source0: https://rubygems.org/gems/prawn-manual_builder-0.3.1.gem
+BuildArch: noarch
+
+Requires: rubygem-coderay
+BuildRequires: ruby
+BuildRequires: ruby-devel
+BuildRequires: rubygems
+BuildRequires: rubygems-devel
+BuildRequires: rsync
+Provides: rubygem-prawn-manual_builder
+
+%description
+A tool for writing manuals for Prawn and Prawn accessories
+
+%package help
+Summary: Development documents and examples for prawn-manual_builder
+Provides: rubygem-prawn-manual_builder-doc
+BuildArch: noarch
+
+%description help
+A tool for writing manuals for Prawn and Prawn accessories
+
+%prep
+%autosetup -n prawn-manual_builder-0.3.1
+gem spec %{SOURCE0} -l --ruby > prawn-manual_builder.gemspec
+
+%build
+gem build prawn-manual_builder.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-prawn-manual_builder -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..36027b1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+dd06bf74c4f2d07a2b63aff83134563c prawn-manual_builder-0.3.1.gem