public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-RDF-TriN3] rawhide: Modernize a spec file
@ 2026-10-15 11:48 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-15 11:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-RDF-TriN3
Branch : rawhide
Commit : 23cd9249904c6a5a6178c2cfbe5fcb6de75e46d2
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-10-15T13:47:04+02:00
Stats  : +15/-12 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-RDF-TriN3/c/23cd9249904c6a5a6178c2cfbe5fcb6de75e46d2?branch=rawhide

Log:
Modernize a spec file

---
diff --git a/perl-RDF-TriN3.spec b/perl-RDF-TriN3.spec
index fc92ca2..0dc0914 100644
--- a/perl-RDF-TriN3.spec
+++ b/perl-RDF-TriN3.spec
@@ -2,10 +2,9 @@ Name:           perl-RDF-TriN3
 Version:        0.206
 Release:        30%{?dist}
 Summary:        Notation 3 extensions for RDF::Trine
-# CONTRIBUTING: CC-BY-SA
-# other fiels:  GPL+ or Artistic
-# Automatically converted from old format: (GPL+ or Artistic) and CC-BY-SA - review is highly recommended.
-License:        (GPL-1.0-or-later OR Artistic-1.0-Perl) AND LicenseRef-Callaway-CC-BY-SA
+# CONTRIBUTING: CC-BY-SA-2.0-UK
+# other fiels:  GPL-1.0-or-later OR Artistic-1.0-Perl
+License:        (GPL-1.0-or-later OR Artistic-1.0-Perl) AND CC-BY-SA-2.0-UK
 URL:            https://metacpan.org/release/RDF-TriN3
 Source0:        https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/RDF-TriN3-%{version}.tar.gz
 # To boostrap this package without bundling
@@ -49,7 +48,6 @@ BuildRequires:  perl(Test::More) >= 0.61
 BuildRequires:  perl(RDF::Trine::Store::DBI::SQLite)
 Requires:       perl(RDF::Trine) >= 0.135
 
-
 # Remove under-specified dependencies
 %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(RDF::Trine\\)$
 
@@ -62,25 +60,30 @@ it provides subclass for representing Notation 3 formulae literals.
 %patch -P0 -p1
 # Remove bundled modules
 rm -rf ./inc
-sed -i -e '/^inc\//d' MANIFEST
+perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
+%{make_build}
 
 %install
-make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -delete
+%{make_install}
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
+export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
 make test
 
 %files
 %license LICENSE
 %doc Changes CONTRIBUTING COPYRIGHT CREDITS README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%dir %{perl_vendorlib}/RDF
+%{perl_vendorlib}/RDF/TriN3.pm
+%{perl_vendorlib}/RDF/Trine
+%{perl_vendorlib}/RDF/TrineX
+%{_mandir}/man3/RDF::TriN3.*
+%{_mandir}/man3/RDF::Trine::*
+%{_mandir}/man3/RDF::TrineX::*
 
 %changelog
 * Thu Oct 15 2026 Petr Pisar <ppisar@redhat.com> - 0.206-30

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-15 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 11:48 [rpms/perl-RDF-TriN3] rawhide: Modernize a spec file 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox