The package rpms/gap-pkg-polymaking.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/gap-pkg-polymaking.git/commit/?id....
Change:
-ExclusiveArch: noarch aarch64 ppc64le s390x x86_64
Thanks.
Full change:
============
commit 69c2ebe04aa9163f04af23c46f95c8992cb39348
Author: Jerry James <loganjerry(a)gmail.com>
Date: Tue Sep 27 11:57:38 2022 -0600
Update for gap 4.12.0.
- Add -doc patch.
- Convert License tag to SPDX.
diff --git a/gap-pkg-polymaking-doc.patch b/gap-pkg-polymaking-doc.patch
new file mode 100644
index 0000000..ce864a1
--- /dev/null
+++ b/gap-pkg-polymaking-doc.patch
@@ -0,0 +1,33 @@
+--- polymaking-0.8.6/doc/environment.xml.orig 2021-07-07 16:43:57.000000000 -0600
++++ polymaking-0.8.6/doc/environment.xml 2022-09-09 10:38:43.558441471 -0600
+@@ -84,7 +84,7 @@ POLYMAKE_DATA_DIR:=Directory("/home/mypo
+
POLYMAKE_COMMAND:=Filename(Directory("/home/mypolymakebindir/"),"polymake");
+ </Listing>
+
+- to your <F>.gaprc</F> file (see <Ref Label="The .gaprc
file"
++ to your <F>gap.ini</F> file (see <Ref Label="The gap.ini and
gaprc files"
+ BookName="ref"></Ref>). Note that these have to be
+ <Emph>before</Emph> the
<C>LoadPackage("polymaking");</C> line.
+ Or you can change the values of the above variables by editing
+--- polymaking-0.8.6/doc/internals.xml.orig 2021-07-07 16:43:57.000000000 -0600
++++ polymaking-0.8.6/doc/internals.xml 2022-09-09 10:36:35.414166330 -0600
+@@ -31,7 +31,7 @@ output</Heading>
+ <K>POLYMAKE&uscore;COMMAND</K> or
<K>POLYMAKE&uscore;DATA&uscore;DIR</K> are set at
+ startup, they are not overwritten. So if you don't want (or don't
+ have the rights) to modify <F>environment.gi</F>, you can set the
+- variables in your <F>.gaprc</F> file.
++ variables in your <F>gap.ini</F> file.
+
+ <ManSection>
+ <Var Name="POLYMAKE_COMMAND"/>
+--- polymaking-0.8.6/README.md.orig 2021-07-07 16:43:57.000000000 -0600
++++ polymaking-0.8.6/README.md 2022-09-09 10:35:18.118000175 -0600
+@@ -61,7 +61,7 @@ If polymake is not found automatically (
+ level 1 in this case), try this:
+
+ 6. Tell GAP where to look for polymake by adding the following lines to
+- your `.gaprc` file:
++ your `gap.ini` file:
+
+
POLYMAKE_COMMAND:=Filename(Directory("/home/mypolymakebindir/"),"polymake");
+ MakeImmutable(POLYMAKE_COMMAND);
diff --git a/gap-pkg-polymaking.spec b/gap-pkg-polymaking.spec
index 13f0a06..6e8a746 100644
--- a/gap-pkg-polymaking.spec
+++ b/gap-pkg-polymaking.spec
@@ -2,17 +2,17 @@
Name: gap-pkg-%{pkgname}
Version: 0.8.6
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: GAP interface to polymake
-License: GPLv2+
+License: GPL-2.0-or-later
+BuildArch: noarch
+ExclusiveArch: aarch64 ppc64le s390x x86_64 noarch
URL:
https://gap-packages.github.io/polymaking/
Source0:
https://github.com/gap-packages/%{pkgname}/releases/download/v%{version}/...
-
-# Polymake is no longer available on 32-bit platforms
-# See
https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
-BuildArch: noarch
-ExclusiveArch: noarch aarch64 ppc64le s390x x86_64
+# Update outdated information about the .gaprc file
+#
https://github.com/gap-packages/polymaking/pull/15
+Patch0: %{name}-doc.patch
BuildRequires: gap-devel
BuildRequires: gap-pkg-autodoc
@@ -33,28 +33,23 @@ Requires: gap-online-help
This package contains documentation for gap-pkg-%{pkgname}.
%prep
-%autosetup -n %{pkgname}-%{version}
+%autosetup -n %{pkgname}-%{version} -p1
# Fix an undefined LaTeX command in the BibTeX file
sed -i 's/URL/url/' doc/polymaking.bib
-# Fix a reference to the main GAP manual
-sed -i 's/The \.gaprc file/The former .gaprc file/' doc/environment.xml
-
%build
export LC_ALL=C.UTF-8
# Link to main GAP documentation
-ln -s %{_gap_dir}/doc ../../doc
-gap < makedoc.g
-rm -fr ../../doc
+#ln -s %{gap_dir}/doc ../../doc
+gap makedoc.g
+#rm -fr ../../doc
%install
-mkdir -p %{buildroot}%{_gap_dir}/pkg
-cp -a ../%{pkgname}-%{version} %{buildroot}%{_gap_dir}/pkg
-rm -f %{buildroot}%{_gap_dir}/pkg/%{pkgname}-%{version}/{CHANGES,README}
-rm -f %{buildroot}%{_gap_dir}/pkg/%{pkgname}-%{version}/LICENSE
-rm -f
%{buildroot}%{_gap_dir}/pkg/%{pkgname}-%{version}/doc/*.{aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,tex}
+mkdir -p %{buildroot}%{gap_dir}/pkg/%{pkgname}/doc
+cp -a *.g lib tst %{buildroot}%{gap_dir}/pkg/%{pkgname}
+%gap_copy_docs
%check
export LC_ALL=C.UTF-8
@@ -63,19 +58,24 @@ export LC_ALL=C.UTF-8
polymake --reconfigure - <<< exit;
# Now we can run the actual test.
-gap -l "%{buildroot}%{_gap_dir};%{_gap_dir}" tst/testall.g
+gap -l "%{buildroot}%{gap_dir};" tst/testall.g
%files
%doc CHANGES.md README.md
%license LICENSE
-%{_gap_dir}/pkg/%{pkgname}-%{version}/
-%exclude %{_gap_dir}/pkg/%{pkgname}-%{version}/doc/
+%{gap_dir}/pkg/%{pkgname}/
+%exclude %{gap_dir}/pkg/%{pkgname}/doc/
%files doc
-%docdir %{_gap_dir}/pkg/%{pkgname}-%{version}/doc/
-%{_gap_dir}/pkg/%{pkgname}-%{version}/doc/
+%docdir %{gap_dir}/pkg/%{pkgname}/doc/
+%{gap_dir}/pkg/%{pkgname}/doc/
%changelog
+* Tue Sep 27 2022 Jerry James <loganjerry(a)gmail.com> - 0.8.6-5
+- Update for gap 4.12.0
+- Add -doc patch
+- Convert License tag to SPDX
+
* Thu Jul 21 2022 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.8.6-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild