# Generated from dgh-0.1.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name dgh Name: rubygem-%{gem_name} Version: 0.1.4 Release: 1%{?dist} Summary: The Debian/Ubuntu Downgrade Helper License: GPLv3 URL: http://github.com/ilkka/dgh Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(rspec) >= 2.7.0 # BuildRequires: rubygem(rspec) < 2.8 # BuildRequires: rubygem(yard) >= 0.7.0 # BuildRequires: rubygem(yard) < 0.8 # BuildRequires: rubygem(cucumber) >= 1.1.0 # BuildRequires: rubygem(cucumber) < 1.2 # BuildRequires: rubygem(spork) >= 0.8.5 # BuildRequires: rubygem(spork) < 0.9 # BuildRequires: rubygem(watchr) >= 0.7 # BuildRequires: rubygem(watchr) < 1 BuildArch: noarch %description Dgh helps when you have to manually downgrade a large amount of packages. It requires the user to generate a file with `apt-cache policy` output for all installed packages, which it then reads. It looks for packages that have a currently installed version that doesn't exist in any repository, and prints those. This includes both locally generated packages that never did exist in any repository, and more crucially, packages that have been upgraded from e.g. a PPA that has since been removed from the system. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %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 | xargs chmod a+x %check pushd .%{gem_instdir} # cucumber # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/dgh %exclude %{gem_instdir}/.gitignore %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/TODO.txt %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/.document %exclude %{gem_instdir}/.rspec %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/cucumber.yml %{gem_instdir}/dgh.gemspec %{gem_instdir}/features %{gem_instdir}/spec %{gem_instdir}/tests.watchr %changelog * Mon Apr 18 2022 mockbuilder - 0.1.4-1 - Initial package