diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-10 16:14:33 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-10 16:14:33 +0000 |
commit | d6c432d3df0feb36bfe1f35ba80c8f4741b42cc9 (patch) | |
tree | 2f8efa51ff16a3cf59494eb66b7d80e2ce201b32 | |
parent | 12dc9c8ccae5818b0cc53afdf30fcb2f3b6f0445 (diff) |
automatic import of rubygem-webkit2-gtkopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-webkit2-gtk.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/webkit2-gtk-4.1.2.gem diff --git a/rubygem-webkit2-gtk.spec b/rubygem-webkit2-gtk.spec new file mode 100644 index 0000000..2245184 --- /dev/null +++ b/rubygem-webkit2-gtk.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name webkit2-gtk +Name: rubygem-webkit2-gtk +Version: 4.1.2 +Release: 1 +Summary: Ruby/WebKit2GTK is a Ruby binding of WebKit2GTK+. +License: LGPL-2.1+ +URL: https://ruby-gnome2.osdn.jp/ +Source0: https://rubygems.org/gems/webkit2-gtk-4.1.2.gem + +Requires: rubygem-gtk3 +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +BuildRequires: gcc +BuildRequires: gdb +Provides: rubygem-webkit2-gtk + +%description +Ruby/WebKit2GTK is a Ruby binding of WebKit2GTK+. + +%package help +Summary: Development documents and examples for webkit2-gtk +Provides: rubygem-webkit2-gtk-doc +BuildArch: noarch + +%description help +Ruby/WebKit2GTK is a Ruby binding of WebKit2GTK+. + +%prep +%autosetup -n webkit2-gtk-4.1.2 +gem spec %{SOURCE0} -l --ruby > webkit2-gtk.gemspec + +%build +gem build webkit2-gtk.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-webkit2-gtk -f filelist.lst +%dir %{gem_instdir} +%{gem_instdir}/* +%{gem_extdir_mri} +%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 @@ +c51df0affacf991d5cdd3c9f5b89baf8 webkit2-gtk-4.1.2.gem |