ghc-uuid/ghc-uuid.spec

156 lines
4.6 KiB
RPMSpec
Raw Normal View History

2017-02-21 15:38:19 +00:00
# generated by cabal-rpm-0.11.1
2013-09-04 01:18:35 +00:00
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name uuid
2017-02-21 15:38:19 +00:00
%global pkgver %{pkg_name}-%{version}
%global cryptohashmd5 cryptohash-md5-0.11.100.1
%global cryptohashsha1 cryptohash-sha1-0.11.100.1
%global networkinfo network-info-0.2.0.8
%global uuidtypes uuid-types-1.0.3
%global subpkgs %{cryptohashmd5} %{cryptohashsha1} %{networkinfo} %{uuidtypes}
2013-09-04 01:18:35 +00:00
2015-01-27 14:51:46 +00:00
%bcond_with tests
2013-09-04 01:18:35 +00:00
Name: ghc-%{pkg_name}
2017-02-21 15:38:19 +00:00
Version: 1.3.13
# can only be reset when all subpkgs bumped
Release: 3%{?dist}
2013-09-04 01:18:35 +00:00
Summary: For creating, comparing, parsing and printing Universally Unique Identifiers
License: BSD
2015-01-27 14:51:46 +00:00
Url: https://hackage.haskell.org/package/%{pkg_name}
2017-02-21 15:38:19 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{cryptohashmd5}/%{cryptohashmd5}.tar.gz
Source2: https://hackage.haskell.org/package/%{cryptohashsha1}/%{cryptohashsha1}.tar.gz
Source3: https://hackage.haskell.org/package/%{networkinfo}/%{networkinfo}.tar.gz
Source4: https://hackage.haskell.org/package/%{uuidtypes}/%{uuidtypes}.tar.gz
2013-09-04 01:18:35 +00:00
BuildRequires: ghc-Cabal-devel
2017-02-21 15:38:19 +00:00
BuildRequires: ghc-rpm-macros-extra
2013-09-04 01:18:35 +00:00
# Begin cabal-rpm deps:
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
2017-02-21 15:38:19 +00:00
#BuildRequires: ghc-cryptohash-md5-devel
#BuildRequires: ghc-cryptohash-sha1-devel
BuildRequires: ghc-entropy-devel
#BuildRequires: ghc-network-info-devel
2013-09-04 01:18:35 +00:00
BuildRequires: ghc-random-devel
2017-02-21 15:38:19 +00:00
BuildRequires: ghc-text-devel
2013-09-04 01:18:35 +00:00
BuildRequires: ghc-time-devel
2017-02-21 15:38:19 +00:00
#BuildRequires: ghc-uuid-types-devel
2015-01-27 14:51:46 +00:00
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-QuickCheck-devel
2017-02-21 15:38:19 +00:00
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
2015-01-27 14:51:46 +00:00
%endif
2013-09-04 01:18:35 +00:00
# End cabal-rpm deps
2017-02-26 23:11:03 +00:00
# uuid-types needs
BuildRequires: ghc-hashable-devel
2013-09-04 01:18:35 +00:00
%description
This library is useful for creating, comparing, parsing and printing
2017-02-21 15:38:19 +00:00
Universally Unique Identifiers.
See <http://en.wikipedia.org/wiki/UUID> for the general idea.
2013-09-04 01:18:35 +00:00
%package devel
Summary: Haskell %{pkg_name} library development files
2015-01-27 14:51:46 +00:00
Provides: %{name}-static = %{version}-%{release}
2013-09-04 01:18:35 +00:00
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
2015-01-27 14:51:46 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2013-09-04 01:18:35 +00:00
%description devel
2015-01-27 14:51:46 +00:00
This package provides the Haskell %{pkg_name} library development files.
2013-09-04 01:18:35 +00:00
2017-02-21 15:38:19 +00:00
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage %{cryptohashmd5}
%ghc_lib_subpackage %{cryptohashsha1}
%ghc_lib_subpackage %{networkinfo}
%ghc_lib_subpackage %{uuidtypes}
%endif
%global version %{main_version}
2013-09-04 01:18:35 +00:00
%prep
2017-02-21 15:38:19 +00:00
%setup -q -n %{pkgver} -a1 -a2 -a3 -a4
2013-09-04 01:18:35 +00:00
%build
2017-02-21 15:38:19 +00:00
%ghc_libs_build %{subpkgs}
2013-09-04 01:18:35 +00:00
%ghc_lib_build
%install
2017-02-21 15:38:19 +00:00
%ghc_libs_install %{subpkgs}
2013-09-04 01:18:35 +00:00
%ghc_lib_install
2017-02-21 15:38:19 +00:00
%ghc_fix_rpath %{subpkgs}
2013-09-04 01:18:35 +00:00
2015-01-27 14:51:46 +00:00
%check
%cabal_test
2015-01-27 14:51:46 +00:00
2013-09-04 01:18:35 +00:00
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
2015-09-30 06:13:59 +00:00
%license LICENSE
2013-09-04 01:18:35 +00:00
%files devel -f %{name}-devel.files
2017-02-21 15:38:19 +00:00
%doc CHANGES.md
2013-09-04 01:18:35 +00:00
%changelog
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-02-21 15:38:19 +00:00
* Tue Feb 21 2017 Jens Petersen <petersen@redhat.com> - 1.3.13-1
- update to 1.3.13
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-06-20 01:41:28 +00:00
* Mon Jun 20 2016 Jens Petersen <petersen@redhat.com> - 1.2.14-1
- update to 1.2.14
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.13-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-10-01 06:58:16 +00:00
* Wed Sep 30 2015 Jens Petersen <petersen@redhat.com> - 1.2.13-6
- allow time 1.5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.13-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-01-27 14:51:46 +00:00
* Tue Jan 27 2015 Jens Petersen <petersen@fedoraproject.org> - 1.2.13-4
- cblrpm refresh
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2013-09-04 01:18:35 +00:00
* Sat Jun 15 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.2.13-1
- spec file generated by cabal-rpm-0.8.1