update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-11 16:43:44 +09:00
parent cb77df125d
commit e38aba07aa
1 changed files with 38 additions and 25 deletions

View File

@ -1,28 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name ConfigFile
%global common_summary Configuration file reading and writing
%global common_description Parser and writer for handling sectioned config files in \
Haskell. \
\
The ConfigFile module works with configuration files in a \
standard format that is easy for the user to edit, easy for \
the programmer to work with, yet remains powerful and \
flexible. It is inspired by, and compatible with, Python's \
ConfigParser module. It uses files that resemble Windows \
.INI-style files, but with numerous improvements. \
\
ConfigFile provides simple calls to both read and write \
config files. It's possible to make a config file parsable by \
this module, the Unix shell, and make.
Name: ghc-%{pkg_name}
Version: 1.1.1
Release: 7%{?dist}
Summary: %{common_summary}
Release: 8%{?dist}
Summary: Configuration file reading and writing
License: LGPLv2+
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -38,7 +21,30 @@ BuildRequires: ghc-parsec-devel
# End cabal-rpm deps
%description
%{common_description}
Parser and writer for handling sectioned config files in
Haskell.
The ConfigFile module works with configuration files in a
standard format that is easy for the user to edit, easy for
the programmer to work with, yet remains powerful and
flexible. It is inspired by, and compatible with, Python's
ConfigParser module. It uses files that resemble Windows
.INI-style files, but with numerous improvements.
ConfigFile provides simple calls to both read and write
config files. It's possible to make a config file parsable by
this module, the Unix shell, and make.
%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
@ -53,19 +59,26 @@ BuildRequires: ghc-parsec-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 COPYING COPYRIGHT
%files -f %{name}.files
%doc COPYING COPYRIGHT
%files devel -f %{name}-devel.files
%doc README
%changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 1.1.1-8
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild