%global pkgname curlinterface %global upname curlInterface # TESTING NOTE: the tests, unsurprisingly, require network access. Since the # koji builders have no network access, the tests always fail. The maintainer # should run the tests in an environment where testing is possible prior to # each koji build. %bcond_with tests Name: gap-pkg-%{pkgname} Version: 2.2.1 Release: 3%{?dist} Summary: Simple web access for GAP License: GPLv2+ URL: https://gap-packages.github.io/%{upname}/ Source0: https://github.com/gap-packages/%{upname}/releases/download/v%{version}/%{upname}-%{version}.tar.gz BuildRequires: gap-devel BuildRequires: gap-pkg-autodoc BuildRequires: gcc BuildRequires: libtool BuildRequires: make BuildRequires: pkgconfig(libcurl) Requires: gap-core %description This package provides a simple GAP wrapper around libcurl, to allow downloading files over http, ftp and https. %package doc Summary: Curl interface for GAP documentation BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: gap-online-help %description doc This package contains documentation for gap-pkg-%{pkgname}. %prep %autosetup -p1 -n %{upname}-%{version} %build export LC_ALL=C.UTF-8 %configure --with-gaproot=%{_gap_dir} --disable-silent-rules # Build the binary interface %make_build # Build the documentation gap < makedoc.g %install mkdir -p %{buildroot}%{_gap_dir}/pkg/%{upname}-%{version} cp -a bin doc gap tst *.g %{buildroot}%{_gap_dir}/pkg/%{upname}-%{version} rm -fr %{buildroot}%{_gap_dir}/pkg/%{upname}-%{version}/bin/*/{.libs,*.la} rm -f %{buildroot}%{_gap_dir}/pkg/%{upname}-%{version}/doc/*.{aux,bbl,blg,idx,ilg,ind,log,out,pnr,tex} %if %{with tests} %check export LC_ALL=C.UTF-8 gap -l "%{buildroot}%{_gap_dir};%{_gap_dir}" < tst/testall.g %endif %files %doc CHANGES README.md %license GPL LICENSE %{_gap_dir}/pkg/%{upname}-%{version}/ %exclude %{_gap_dir}/pkg/%{upname}-%{version}/doc/ %files doc %docdir %{_gap_dir}/pkg/%{upname}-%{version}/doc/ %{_gap_dir}/pkg/%{upname}-%{version}/doc/ %changelog * Tue Jan 26 2021 Fedora Release Engineering - 2.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Apr 3 2020 Jerry James - 2.2.1-1 - Version 2.2.1 - Drop upstreamed -backtick patch * Wed Mar 11 2020 Jerry James - 2.1.1-3 - Rebuild for gap 4.11.0 * Tue Jan 28 2020 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Sep 18 2019 Jerry James - 2.1.1-1 - Initial RPM