diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..585bdf4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/CommonMark-0.290000.tar.gz diff --git a/perl-CommonMark.spec b/perl-CommonMark.spec new file mode 100644 index 0000000..1e3ebff --- /dev/null +++ b/perl-CommonMark.spec @@ -0,0 +1,63 @@ +Name: perl-CommonMark +Version: 0.290000 +Release: 2%{?dist} +Summary: Interface to the CommonMark C library +License: GPL+ or Artistic + +URL: https://metacpan.org/release/CommonMark +Source0: https://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/CommonMark-%{version}.tar.gz + +# build requirements +BuildRequires: cmark-devel >= 0.21.0 +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.8 +BuildRequires: perl(Devel::CheckLib) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# runtime requirements +BuildRequires: perl(Exporter) +BuildRequires: perl(XSLoader) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# test requirements +BuildRequires: perl(Encode) +BuildRequires: perl(Symbol) +BuildRequires: perl(Test::LeakTrace) +BuildRequires: perl(Test::More) +BuildRequires: perl(constant) +Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version)) + +%description +This module is a wrapper around the official CommonMark C library libcmark. +It closely follows the original API. + +%prep +%setup -q -n CommonMark-%{version} + +%build +/usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 +%{make_build} %{?_smp_mflags} + +%install +/usr/bin/make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{make_build} test + +%files +%doc Changes +%license LICENSE +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/CommonMark* +%{_mandir}/man3/* + +%changelog +* Thu Aug 01 2019 Emmanuel Seyman - 0.290000-2 +- Take into account review comments (#1735562) + +* Tue Jul 30 2019 Emmanuel Seyman - 0.290000-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..09b9c58 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (CommonMark-0.290000.tar.gz) = 6fd7c50ccc1e5dcf4a8d4f550142812ec0d722bc1f2e9d83faa1b05a2bebf055a15e8e77f131b79617014de1d254ede0061f5be7d3e3fe673a3ac748cadb1086