Agda/Agda.spec

371 lines
12 KiB
RPMSpec
Raw Normal View History

2017-02-24 04:43:01 +00:00
# generated by cabal-rpm-0.11.1
2012-07-15 07:28:54 +00:00
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name Agda
%global pkgver %{pkg_name}-%{version}
2017-02-24 04:43:01 +00:00
%global EdisonAPI EdisonAPI-1.3.1
%global EdisonCore EdisonCore-1.3.1.1
2017-02-24 04:43:01 +00:00
%global geniplatemirror geniplate-mirror-0.7.4
%global gitrev gitrev-1.2.0
%global ieee754 ieee754-0.8.0
%global monadplus monadplus-1.4.2
%global murmurhash murmur-hash-0.1.0.9
%global subpkgs %{EdisonAPI} %{EdisonCore} %{geniplatemirror} %{gitrev} %{ieee754} %{monadplus} %{murmurhash}
2016-10-07 01:58:49 +00:00
Name: %{pkg_name}
2017-02-26 22:49:02 +00:00
Version: 2.5.2
# can only be reset when all subpkgs bumped
2017-03-13 03:15:19 +00:00
Release: 5%{?dist}.1
Summary: A dependently typed functional programming language and proof assistant
2012-07-15 07:28:54 +00:00
License: MIT and BSD
2015-02-06 20:46:37 +00:00
Url: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{EdisonCore}/%{EdisonCore}.tar.gz
2017-02-24 04:43:01 +00:00
Source2: https://hackage.haskell.org/package/%{geniplatemirror}/%{geniplatemirror}.tar.gz
Source3: https://hackage.haskell.org/package/%{gitrev}/%{gitrev}.tar.gz
Source4: https://hackage.haskell.org/package/%{ieee754}/%{ieee754}.tar.gz
Source5: https://hackage.haskell.org/package/%{monadplus}/%{monadplus}.tar.gz
Source6: https://hackage.haskell.org/package/%{murmurhash}/%{murmurhash}.tar.gz
Source7: https://hackage.haskell.org/package/%{EdisonAPI}/%{EdisonAPI}.tar.gz
Source10: agda-mode-init.el
2012-11-17 08:14:01 +00:00
2012-07-15 07:28:54 +00:00
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros-extra
# Begin cabal-rpm deps:
2013-10-31 09:29:45 +00:00
BuildRequires: alex
BuildRequires: chrpath
BuildRequires: cpphs
#BuildRequires: ghc-EdisonCore-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-boxes-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-data-hash-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-edit-distance-devel
BuildRequires: ghc-equivalence-devel
BuildRequires: ghc-filepath-devel
#BuildRequires: ghc-geniplate-mirror-devel
#BuildRequires: ghc-gitrev-devel
BuildRequires: ghc-hashable-devel
BuildRequires: ghc-hashtables-devel
BuildRequires: ghc-haskeline-devel
#BuildRequires: ghc-ieee754-devel
#BuildRequires: ghc-monadplus-devel
BuildRequires: ghc-mtl-devel
#BuildRequires: ghc-murmur-hash-devel
BuildRequires: ghc-parallel-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-process-devel
2017-02-26 22:49:02 +00:00
BuildRequires: ghc-regex-tdfa-devel
BuildRequires: ghc-strict-devel
2015-04-03 04:25:00 +00:00
BuildRequires: ghc-template-haskell-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-transformers-compat-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-xhtml-devel
BuildRequires: ghc-zlib-devel
BuildRequires: happy
# End cabal-rpm deps
2014-08-28 07:21:49 +00:00
BuildRequires: emacs(bin)
2017-03-10 05:37:29 +00:00
# EdisonCore needs
BuildRequires: ghc-QuickCheck-devel
2017-03-10 11:28:55 +00:00
# https://bugzilla.redhat.com/show_bug.cgi?id=991929
ExcludeArch: %{arm}
2014-08-16 15:15:05 +00:00
Requires: ghc-%{name}-devel = %{version}-%{release}
2015-07-22 06:27:45 +00:00
# introduced for F23
Obsoletes: emacs-agda-el < 2.4.2.2-5
Provides: emacs-agda = %{version}-%{release}
2012-07-15 07:28:54 +00:00
%description
Agda is a dependently typed functional programming language: it has
inductive families, which are similar to Haskell's GADTs, but they can
be indexed by values and not just types. It also has parameterized
modules, mixfix operators, Unicode characters, and an interactive
Emacs interface (the type checker can assist in the development of your code).
Agda is also a proof assistant: It is an interactive system for writing and
checking proofs. Agda is based on intuitionistic type theory,
a foundational system for constructive mathematics developed by
the Swedish logician Per Martin-Löf. It has many similarities with other
proof assistants based on dependent types, such as Coq, Epigram and NuPRL.
%package -n ghc-%{name}
Summary: Haskell %{name} library
%description -n ghc-%{name}
This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files
2013-10-31 09:29:45 +00:00
Provides: ghc-%{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
2013-10-31 09:29:45 +00:00
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
Obsoletes: Agda < 2.3.1
%description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files.
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage %{EdisonAPI}
%ghc_lib_subpackage %{EdisonCore}
2017-02-24 04:43:01 +00:00
%ghc_lib_subpackage %{geniplatemirror}
%ghc_lib_subpackage %{gitrev}
%ghc_lib_subpackage %{ieee754}
%ghc_lib_subpackage %{monadplus}
%ghc_lib_subpackage %{murmurhash}
%endif
%global version %{main_version}
2012-07-15 07:28:54 +00:00
%prep
%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7
cabal-tweak-dep-ver ieee754 '< 0.8' '< 0.9'
# tweak the Agda version in the emacs mode
2017-02-09 04:09:00 +00:00
if ! grep -q \"%{version}\" src/data/emacs-mode/agda2-mode.el; then
echo "agda2-version in src/data/emacs-mode/agda2-mode.el out of sync!"
exit 1
fi
2012-07-15 07:28:54 +00:00
%build
%define elisp_files eri.el agda-input.el annotation.el agda2-highlight.el agda2-abbrevs.el agda2-queue.el agda2-mode.el agda2-mode-pkg.el agda2.el
# check no missing new elisp files
2017-02-09 04:09:00 +00:00
cd src/data/emacs-mode
for i in *.el; do
if ! echo %{elisp_files} | grep -q $i; then
echo "$i missing from %%elisp_files - aborting!"
exit 1
fi
done
cd -
2017-02-24 04:43:01 +00:00
%ghc_libs_build %{subpkgs}
2017-02-09 04:09:00 +00:00
%ghc_lib_build
# el6 macro does not add "." to load-path
%if %{defined el6}
%define _emacs_bytecompile /usr/bin/emacs -batch --no-init-file --no-site-file --eval '(progn (setq load-path (cons "." load-path)))' -f batch-byte-compile
%endif
2017-02-09 04:09:00 +00:00
cd src/data/emacs-mode
for i in %elisp_files; do
%{_emacs_bytecompile} $i
done
cd -
2012-07-15 07:28:54 +00:00
%install
2017-02-24 04:43:01 +00:00
%ghc_libs_install %{subpkgs}
2017-02-09 04:09:00 +00:00
%ghc_lib_install
%ghc_fix_rpath %{pkgver}
for i in %{subpkgs} %{pkgver}; do
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}$(echo %{buildroot}%ghclibdir/$i*):
done
export LD_LIBRARY_PATH
for i in $(find %{buildroot}%{_datadir}/%{pkgver} -name "*.agda"); do
Agda_datadir=%{buildroot}%{_datadir}/%{pkgver} %{buildroot}%{_bindir}/agda $i
2017-03-12 04:51:31 +00:00
done
mkdir -p %{buildroot}%{_emacs_sitelispdir}/agda
2017-02-09 04:09:00 +00:00
for i in src/data/emacs-mode/*; do
install -p -m 0644 $i %{buildroot}%{_emacs_sitelispdir}/agda
done
mkdir -p %{buildroot}%{_emacs_sitestartdir}
install -p -m 0644 %SOURCE10 %{buildroot}%{_emacs_sitestartdir}
rm %{buildroot}%{_bindir}/agda-mode
rm -r %{buildroot}%{_datadir}/%{pkgver}/emacs-mode
2017-02-09 04:09:00 +00:00
mv %{buildroot}%{_defaultlicensedir}/{,ghc-}%{name}
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
2012-07-15 07:28:54 +00:00
%files
2017-01-29 13:22:53 +00:00
%doc README.md
2015-07-22 06:27:45 +00:00
%dir %{_emacs_sitelispdir}/agda
%{_emacs_sitelispdir}/agda/*.el
%{_emacs_sitelispdir}/agda/*.elc
%{_emacs_sitestartdir}/*.el
2013-06-14 10:15:52 +00:00
%files -n ghc-%{name} -f ghc-%{name}.files
2017-01-29 13:22:53 +00:00
%license LICENSE
%{_bindir}/agda
%{_datadir}/%{pkgver}
2013-06-14 10:15:52 +00:00
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%doc CHANGELOG.md
2012-07-15 07:28:54 +00:00
%changelog
2017-03-12 04:51:31 +00:00
* Sun Mar 12 2017 Jens Petersen <petersen@redhat.com> - 2.5.2-5
- compile .agda files at buildtime
2017-03-12 04:51:31 +00:00
* Fri Mar 10 2017 Jens Petersen <petersen@redhat.com> - 2.5.2-4
2017-02-26 22:49:02 +00:00
- update to 2.5.2
- subpackage EdisonAPI, EdisonCore, gitrev, ieee754, monadplus, murmur-hash
2017-02-26 22:49:02 +00:00
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-02-09 04:09:00 +00:00
* Thu Feb 9 2017 Jens Petersen <petersen@redhat.com> - 2.4.2.5-2
- build subpackage inside main package
* Thu Oct 6 2016 Jens Petersen <petersen@redhat.com> - 2.4.2.5-1
- update to 2.4.2.5
- subpackage new dep geniplate-mirror
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-07-22 06:27:45 +00:00
* Wed Jul 22 2015 Jens Petersen <petersen@redhat.com> - 2.4.2.2-5
- drop emacs subpackages (#1234569)
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Apr 17 2015 Jens Petersen <petersen@redhat.com> - 2.4.2.2-3
- move agda from ghc-Agda-devel to ghc-Agda
2015-04-16 08:49:06 +00:00
* Thu Apr 16 2015 Jens Petersen <petersen@redhat.com> - 2.4.2.2-2
- compile Primitive.agda at install time
2015-04-16 08:49:06 +00:00
2015-04-03 04:25:00 +00:00
* Fri Apr 03 2015 Jens Petersen <petersen@redhat.com> - 2.4.2.2-1
- update to 2.4.2.2
2015-02-06 20:46:37 +00:00
* Fri Feb 6 2015 Jens Petersen <petersen@redhat.com> - 2.4.2-1
- update to 2.4.2
- needs new deps: STMonadTrans, boxes, data-hash, equivalence,
and QuickCheck 2.7.5+
2015-02-06 20:46:37 +00:00
- cblrpm refresh
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-04-22 01:40:31 +00:00
* Tue Apr 22 2014 Jens Petersen <petersen@redhat.com> - 2.3.2.2-3
- no _pkgdocdir in EL7
* Wed Jan 22 2014 Jens Petersen <petersen@redhat.com> - 2.3.2.2-2
- exclude secondary arch's without template-haskell (#1038068)
2013-10-31 09:29:45 +00:00
* Thu Oct 31 2013 Jens Petersen <petersen@redhat.com> - 2.3.2.2-1
- update to 2.3.2.2
2013-09-02 03:36:28 +00:00
* Mon Sep 2 2013 Jens Petersen <petersen@redhat.com> - 2.3.2.1-5
2013-09-02 03:39:26 +00:00
- drop defattr's
2013-09-02 03:36:28 +00:00
* Thu Aug 29 2013 Jens Petersen <petersen@redhat.com> - 2.3.2.1-4
- emacs agda-mode no longer depends on haskell-mode since 2.3.2
* Thu Aug 29 2013 Jens Petersen <petersen@redhat.com> - 2.3.2.1-3
- compile agda2-queue.el
- check for new elisp files
- exclude armv7hl since TemplateHaskell failing to compile (#991929)
2013-08-27 10:20:40 +00:00
* Tue Aug 27 2013 Jens Petersen <petersen@redhat.com>
- replace ghc_docdir by _pkgdocdir
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Jul 26 2013 Jens Petersen <petersen@redhat.com>
- use ghc_docdir
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 2.3.2.1-1
- rename src package from ghc-Agda to Agda
- update to 2.3.2.1
http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Main.Version-2-3-2
http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Main.Version-2-3-2-1
- update to new simplified Haskell Packaging Guidelines
- agda command-line tool in devel subpackage
2013-03-25 02:52:51 +00:00
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com>
- update to new simplified Haskell Packaging Guidelines
* Mon Mar 25 2013 Jens Petersen <petersen@redhat.com> - 2.3.0.1-12
2013-03-22 13:59:52 +00:00
- rebuild
* Tue Mar 19 2013 Jens Petersen <petersen@redhat.com> - 2.3.0.1-11
- allow haskeline-0.7
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-12-25 05:44:18 +00:00
* Wed Dec 12 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-9
- update QuickCheck-2.5 patch following upstream 2.3.2
- for epel6 redefine newer _emacs_bytecompile
- own datadir correctly
* Fri Nov 9 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-8
- build with QuickCheck 2.5
2012-11-17 08:14:01 +00:00
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jul 16 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-6
- change prof BRs to devel
* Wed Jul 11 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-5
- fix agda2-version in agda2-mode.el
* Thu Jun 21 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-4
- upstream patch for building with haskell-src-exts-1.13
- use new cabal-tweak-dep-ver script to change mtl and haskell-src-exts bounds
* Mon Jun 11 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-3
- allow building with mtl-2.1
* Thu May 31 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-2
- library license is also BSD (#710031)
- move release notes to devel subpackage
* Tue Apr 10 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.1-1
- update to 2.3.0.1 for ghc-7.4.1
* Tue Feb 14 2012 Jens Petersen <petersen@redhat.com> - 2.3.0-1
- update to 2.3.0
- update to cabal2spec-0.25
- new depends on hashtables
* Fri Jun 3 2011 Jens Petersen <petersen@redhat.com> - 2.2.10-2
- also BR alex, happy, and emacs-haskell-mode
2012-07-15 07:28:54 +00:00
* Thu Jun 2 2011 Jens Petersen <petersen@redhat.com> - 2.2.10-1
2012-07-15 07:28:54 +00:00
- MIT license
- add deps and description
- emacs mode subpackages
2012-07-15 07:28:54 +00:00
* Thu Jun 2 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 2.2.10-0
2012-07-15 07:28:54 +00:00
- initial packaging for Fedora automatically generated by cabal2spec-0.23