rpms/xmonad/F-10 xmonad.spec,1.2,1.3

Jens Petersen petersen at fedoraproject.org
Thu May 7 03:17:36 UTC 2009


Author: petersen

Update of /cvs/extras/rpms/xmonad/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9785

Modified Files:
	xmonad.spec 
Log Message:
backport from F-11 and try without ppc runghc hack


Index: xmonad.spec
===================================================================
RCS file: /cvs/extras/rpms/xmonad/F-10/xmonad.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- xmonad.spec	6 May 2009 21:48:56 -0000	1.2
+++ xmonad.spec	7 May 2009 03:17:04 -0000	1.3
@@ -1,4 +1,8 @@
 %global X11_version 1.4.3
+%global ghc_version 6.10.1
+
+%global pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{name}-%{version}
+%global pkg_docdir %{_docdir}/ghc/libraries/%{name}-%{version}
 
 %bcond_without doc
 %bcond_without prof
@@ -8,7 +12,7 @@
 
 Name:           xmonad
 Version:        0.8.1
-Release:        12%{?dist}
+Release:        12%{?dist}.1
 Summary:        A tiling window manager
 
 Group:          User Interface/X
@@ -21,16 +25,14 @@ Patch0:         xmonad-config-manpage.pa
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # fedora ghc archs:
 ExclusiveArch: %{ix86} x86_64 ppc alpha
-BuildRequires:  ghc
+BuildRequires:  ghc = %{ghc_version}
 BuildRequires:  ghc-X11-devel >= %{X11_version}
 %if %{with doc}
-BuildRequires:  ghc-doc
+BuildRequires:  ghc-doc = %{ghc_version}
 %endif
 %if %{with prof}
-BuildRequires:  ghc-prof, ghc-X11-prof >= %{X11_version}
+BuildRequires:  ghc-prof = %{ghc_version}, ghc-X11-prof >= %{X11_version}
 %endif
-# for latest macros.ghc
-BuildRequires:  ghc >= 6.10.2-3
 Requires:       ghc-%{name}-devel = %{version}-%{release}
 # required until there is a command to open some system default
 # xterminal
@@ -162,8 +164,9 @@ fi
 
 
 %if %{with doc}
-%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
+%files -n ghc-%{name}-doc
 %defattr(-,root,root,-)
+%{pkg_docdir}
 %endif
 
 
@@ -174,6 +177,9 @@ fi
 
 
 %changelog
+* Thu May  7 2009 Jens Petersen <petersen at redhat.com> - 0.8.1-12.fc11.1
+- backport to cabal2spec-0.12
+
 * Wed May  6 2009 Yaakov M. Nemoy <ynemoy at fedoraproject.org> - 0.8.1-12
 - applies changes from jens' patch
 - renames xmonad.desktop entry




More information about the scm-commits mailing list