[ghc-netlist-to-vhdl] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 04:17:16 UTC 2013


commit d1b426f46ba31d5ae40ee9eaa7f5219ee6e48047
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:48:57 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-netlist-to-vhdl.spec |   42 +++++++++++++++++++++++++++++++-----------
 1 files changed, 31 insertions(+), 11 deletions(-)
---
diff --git a/ghc-netlist-to-vhdl.spec b/ghc-netlist-to-vhdl.spec
index 8b26c59..3e9083c 100644
--- a/ghc-netlist-to-vhdl.spec
+++ b/ghc-netlist-to-vhdl.spec
@@ -1,15 +1,10 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name netlist-to-vhdl
 
-%global common_summary Haskell %{pkg_name} library
-
-%global common_description A %{pkg_name} library for Haskell.
-
 Name:           ghc-%{pkg_name}
 Version:        0.3.1
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Convert a Netlist AST to VHDL
 
 License:        BSD
@@ -24,26 +19,51 @@ BuildRequires:  ghc-pretty-devel
 # End cabal-rpm deps
 
 %description
-Package that converts Netlist AST to VHDL.
+Library to convert a Netlist AST to VHDL.
+
+
+%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
 %setup -q -n %{pkg_name}-%{version}
 
+
 %build
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
-%ghc_devel_package
 
-%ghc_devel_description
+%post devel
+%ghc_pkg_recache
+
+
+%postun devel
+%ghc_pkg_recache
+
 
-%ghc_devel_post_postun
+%files -f %{name}.files
+%doc LICENSE
+
+
+%files devel -f %{name}-devel.files
 
-%ghc_files LICENSE
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com>
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list