# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell Name: rpmbuild-order Version: 0.2.1 Release: 1%{?dist} Summary: Order RPM packages by dependencies License: BSD Url: https://hackage.haskell.org/package/%{name} Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-explicit-exception-devel BuildRequires: ghc-fgl-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-process-devel BuildRequires: ghc-transformers-devel # End cabal-rpm deps %description The rpmbuild-order tool orders RPM packages by dependencies, so that they can be built in the correct order. It does this by reading RPM package spec files and then topologically sorts them according to their dependencies. The code originates from cabal-sort by Henning Thielemann. It can also output the ordered dependencies or reverse depends for one or more packages, provided all the packages are checked out in neighboring directories. This is also useful to see what packages are affected when a low-level package changes. %prep %setup -q %build %ghc_bin_build %install %ghc_bin_install install -p -m 0644 -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %files %license LICENSE %doc ChangeLog README.md TODO %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Fri Aug 17 2018 Jens Petersen - 0.2.1-1 - update to 0.2 - add manpage * Wed Jul 25 2018 Fedora Haskell SIG - 0.1-1 - spec file generated by cabal-rpm-0.12.5