pandoc-cli/pandoc-cli.spec

52 lines
1.3 KiB
RPMSpec
Raw Normal View History

%define ghc_ver %(ghc --numeric-version)
%define pkg_name %(echo %name | sed "s|^ghc-||")
Name: pandoc-cli
Version: 0.1.1.1
Release: 1mamba
Summary: GHC pandoc-cli: Conversion between documentation formats
Group: Development/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://hackage.haskell.org/package/%{pkg_name}
Source: https://hackage.haskell.org/package/pandoc-cli-%{version}/pandoc-cli-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgmp-devel
BuildRequires: libnuma-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: ghc
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-pandoc-devel
Provides: pandoc
Obsoletes: pandoc <= 1.13.2-1mamba
%description
%{summary}.
%prep
%setup -q -n pandoc-cli-%{version}
%build
%ghc_bin_build
%install
%ghc_bin_install
rm -f %{buildroot}%{_ghclicensedir}/%{name}/COPYING.md
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/pandoc
%license COPYING.md
%changelog
* Sun Dec 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1.1-1mamba
- package created using the webbuild interface