rpms/ghc-GLUT/devel ghc-GLUT.spec,1.5,1.6
Jens Petersen
petersen at fedoraproject.org
Fri Dec 25 16:35:25 UTC 2009
Author: petersen
Update of /cvs/extras/rpms/ghc-GLUT/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22979
Modified Files:
ghc-GLUT.spec
Log Message:
- update for ghc-6.12.1: add shared library support
- use new ghc*_requires macros: needs ghc-rpm-macros 0.4.0
- add common_summary and common_description
Index: ghc-GLUT.spec
===================================================================
RCS file: /cvs/extras/rpms/ghc-GLUT/devel/ghc-GLUT.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- ghc-GLUT.spec 14 Sep 2009 02:19:21 -0000 1.5
+++ ghc-GLUT.spec 25 Dec 2009 16:35:25 -0000 1.6
@@ -1,27 +1,31 @@
%global pkg_name GLUT
+%global common_summary Haskell %{pkg_name} library
+
+%global common_description The Haskell %{pkg_name} library.\
+This is a set of bindings to the C %{pkg_name} library.
+
%bcond_without doc
%bcond_without prof
+%bcond_without shared
# ghc does not emit debug information
-%global debug_package %{nil}
+#%%global debug_package %{nil}
Name: ghc-%{pkg_name}
# part of haskell-platform-2009.2.0.2
Version: 2.1.1.2
-Release: 2%{?dist}
-Summary: Haskell %{pkg_name} library
+Release: 3%{?dist}
+Summary: %{common_summary}
-Group: Development/Libraries
+Group: System Environment/Libraries
License: BSD
URL: http://www.haskell.org/haskellwiki/Opengl
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# fedora ghc archs:
ExclusiveArch: %{ix86} x86_64 ppc alpha
+BuildRequires: ghc, ghc-rpm-macros >= 0.4.0
BuildRequires: ghc-OpenGL-devel
-BuildRequires: freeglut-devel
-BuildRequires: ghc, ghc-rpm-macros
%if %{with doc}
BuildRequires: ghc-doc
BuildRequires: ghc-OpenGL-doc
@@ -30,51 +34,53 @@ BuildRequires: ghc-OpenGL-doc
BuildRequires: ghc-prof
BuildRequires: ghc-OpenGL-prof
%endif
+BuildRequires: freeglut-devel
%description
-This package provides the Haskell %{pkg_name} library for ghc.
-This is a set of bindings to the C %{pkg_name} library.
+%{common_description}
+%if %{with shared}
+This package provides the shared library.
+%endif
%package devel
-Summary: Haskell %{pkg_name} library
+Summary: %{common_summary} development files
Group: Development/Libraries
-Requires: ghc = %{ghc_version}
-Requires(post): ghc = %{ghc_version}
-Requires(preun): ghc = %{ghc_version}
+%{?ghc_requires}
Requires: ghc-OpenGL-devel
Requires: freeglut-devel
%description devel
-This package contains the development files for %{name}
-built for ghc-%{ghc_version}.
+%{common_description}
+
+This package contains the development files.
%if %{with doc}
%package doc
-Summary: Documentation for %{name}
+Summary: Documentation for %{common_summary}
Group: Development/Libraries
-Requires: ghc-doc = %{ghc_version}
-Requires(post): ghc-doc = %{ghc_version}
-Requires(postun): ghc-doc = %{ghc_version}
+%{?ghc_doc_requires}
Requires: ghc-OpenGL-doc
%description doc
-This package contains development documentation files for the %{name} library.
+%{common_description}
+
+This package contains development documentation files.
%endif
%if %{with prof}
%package prof
-Summary: Profiling libraries for %{name}
+Summary: Profiling libraries for %{common_summary}
Group: Development/Libraries
-Requires: %{name}-devel = %{version}-%{release}
-Requires: ghc-prof = %{ghc_version}
+%{?ghc_prof_requires}
Requires: ghc-OpenGL-prof
%description prof
-This package contains profiling libraries for %{name}
-built for ghc-%{ghc_version}.
+%{common_description}
+
+This package contains the profiling library.
%endif
@@ -88,13 +94,12 @@ built for ghc-%{ghc_version}.
%if %{with doc}
%cabal haddock
%endif
-%ghc_gen_scripts
%install
-rm -rf $RPM_BUILD_ROOT
%cabal_install
-%ghc_install_scripts
+%cabal_pkg_conf
+
%ghc_gen_filelists %{name}
@@ -103,7 +108,7 @@ rm -rf $RPM_BUILD_ROOT
%post devel
-%ghc_register_pkg
+ghc-pkg recache
%if %{with doc}
@@ -112,10 +117,8 @@ rm -rf $RPM_BUILD_ROOT
%endif
-%preun devel
-if [ "$1" -eq 0 ] ; then
- %ghc_unregister_pkg
-fi
+%postun devel
+ghc-pkg recache
%if %{with doc}
@@ -126,9 +129,18 @@ fi
%endif
+%if %{with shared}
+%files -f %{name}.files
+%defattr(-,root,root,-)
+%{_docdir}/%{name}-%{version}
+%endif
+
+
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
+%if %{without shared}
%{_docdir}/%{name}-%{version}
+%endif
%if %{with doc}
@@ -144,6 +156,11 @@ fi
%changelog
+* Sat Dec 26 2009 Jens Petersen <petersen at redhat.com> - 2.1.1.2-3
+- update for ghc-6.12.1: add shared library support
+- use new ghc*_requires macros: needs ghc-rpm-macros 0.4.0
+- add common_summary and common_description
+
* Mon Aug 31 2009 Jens Petersen <petersen at redhat.com> - 2.1.1.2-2
- move BRs to source (base) package
More information about the fedora-extras-commits
mailing list