# causes strip errors: cannot set time for file #%%global debug_package %%{nil} # always bootstrap: otherwise rebuild fails %bcond_without boot %bcond_without docs # requires network? %bcond_with test %bcond_with racket %if %{with racket} # /usr/lib/.build-id file for bin/idris2 conflicts with racket-minimal starter %define _build_id_links alldebug %endif Name: idris2 Version: 0.7.0 Release: 1%{?dist} Summary: Purely functional programming language with first class types License: BSD-3-Clause URL: https://www.idris-lang.org Source0: https://github.com/idris-lang/Idris2/archive/refs/tags/v0.7.0.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: gmp-devel BuildRequires: make %if %{without boot} BuildRequires: idris2 %endif %if %{with docs} BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme %endif %if %{with test} BuildRequires: clang %endif %if %{with racket} BuildRequires: racket-minimal BuildRequires: racket-pkgs Requires: racket-minimal %else BuildRequires: chez-scheme >= 10 Requires: chez-scheme >= 10 %endif Requires: %{name}-lib%{?_isa} = %{version}-%{release} %description Idris is a programming language designed to encourage Type-Driven Development. %if %{with docs} %package docs Summary: Idris2 documentation %if 0%{?fedora} >= 39 Requires: fontawesome4-fonts %else Requires: fontawesome-fonts %endif %description docs The package contains the idris2 manual %endif %package lib Summary: idris2 runtime support library %description lib The package provide the runtime support library for idris2. %prep %setup -q -n Idris2-%{version} %build %if %{with boot} make %{?with_racket:bootstrap-racket}%{!?with_racket:bootstrap SCHEME=scheme} PREFIX=%{_libdir} %else make %endif %if %{with docs} make -C docs html %endif %install export PATH=%{buildroot}/bin:$PATH make install DESTDIR=%{buildroot} PREFIX=%{_libdir} mkdir %{buildroot}%{_bindir} %if %{without racket} mv %{buildroot}%{_libdir}/bin/idris2_app/idris2.so %{buildroot}%{_bindir}/idris2 %else mv %{buildroot}%{_libdir}/bin/idris2_app/idris2 %{buildroot}%{_bindir}/ %endif rm %{buildroot}%{_libdir}/bin/idris2_app/libidris2_support.so mv %{buildroot}%{_libdir}/%{name}-%{version}/lib/libidris2_support.so %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ LD_LIBRARY_PATH="%{buildroot}%{_libdir}:" %{buildroot}%{_bindir}/idris2 --bash-completion-script %{name} | sed "s/dirnames/default/" > %{buildroot}%{_datadir}/bash-completion/completions/%{name} %if %{with test} %check make test %endif %files %license LICENSE %doc *.md %doc www/source/index.md %{_bindir}/idris2 %{_libdir}/%{name}-%{version} %{_datadir}/bash-completion/completions/%{name} %exclude %{_libdir}/bin %exclude %{_libdir}/%{name}-%{version}/lib %if %{with docs} %files docs %doc docs/build/html %doc samples %endif %files lib %{_libdir}/libidris2_support.so %changelog * Sat Aug 19 2023 Jens Petersen - 0.6.0-0.1 - update to 0.6.0 https://github.com/idris-lang/Idris2/blob/v0.6.0/CHANGELOG.md - revert to chez-scheme * Mon Sep 20 2021 Jens Petersen - 0.5.1-1 - update to 0.5.1 * Sat Sep 4 2021 Jens Petersen - 0.4.0-3 - use the racket backend for codegen - move main idris binary to bindir and libidris2_support.so to libdir and IDRIS2_PREFIX is now libdir (this all mimics the AUR packaging) - drop rest of bindir files and libidris2_support.so copies - drop idris-api package for now * Thu Jul 8 2021 Jens Petersen - remove bootstrapping files from bin/idris2_app/ - change bash-completion from dirnames to default * Wed Jul 7 2021 Jens Petersen - 0.4.0-2 - install-with-src-libs and install-api - add bash-completion * Tue Jul 6 2021 Jens Petersen - 0.4.0-1 - add DESTDIR patch * Tue Jun 23 2020 Jens Petersen - initial packaging try