[10144] | 1 | %define pkg_name ghc-bootstrap |
---|
| 2 | %define pkg_version 7.10.3 |
---|
[10842] | 3 | %define pkg_release 2%{?_dist_release} |
---|
[10144] | 4 | |
---|
| 5 | %ifarch %{ix86} |
---|
| 6 | %define rpmarch i386 |
---|
| 7 | %endif |
---|
| 8 | %ifarch x86_64 |
---|
| 9 | %define rpmarch x86_64 |
---|
| 10 | %endif |
---|
| 11 | |
---|
| 12 | %define dlurl https://www.haskell.org/ghc/dist |
---|
| 13 | %define filename ghc-%{pkg_version}-%{rpmarch}-deb8-linux.tar.bz2 |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | Summary: ghc binary for build ghc |
---|
| 17 | Name: %{pkg_name} |
---|
| 18 | Version: %{pkg_version} |
---|
| 19 | Release: %{pkg_release} |
---|
| 20 | |
---|
| 21 | License: BSD-like |
---|
| 22 | Group: Applications/Languages |
---|
| 23 | URL: https://www.haskell.org/ghc |
---|
| 24 | |
---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 26 | BuildRequires: wget |
---|
| 27 | |
---|
| 28 | Vendor: Project Vine |
---|
| 29 | Distribution: Vine Linux |
---|
| 30 | Packager: ara_t |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %description |
---|
| 34 | The Glasgow Haskell Compiler (GHC) is a state-of-the-art, open source, |
---|
| 35 | compiler and interactive environment for the functional language Haskell. |
---|
| 36 | |
---|
| 37 | This package is ghc binary for building ghc. |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[10842] | 42 | # wget %{dlurl}/%{version}/%{filename} |
---|
[10144] | 43 | |
---|
[10842] | 44 | # %build |
---|
| 45 | # %{__tar} xf %{filename} |
---|
| 46 | # cd ghc-%{version} |
---|
| 47 | # ./configure --prefix=%{_prefix} --libdir=%{_libdir} \ |
---|
| 48 | # --with-system-libffi |
---|
[10144] | 49 | |
---|
[10842] | 50 | # %install |
---|
| 51 | # cd ghc-%{version} |
---|
| 52 | # %{make_install} |
---|
| 53 | # %{__mv} ${RPM_BUILD_ROOT}%{_docdir}/ghc \ |
---|
| 54 | # ${RPM_BUILD_ROOT}%{_docdir}/ghc-%{version} \ |
---|
[10144] | 55 | |
---|
| 56 | %clean |
---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 58 | |
---|
[10842] | 59 | # %post -p %{_syssbindir}/ldconfig |
---|
| 60 | # %postun -p %{_syssbindir}/ldconfig |
---|
[10144] | 61 | |
---|
| 62 | |
---|
| 63 | %files |
---|
[10842] | 64 | # %defattr(-, root, root) |
---|
| 65 | # %{_bindir}/ |
---|
| 66 | # %{_libdir}/ghc-%{version}/ |
---|
| 67 | # %{_docdir}/ghc-%{version}/ |
---|
| 68 | # %{_mandir}/man1/ |
---|
[10144] | 69 | |
---|
| 70 | |
---|
| 71 | %changelog |
---|
[10842] | 72 | * Sun Dec 11 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-2 |
---|
| 73 | - empty |
---|
| 74 | |
---|
[10144] | 75 | * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-1 |
---|
| 76 | - update to 7.10.3-1 |
---|
| 77 | |
---|
| 78 | * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 7.6.3-2 |
---|
| 79 | - coorect SPEC file |
---|
| 80 | |
---|
| 81 | * Tue Feb 02 2016 Toshiaki Ara <ara_t@384.jp> 7.6.3-1 |
---|
| 82 | - new package |
---|