update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
b7f8dc0f28
commit
bcbcc4b2ff
@ -1,17 +1,11 @@
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%global pkg_name edit-distance
|
||||
|
||||
%global common_summary Levenshtein and restricted Damerau-Levenshtein edit distances
|
||||
|
||||
%global common_description Optimized edit distances for fuzzy matching, \
|
||||
including Levenshtein and restricted Damerau-Levenshtein algorithms.
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.2.1.2
|
||||
Release: 1%{?dist}
|
||||
Summary: %{common_summary}
|
||||
Release: 2%{?dist}
|
||||
Summary: Levenshtein and restricted Damerau-Levenshtein edit distances
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
@ -26,7 +20,19 @@ BuildRequires: ghc-random-devel
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
Optimized edit distances for fuzzy matching, including Levenshtein
|
||||
and restricted Damerau-Levenshtein algorithms.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
|
||||
%prep
|
||||
@ -41,18 +47,26 @@ BuildRequires: ghc-random-devel
|
||||
%ghc_lib_install
|
||||
|
||||
|
||||
%ghc_devel_package
|
||||
|
||||
%ghc_devel_description
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_devel_post_postun
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_files LICENSE
|
||||
%files -f %{name}.files
|
||||
%doc LICENSE
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc README.textile
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.2.1.2-2
|
||||
- update to new simplified Haskell Packaging Guidelines
|
||||
|
||||
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.2.1.2-1
|
||||
- update to 0.2.1.2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user