diff --git a/rubygem-sd_notify.spec b/rubygem-sd_notify.spec new file mode 100644 index 0000000..3077354 --- /dev/null +++ b/rubygem-sd_notify.spec @@ -0,0 +1,64 @@ +%global gem_name sd_notify + +Name: rubygem-%{gem_name} +Version: 0.1.1 +Release: 1 +Summary: Pure Ruby implementation of systemd's sd_notify(3) +License: MIT +URL: https://github.com/agis/ruby-sdnotify +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: https://github.com/agis/ruby-sdnotify/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: ruby(release) +BuildRequires: rubygem(minitest) +BuildRequires: rubygems-devel +BuildRequires: ruby +BuildArch: noarch + +%description +sd_notify can be used to notify systemd about various service status changes +of Ruby programs. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} -b1 + +%build +gem build ../%{gem_name}-%{version}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +# Symlink the test suite into plaec +ln -s %{_builddir}/test . + +ruby -Ilib -e 'Dir.glob("./test/**/*_test.rb").sort.each{ |f| require f }' +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/README.md + +%changelog +* Thu Jun 30 2022 wulei - 0.1.1-1 +- package init diff --git a/rubygem-sd_notify.yaml b/rubygem-sd_notify.yaml new file mode 100644 index 0000000..2e6c8c9 --- /dev/null +++ b/rubygem-sd_notify.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: agis/ruby-sdnotify +tag_prefix: "sd_notify-" +separator: "." diff --git a/sd_notify-0.1.1.gem b/sd_notify-0.1.1.gem new file mode 100644 index 0000000..fd808fa Binary files /dev/null and b/sd_notify-0.1.1.gem differ diff --git a/v0.1.1.tar.gz b/v0.1.1.tar.gz new file mode 100644 index 0000000..12cbf42 Binary files /dev/null and b/v0.1.1.tar.gz differ