- spec: generate manpage for optparse-applicative programs - spec: add %{?haskell_setup} - Dependencies excludedPkgs: add system-cxx-std-lib - Dependencies: withGhcProfLibType to respect %with_ghc_prof for builddeps - PackageUtils dependencySortCabals: do nothing if empty - Snapshots: update stackage snapshots.json url - spec: define and use %ghc_major for --with-compiler - spec: do not BR ghcX.Y-prof for standalone
This commit is contained in:
parent
7a3d6cff9a
commit
72bc43b8da
1
.gitignore
vendored
1
.gitignore
vendored
@ -63,3 +63,4 @@
|
||||
/cabal-rpm-2.1.3.tar.gz
|
||||
/cabal-rpm-2.1.4.tar.gz
|
||||
/cabal-rpm-2.1.5.tar.gz
|
||||
/cabal-rpm-2.2.0.tar.gz
|
||||
|
@ -1,10 +1,8 @@
|
||||
# generated by cabal-rpm-2.1.5 --stream hackage
|
||||
# generated by cabal-rpm-2.2.0 --stream hackage
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
||||
|
||||
%bcond_without manpage
|
||||
|
||||
Name: cabal-rpm
|
||||
Version: 2.1.5
|
||||
Version: 2.2.0
|
||||
Release: %autorelease
|
||||
Summary: RPM packaging tool for Haskell Cabal-based packages
|
||||
|
||||
@ -38,27 +36,22 @@ BuildRequires: ghc-simple-cmd-args-devel
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-time-devel
|
||||
BuildRequires: ghc-unix-devel
|
||||
BuildRequires: help2man
|
||||
# End cabal-rpm deps
|
||||
%if %{with manpage}
|
||||
BuildRequires: pandoc
|
||||
%endif
|
||||
Obsoletes: cabal2spec < 0.26
|
||||
Provides: cblrpm = %{version}-%{release}
|
||||
Requires: cabal-install
|
||||
Requires: dos2unix
|
||||
Requires: ghc-rpm-macros
|
||||
Requires: rpm-build
|
||||
## for spectool
|
||||
#Requires: rpmdevtools
|
||||
# for rpmdev-bumpspec and spectool
|
||||
Requires: rpmdevtools
|
||||
Requires: wget
|
||||
# for repoquery
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
Requires: dnf-plugins-core
|
||||
%else
|
||||
Requires: yum-utils
|
||||
%endif
|
||||
# for rpmdev-bumpspec
|
||||
Requires: rpmdevtools
|
||||
Requires: wget
|
||||
# for stack list
|
||||
Recommends: stack > 2.7
|
||||
|
||||
@ -66,7 +59,7 @@ Recommends: stack > 2.7
|
||||
This package provides a RPM packaging tool for Haskell Cabal-based packages.
|
||||
|
||||
cabal-rpm has commands to generate a RPM spec file and srpm for a package.
|
||||
It can rpmbuild packages, yum/dnf install their dependencies, prep packages,
|
||||
It can rpmbuild packages, dnf/yum install their dependencies, prep packages,
|
||||
and install them. There are commands to list package dependencies and missing
|
||||
dependencies. The diff command compares the current spec file with a freshly
|
||||
generated one, the update command updates the spec file to latest version from
|
||||
@ -85,24 +78,20 @@ Standalone packages can also be made, built with cabal-install.
|
||||
# Begin cabal-rpm build:
|
||||
%ghc_bin_build
|
||||
# End cabal-rpm build
|
||||
%if %{with manpage}
|
||||
pandoc -s -t man man/cabal-rpm.1.md > man/cabal-rpm.1
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
# Begin cabal-rpm install
|
||||
%ghc_bin_install
|
||||
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
|
||||
%{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
help2man --no-info %{buildroot}%{_bindir}/%{name} > %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
# End cabal-rpm install
|
||||
|
||||
install -p -m 0644 -D %{SOURCE3} %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||
ln -s %{name} %{buildroot}%{_datadir}/bash-completion/completions/cblrpm
|
||||
|
||||
%if %{with manpage}
|
||||
install -p -m 0644 -D man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
ln -s %{name}.1 %{buildroot}%{_mandir}/man1/cblrpm.1
|
||||
%endif
|
||||
|
||||
ln -s %{name} %{buildroot}%{_bindir}/cblrpm
|
||||
|
||||
@ -113,10 +102,10 @@ ln -s %{name} %{buildroot}%{_bindir}/cblrpm
|
||||
%doc ChangeLog README.md TODO
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/bash-completion/completions/%{name}
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
# End cabal-rpm files
|
||||
%{_bindir}/cblrpm
|
||||
%{_datadir}/bash-completion/completions/cblrpm
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
%{_mandir}/man1/cblrpm.1*
|
||||
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (cabal-rpm-2.1.5.tar.gz) = 156924369605e32683050570c7675ef086f2f2e32d13cccc02111794440415688c26bd3a70b426ca5f86c7bcf67b075a6e85d8de7d547033f3d982970ad46de5
|
||||
SHA512 (cabal-rpm-2.2.0.tar.gz) = ac4fecd79170e20608ea15507dda40fb6b644fd9bf5477925fdbf8822f2dbe50ce05eb0aee9772174cb841a79d3ef1817c723a8db81a0d055c8740d718de676b
|
||||
|
Loading…
Reference in New Issue
Block a user