Name: perl-Text-Markdown-Hoedown Version: 1.03 Release: 1%{?dist} Summary: Hoedown for Perl5 License: GPL+ or Artistic URL: https://metacpan.org/pod/Text/Markdown/Hoedown Source0: https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Text-Markdown-Hoedown-%{version}.tar.gz BuildRequires: gcc BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(strict) BuildRequires: perl(Module::Build) BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(File::pushd) # For tests. BuildRequires: perl(Test::Simple) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Provides: perl(Text::Markdown::Hoedown) %{?perl_default_filter} %description This is a binding library for hoedown. hoedown is a forked project from sundown. #------------------------------------------------------------------------------. %prep #------------------------------------------------------------------------------. %setup -q -n Text-Markdown-Hoedown-%{version} #------------------------------------------------------------------------------. %build #------------------------------------------------------------------------------. %{__perl} -I. Build.PL installdirs=vendor "optimize=${CFLAGS}" ./Build #------------------------------------------------------------------------------. %install #------------------------------------------------------------------------------. ./Build install --destdir="${RPM_BUILD_ROOT}" %{_fixperms} "${RPM_BUILD_ROOT}"/* # Remove unneeded files. find "${RPM_BUILD_ROOT}%{perl_vendorarch}" -type f \ ! \( -name "*.so" -o -name "*.pm" \) -delete #------------------------------------------------------------------------------. %check #------------------------------------------------------------------------------. ./Build test #------------------------------------------------------------------------------. %files #------------------------------------------------------------------------------. %doc Changes README.md %{perl_vendorarch}/Text %{perl_vendorarch}/auto %{_mandir}/man3/Text* #------------------------------------------------------------------------------. %changelog #------------------------------------------------------------------------------. * Fri Dec 20 2024 Patrick Monnerat 1.03-1 - New upstream release. * Sat Jul 8 2023 Patrick Monnerat 1.01-1 - Initial packaging.