|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name hscolour
|
|
|
|
|
|
|
|
# link statically to Haskell libs for easier ghc version bootstrapping
|
|
|
|
%global ghc_without_dynamic 1
|
|
|
|
|
|
|
|
# use following to bootstrap for a new arch:
|
|
|
|
#%%{?ghc_bootstrap}
|
|
|
|
#%%global ghc_bootstrapping 1
|
|
|
|
#%%global without_hscolour 1
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
|
|
Version: 1.20.3
|
|
|
|
Release: 12%{?dist}
|
|
|
|
Summary: Colorize Haskell code
|
|
|
|
|
|
|
|
# the source does not state intended GPL version
|
|
|
|
License: GPL+
|
|
|
|
Url: https://hackage.haskell.org/package/%{name}
|
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
|
|
|
Hscolour is a Haskell tool to colourize Haskell code. It currently has
|
|
|
|
six output formats: ANSI terminal codes (optionally XTerm-256colour codes),
|
|
|
|
HTML 3.2 with <font> tags, HTML 4.01 with CSS, HTML 4.01 with CSS and mouseover
|
|
|
|
annotations, XHTML 1.0 with inline CSS styling, LaTeX, and mIRC chat codes.
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
Provides: ghc-%{name}-static = %{version}-%{release}
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n ghc-%{name}-devel
|
|
|
|
This package provides the Haskell %{name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
|
|
%post -n ghc-%{name}-devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n ghc-%{name}-devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENCE-GPL
|
|
|
|
%{_bindir}/HsColour
|
|
|
|
%{_datadir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
%doc LICENCE-GPL
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.3-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jan 26 2015 Jens Petersen <petersen@fedoraproject.org> - 1.20.3-11
|
|
|
|
- cblrpm refresh
|
|
|
|
|
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.3-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.3-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 27 2014 Jens Petersen <petersen@redhat.com> - 1.20.3-8
|
|
|
|
- link executable to Haskell libs statically for easier ghc package bootstrapping
|
|
|
|
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.3-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jun 20 2013 Jens Petersen <petersen@redhat.com> - 1.20.3-6
|
|
|
|
- turn off bootstrap
|
|
|
|
|
|
|
|
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 1.20.3-5
|
|
|
|
- update to new simplified Haskell Packaging Guidelines
|
|
|
|
- bootstrap build
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 1.20.3-3
|
|
|
|
- normal build
|
|
|
|
|
|
|
|
* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 1.20.3-2
|
|
|
|
- bootstrap
|
|
|
|
- change license tag to GPL+ since no indication of version
|
|
|
|
- update with cabal-rpm
|
|
|
|
|
|
|
|
* Mon Sep 10 2012 Jens Petersen <petersen@redhat.com> - 1.20.3-1
|
|
|
|
- update to 1.20.3, which should build with ghc-7.6
|
|
|
|
- hscolour-1.20.2-non-ascii.patch is upstream
|
|
|
|
|
|
|
|
* Thu Jul 26 2012 Jens Petersen <petersen@redhat.com> - 1.20.2-3
|
|
|
|
- add upstream patch to workaround errors with unicode points > 255
|
|
|
|
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jun 9 2012 Jens Petersen <petersen@redhat.com> - 1.20.2-1
|
|
|
|
- update to 1.20.2
|
|
|
|
|
|
|
|
* Wed Mar 21 2012 Jens Petersen <petersen@redhat.com> - 1.19-6
|
|
|
|
- normal full build
|
|
|
|
|
|
|
|
* Wed Mar 21 2012 Jens Petersen <petersen@redhat.com> - 1.19-5
|
|
|
|
- bootstrap build
|
|
|
|
- drop the explicit containers BR
|
|
|
|
|
|
|
|
* Mon Jan 23 2012 Jens Petersen <petersen@redhat.com> - 1.19-4
|
|
|
|
- update to cabal2spec-0.25.2
|
|
|
|
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-3.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.19-2.2
|
|
|
|
- rebuild with new gmp without compat lib
|
|
|
|
|
|
|
|
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 1.19-2.1
|
|
|
|
- rebuild with new gmp
|
|
|
|
|
|
|
|
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 1.19-2
|
|
|
|
- use ghc_arches (cabal-0.23.2)
|
|
|
|
|
|
|
|
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 1.19-1
|
|
|
|
- update to 1.19
|
|
|
|
- use ghc_bootstrap from ghc-rpm-macros-0.13.5
|
|
|
|
- just depends on containers
|
|
|
|
|
|
|
|
* Thu May 05 2011 Jiri Skala <jskala@redhat.com> - 1.17-10
|
|
|
|
- enable source hscolour again
|
|
|
|
|
|
|
|
* Tue May 03 2011 Jiri Skala <jskala@redhat.com> - 1.17-9
|
|
|
|
- temporily disable hscolour for ghc-7.0.2 bootstrap on ppc64
|
|
|
|
|
|
|
|
* Thu Mar 10 2011 Jens Petersen <petersen@redhat.com> - 1.17-8
|
|
|
|
- enable source hscolour again
|
|
|
|
|
|
|
|
* Thu Mar 10 2011 Jens Petersen <petersen@redhat.com> - 1.17-7
|
|
|
|
- temporily disable hscolour for ghc-7.0.2 bootstrap
|
|
|
|
|
|
|
|
* Wed Feb 23 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.17-6
|
|
|
|
- enable build on sparcv9
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jan 23 2011 Jens Petersen <petersen@redhat.com> - 1.17-4
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
* Sat Jan 15 2011 Jens Petersen <petersen@redhat.com> - 1.17-3
|
|
|
|
- update to cabal2spec-0.22.4
|
|
|
|
|
|
|
|
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 1.17-2
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Mon Jul 19 2010 Jens Petersen <petersen@redhat.com> - 1.17-1
|
|
|
|
- 1.17 release
|
|
|
|
- use ghc-rpm-macros-0.8.1 macros: update to cabal2spec-0.22.1
|
|
|
|
- add hscolour and obsolete doc subpackage
|
|
|
|
|
|
|
|
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 1.16-3
|
|
|
|
- strip dynlinked files (cabal2spec-0.21.4)
|
|
|
|
|
|
|
|
* Mon Feb 15 2010 Conrad Meyer <konrad@tylerc.org> - 1.16-1
|
|
|
|
- Bump to 1.16
|
|
|
|
|
|
|
|
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 1.15-4
|
|
|
|
- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
|
|
|
|
- drop doc and prof bcond
|
|
|
|
- use common summary and common_description
|
|
|
|
- define pkg_name and use ghc_binlib_package
|
|
|
|
|
|
|
|
* Wed Dec 23 2009 Jens Petersen <petersen@redhat.com> - 1.15-3
|
|
|
|
- devel package requires shared library not base
|
|
|
|
|
|
|
|
* Wed Dec 23 2009 Jens Petersen <petersen@redhat.com> - 1.15-2
|
|
|
|
- update spec for ghc-6.12.1
|
|
|
|
- added shared library support: needs ghc-rpm-macros 0.3.1
|
|
|
|
|
|
|
|
* Fri Sep 18 2009 Jens Petersen <petersen@redhat.com> - 1.15-1
|
|
|
|
- update to 1.15
|
|
|
|
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun May 24 2009 Jens Petersen <petersen@redhat.com> - 1.13-1
|
|
|
|
- update to 1.13
|
|
|
|
- buildrequires ghc-rpm-macros (cabal2spec-0.16)
|
|
|
|
|
|
|
|
* Sat Apr 25 2009 Jens Petersen <petersen@redhat.com> - 1.12-3
|
|
|
|
- sync with cabal2spec-0.15
|
|
|
|
|
|
|
|
* Tue Mar 10 2009 Jens Petersen <petersen@redhat.com> - 1.12-2
|
|
|
|
- fix url (#488665)
|
|
|
|
- fix HsColour permissions (#488665)
|
|
|
|
|
|
|
|
* Thu Mar 5 2009 Jens Petersen <petersen@redhat.com> - 1.12-1
|
|
|
|
- initial packaging for Fedora created by cabal2spec
|