%global gem_name mdl Name: markdownlint Version: 0.17.0 Release: 1%{?dist} Summary: Markdown lint tool (mdl) License: MIT URL: https://github.com/markdownlint/markdownlint Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Fedora's Ruby guidelines name gem packages rubygem-%%{gem_name}. This repo # ships it as the friendlier command name; expose both virtual names so # `dnf install rubygem-mdl` and `rubygem(mdl)` consumers still resolve. # rubygem(mdl) = %%{version} is added automatically by the rubygems generator. Provides: rubygem-mdl = %{version}-%{release} BuildRequires: ruby(release) BuildRequires: ruby >= 3.2 BuildRequires: rubygems-devel BuildArch: noarch # Runtime deps (kramdown, kramdown-parser-gfm, mixlib-cli, mixlib-config, # mixlib-shellout) are added automatically as Requires by the rubygems # dependency generator from the installed gemspec. mixlib-cli/mixlib-config # (and tomlrb) were retired from Fedora and are provided by this COPR; they are # not in the stock-Fedora clean-chroot gate, so mdl is not require'd at build # time (no smoke %%check) — installability is verified at the repo level. %description mdl (markdownlint) is a tool to check Markdown files and flag style issues. It is built around a configurable set of rules describing the expected layout of well-formed Markdown, and reports any line that violates them. %package doc Summary: Documentation for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description doc Documentation (rdoc/ri) for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f -exec chmod a+x {} + # Runtime deps live in this COPR, not in the stock-Fedora clean-chroot gate, so # the binstub is not loaded here; just sanity-check it is valid Ruby. %check ruby -c .%{gem_instdir}/bin/mdl %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE.txt %{_bindir}/mdl %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %{gem_instdir}/mdl.gemspec %changelog * Wed Jun 17 2026 Bahtiar `kalkin-` Gadimov - 0.17.0-1 - Initial package of mdl 0.17.0