diff --git a/README.md b/README.md index 03fcd77..9e685b6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # ruby-asciidoctor +An implementation of AsciiDoc in Ruby. diff --git a/asciidoctor-2.0.15.gem b/asciidoctor-2.0.15.gem new file mode 100644 index 0000000..5c37df3 Binary files /dev/null and b/asciidoctor-2.0.15.gem differ diff --git a/ruby-asciidoctor.spec b/ruby-asciidoctor.spec new file mode 100644 index 0000000..b7337bd --- /dev/null +++ b/ruby-asciidoctor.spec @@ -0,0 +1,56 @@ +%define gemdir %(ruby -rrubygems -e'puts Gem.default_dir') +%define gemname %(echo %{name} | sed "s|^ruby-||") +Name: ruby-asciidoctor +Version: 2.0.15 +Release: 1mamba +Summary: An implementation of AsciiDoc in Ruby +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://asciidoctor.org +Source: https://rubygems.org/downloads/asciidoctor-%{version}.gem +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: ruby-devel >= 2.7.2 +Requires: ruby >= 2.7.2 +Provides: asciidoctor + +%description +An implementation of AsciiDoc in Ruby. + +#% debug_package + +%prep +%setup -q -c -a0 + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +gem install --no-user-install --ignore-dependencies -i "%{buildroot}%{gemdir}" \ + -n "%{buildroot}%{_bindir}" "%{SOURCE0}" + +install -D -m0644 %{gemname}-%{version}/man/asciidoctor.1 %{buildroot}%{_mandir}/man1/asciidoctor.1 + +rm %{buildroot}%{gemdir}/cache/%{gemname}-%{version}.gem +rm -rf %{buildroot}%{gemdir}/gems/%{gemname}-%{version}/man +rm -rf %{buildroot}%{gemdir}/doc/%{gemname}-%{version} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/asciidoctor +%dir %{gemdir}/gems/%{gemname}-%{version} +%{gemdir}/gems/%{gemname}-%{version}/* +%{gemdir}/specifications/%{gemname}-%{version}.gemspec +%{_libdir}/ruby/gems/*/gems/%{gemname}-%{version}/.* +%{_mandir}/man1/asciidoctor.1* +%doc %{gemname}-%{version}/LICENSE + +%changelog +* Sat Jun 19 2021 Silvan Calarco 2.0.15-1mamba +- package created using the webbuild interface