[ghc-libmpd] update to 0.7.0 and cabal2spec-0.25.2

Jens Petersen petersen at fedoraproject.org
Wed Jan 4 07:50:22 UTC 2012


commit 267ce3020f40326935352af1632effd54ad5cd05
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Jan 4 16:50:14 2012 +0900

    update to 0.7.0 and cabal2spec-0.25.2

 .gitignore              |    1 +
 ghc-libmpd.spec         |   42 +++++++++++++++++++++++++++---------------
 libmpd-0.5.0-ghc7.patch |   19 -------------------
 sources                 |    2 +-
 4 files changed, 29 insertions(+), 35 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 060f60f..6292b39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /libmpd-0.4.2.tar.gz
 /libmpd-0.5.0.tar.gz
+/libmpd-0.7.0.tar.gz
diff --git a/ghc-libmpd.spec b/ghc-libmpd.spec
index 793ec57..8b08296 100644
--- a/ghc-libmpd.spec
+++ b/ghc-libmpd.spec
@@ -1,35 +1,38 @@
+# cabal2spec-0.25.2
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name libmpd
 
-%global common_summary An MPD client library
+%global common_summary Haskell MPD client library
 
 %global common_description A client library for MPD, the Music Player Daemon.
 
 Name:           ghc-%{pkg_name}
-Version:        0.5.0
-Release:        9%{?dist}.3
+Version:        0.7.0
+Release:        1%{?dist}
 Summary:        %{common_summary}
 
 Group:          System Environment/Libraries
 License:        LGPLv2
+# BEGIN cabal2spec
 URL:            http://hackage.haskell.org/package/%{pkg_name}
 Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
 ExclusiveArch:  %{ghc_arches}
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
-BuildRequires:  hscolour
-BuildRequires:  ghc-mtl-prof, ghc-network-prof, ghc-time-prof, ghc-utf8-string-prof
-Patch1:         libmpd-0.5.0-ghc7.patch
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
+BuildRequires:  ghc-mtl-prof
+BuildRequires:  ghc-network-prof
+BuildRequires:  ghc-time-prof
+BuildRequires:  ghc-utf8-string-prof
 
 %description
 %{common_description}
-%if %{with shared}
-This package provides the shared library.
-%endif
 
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-%patch1 -p1 -b .orig
 
 
 %build
@@ -38,15 +41,24 @@ This package provides the shared library.
 
 %install
 %ghc_lib_install
-mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}
-install -p ChangeLog %{buildroot}/%{_docdir}/%{name}-%{version}/ChangeLog
-install -p README.md %{buildroot}/%{_docdir}/%{name}-%{version}/README.md
 
 
-%{?ghc_lib_package}
+%ghc_devel_package
+
+%ghc_devel_description
+
+
+%ghc_devel_post_postun
+
+
+%ghc_files
+%doc README.md
 
 
 %changelog
+* Wed Jan  4 2012 Jens Petersen <petersen at redhat.com> - 0.7.0-1
+- update to 0.7.0 and cabal2spec-0.25.2
+
 * Mon Oct 24 2011 Marcela Mašláňová <mmaslano at redhat.com> - 0.5.0-9.3
 - rebuild with new gmp without compat lib
 
diff --git a/sources b/sources
index 0a9a3cf..759dca6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-38771e38d93ed511340c3c171df3dd75  libmpd-0.5.0.tar.gz
+c82b959f1ec4a6c4bbdd9dc77b419d2b  libmpd-0.7.0.tar.gz


More information about the scm-commits mailing list