Blame SPECS/ghc-hourglass.spec

421657
# generated by cabal-rpm-0.12.1
421657
# https://fedoraproject.org/wiki/Packaging:Haskell
421657
421657
%global pkg_name hourglass
421657
%global pkgver %{pkg_name}-%{version}
421657
421657
%bcond_with tests
421657
421657
Name:           ghc-%{pkg_name}
421657
Version:        0.2.10
421657
Release:        7%{?dist}
421657
Summary:        Simple performant time related library
421657
421657
License:        BSD
421657
Url:            https://hackage.haskell.org/package/%{pkg_name}
421657
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
421657
421657
BuildRequires:  ghc-Cabal-devel
421657
BuildRequires:  ghc-rpm-macros
421657
# Begin cabal-rpm deps:
421657
BuildRequires:  ghc-deepseq-devel
421657
%if %{with tests}
421657
BuildRequires:  ghc-mtl-devel
421657
BuildRequires:  ghc-old-locale-devel
421657
BuildRequires:  ghc-tasty-devel
421657
BuildRequires:  ghc-tasty-hunit-devel
421657
BuildRequires:  ghc-tasty-quickcheck-devel
421657
BuildRequires:  ghc-time-devel
421657
%endif
421657
# End cabal-rpm deps
421657
421657
%description
421657
Simple time library focusing on simple but powerful and performant API
421657
421657
The backbone of the library are the Timeable and Time type classes.
421657
421657
Each Timeable instances can be converted to type that has a Time instances, and
421657
thus are different representations of current time.
421657
421657
421657
%package devel
421657
Summary:        Haskell %{pkg_name} library development files
421657
Provides:       %{name}-static = %{version}-%{release}
421657
Provides:       %{name}-doc = %{version}-%{release}
421657
%if %{defined ghc_version}
421657
Requires:       ghc-compiler = %{ghc_version}
421657
Requires(post): ghc-compiler = %{ghc_version}
421657
Requires(postun): ghc-compiler = %{ghc_version}
421657
%endif
421657
Requires:       %{name}%{?_isa} = %{version}-%{release}
421657
421657
%description devel
421657
This package provides the Haskell %{pkg_name} library development files.
421657
421657
421657
%package devel-doc
421657
Summary:        Haskell %{pkg_name} library development documentation
421657
421657
BuildArch:      noarch
421657
421657
%description devel-doc
421657
This package provides the Haskell %{pkg_name} library development
421657
documentation.
421657
421657
421657
%prep
421657
%setup -q -n %{pkgver}
421657
421657
421657
%build
421657
%ghc_lib_build
421657
421657
421657
%install
421657
%ghc_lib_install
421657
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
421657
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
421657
421657
421657
%check
421657
%cabal_test
421657
421657
421657
%post devel
421657
%ghc_pkg_recache
421657
421657
421657
%postun devel
421657
%ghc_pkg_recache
421657
421657
421657
%files -f %{name}.files
421657
%license LICENSE
421657
421657
421657
%files devel -f %{name}-devel-nodoc.files
421657
%doc CHANGELOG.md README.md
421657
421657
421657
%files devel-doc -f %{name}-devel-doc.files
421657
%doc CHANGELOG.md README.md
421657
421657
421657
%changelog
421657
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.10-7
421657
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
421657
421657
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.2.10-6
421657
- rebuild
421657
421657
* Sun Sep 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.10-5
421657
- Split documentation into separate subpackage.
421657
- Update to latest spec template.
421657
421657
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.10-4
421657
- Re-add dist tag to release numbers.
421657
421657
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.10-3
421657
- Bump for Fedora 26.
421657
421657
* Thu Dec 15 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.10-2
421657
- Update release to be newer than previous builds
421657
421657
* Thu Dec 15 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.2.10-1
421657
- spec file generated by cabal-rpm-0.10.0