From 0365b5d6d4926a599362af5ba81075eca622807fbd2bbab43c35f60921d2b725 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 16 Jun 2022 22:15:53 +0000 Subject: [PATCH] - Specfile modernization OBS-URL: https://build.opensuse.org/package/show/science/pari-galpol?expand=0&rev=16 --- pari-galpol.changes | 5 +++++ pari-galpol.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/pari-galpol.changes b/pari-galpol.changes index 6c5fc09..fbfcde9 100644 --- a/pari-galpol.changes +++ b/pari-galpol.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 16 22:06:15 UTC 2022 - Jan Engelhardt + +- Specfile modernization + ------------------------------------------------------------------- Wed Aug 29 20:25:33 UTC 2018 - Jan Engelhardt diff --git a/pari-galpol.spec b/pari-galpol.spec index 275d61d..fe65cb5 100644 --- a/pari-galpol.spec +++ b/pari-galpol.spec @@ -1,7 +1,7 @@ # # spec file for package pari-galpol # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,7 @@ URL: http://pari.math.u-bordeaux.fr/ Source: http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz Source2: http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz.asc Source3: LICENSE -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes BuildArch: noarch Conflicts: libpari-gmp < 2.4.3 @@ -36,7 +36,7 @@ PARI package of the GALPOL database of polynomials defining Galois extensions of the rationals, accessed by the "galoisgetpol" function. %prep -%setup -qn data +%autosetup -n data cp "%_sourcedir/LICENSE" . %build @@ -45,10 +45,10 @@ cp "%_sourcedir/LICENSE" . c="%buildroot/%_datadir/pari" mkdir -p "$c" mv galpol "$c/" +%fdupes %buildroot/%_prefix %files -%defattr(-,root,root) %_datadir/pari -%doc LICENSE +%license LICENSE %changelog