ghcid/ghcid.spec

159 lines
3.9 KiB
RPMSpec
Raw Normal View History

# generated by cabal-rpm-1.0.0
2018-10-21 10:48:34 +00:00
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name ghcid
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: %{pkg_name}
Version: 0.7.1
Release: 5%{?dist}
2018-10-21 10:48:34 +00:00
Summary: GHCi based bare bones IDE
License: BSD
Url: https://hackage.haskell.org/package/%{name}
2019-02-17 14:48:05 +00:00
# Begin cabal-rpm sources:
2018-10-21 10:48:34 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2019-02-17 14:48:05 +00:00
# End cabal-rpm sources
2018-10-21 10:48:34 +00:00
2019-02-17 14:48:05 +00:00
# Begin cabal-rpm deps:
2018-10-21 10:48:34 +00:00
BuildRequires: ghc-Cabal-devel
%if %{with haddock}
BuildRequires: ghc-doc
%endif
%if %{with ghc_prof}
BuildRequires: ghc-prof
%endif
2018-10-21 10:48:34 +00:00
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-cmdargs-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-extra-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-fsnotify-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-terminal-size-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
%if %{with tests}
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
%endif
# End cabal-rpm deps
Requires: cabal-install
Requires: ghc-compiler
2018-10-21 10:48:34 +00:00
%description
Either "GHCi as a daemon" or "GHC + a bit of an IDE". A very simple Haskell
development tool which shows you the errors in your project and updates them
whenever you save. Run 'ghcid --command=ghci', where '--command' is the
command to start GHCi on your project (defaults to 'ghci' if you have a '.ghci'
file, or else to 'cabal repl').
%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}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
%description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files.
%if %{with haddock}
%package -n ghc-%{name}-doc
Summary: Haskell %{name} library documentation
%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.
%endif
%if %{with ghc_prof}
%package -n ghc-%{name}-prof
Summary: Haskell %{name} profiling library
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.
%endif
2018-10-21 10:48:34 +00:00
%prep
2019-02-17 14:48:05 +00:00
# Begin cabal-rpm setup:
2018-10-21 10:48:34 +00:00
%setup -q
2019-02-17 14:48:05 +00:00
# End cabal-rpm setup
2018-10-21 10:48:34 +00:00
%build
2019-02-17 14:48:05 +00:00
# Begin cabal-rpm build:
2018-10-21 10:48:34 +00:00
%ghc_lib_build
2019-02-17 14:48:05 +00:00
# End cabal-rpm build
2018-10-21 10:48:34 +00:00
%install
2019-02-17 14:48:05 +00:00
# Begin cabal-rpm install
2018-10-21 10:48:34 +00:00
%ghc_lib_install
2019-02-17 14:48:05 +00:00
# End cabal-rpm install
2018-10-21 10:48:34 +00:00
%check
%cabal_test
%files
2019-02-17 14:48:05 +00:00
# Begin cabal-rpm files:
2018-10-21 10:48:34 +00:00
%license LICENSE
%doc CHANGES.txt README.md
%{_bindir}/%{name}
2019-02-17 14:48:05 +00:00
# End cabal-rpm files
2018-10-21 10:48:34 +00:00
%files -n ghc-%{name} -f ghc-%{name}.files
2019-02-17 14:48:05 +00:00
# Begin cabal-rpm files:
2018-10-21 10:48:34 +00:00
%license LICENSE
2019-02-17 14:48:05 +00:00
# End cabal-rpm files
2018-10-21 10:48:34 +00:00
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%doc CHANGES.txt README.md
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%endif
%if %{with ghc_prof}
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
%endif
2018-10-21 10:48:34 +00:00
%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Mar 19 2019 Jens Petersen <petersen@redhat.com> - 0.7.1-4
- requires ghc-compiler and cabal-install
2019-02-17 14:48:05 +00:00
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.7.1-3
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-10-21 10:48:34 +00:00
* Mon Oct 15 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.7.1-1
- spec file generated by cabal-rpm-0.12.5