- Timestamp:
- Sep 9, 2010, 1:38:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc13-dev/server/fedora/specs/ghc-unix-handle.spec
r1590 r1632 1 1 %global pkg_name unix-handle 2 2 3 %bcond_without doc 4 %bcond_without prof 3 %global common_summary Haskell %{pkg_name} library 5 4 6 # ghc does not emit debug information 5 %global common_description A %{pkg_name} library for Haskell. 6 7 # add any Haskell library dependencies here: 8 #%%global ghc_pkg_deps ghc-@DEP1@-devel, ghc-@DEP2@-devel 9 10 # add any foreign library dependencies here: 11 #%%global ghc_pkg_c_deps @CDEP1@-devel 12 13 %bcond_without shared 14 15 # debuginfo is not useful for ghc 7 16 %global debug_package %{nil} 8 17 … … 10 19 Version: 0.0.0 11 20 Release: 0.%{scriptsversion}%{?dist} 12 Summary: Haskell %{pkg_name} library21 Summary: %{common_summary} 13 22 14 Group: Development/Libraries23 Group: System Environment/Libraries 15 24 License: BSD 16 25 URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name} … … 19 28 # fedora ghc archs: 20 29 ExclusiveArch: %{ix86} x86_64 ppc alpha 21 BuildRequires: ghc, ghc-rpm-macros 22 %if %{with doc} 23 BuildRequires: ghc-doc 24 %endif 25 %if %{with prof} 26 BuildRequires: ghc-prof 27 %endif 30 BuildRequires: ghc, ghc-doc, ghc-prof 31 BuildRequires: ghc-rpm-macros >= 0.7.0 32 %{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} 33 %{?ghc_pkg_c_deps:BuildRequires: %{ghc_pkg_c_deps}} 28 34 29 35 %description 30 This package provides the Haskell %{pkg_name} library for ghc. 31 32 33 %package devel 34 Summary: Haskell %{pkg_name} library 35 Group: Development/Libraries 36 Requires: ghc = %{ghc_version} 37 Requires(post): ghc = %{ghc_version} 38 Requires(preun): ghc = %{ghc_version} 39 40 %description devel 41 This package contains the development files for %{name} 42 built for ghc-%{ghc_version}. 43 44 45 %if %{with doc} 46 %package doc 47 Summary: Documentation for %{name} 48 Group: Development/Libraries 49 Requires: ghc-doc = %{ghc_version} 50 Requires(post): ghc-doc = %{ghc_version} 51 Requires(postun): ghc-doc = %{ghc_version} 52 53 %description doc 54 This package contains development documentation files for 55 the %{name} library. 36 %{common_description} 37 %if %{with shared} 38 This package provides the shared library. 56 39 %endif 57 40 58 41 59 %if %{with prof} 60 %package prof 61 Summary: Profiling libraries for %{name} 62 Group: Development/Libraries 63 Requires: %{name}-devel = %{version}-%{release} 64 Requires: ghc-prof = %{ghc_version} 65 66 %description prof 67 This package contains profiling libraries for %{name} 68 built for ghc-%{ghc_version}. 69 %endif 42 %{?ghc_lib_package} 70 43 71 44 … … 75 48 76 49 %build 77 %cabal_configure --ghc %{?with_prof:-p} 78 %cabal build 79 %if %{with doc} 80 %cabal haddock 81 %endif 82 %ghc_gen_scripts 50 %ghc_lib_build 83 51 84 52 85 53 %install 86 54 rm -rf $RPM_BUILD_ROOT 87 %cabal_install 88 %ghc_install_scripts 89 %ghc_gen_filelists %{name} 55 %ghc_lib_install 90 56 91 57 … … 94 60 95 61 96 %post devel97 %ghc_register_pkg98 99 100 %if %{with doc}101 %post doc102 %ghc_reindex_haddock103 %endif104 105 106 %preun devel107 if [ "$1" -eq 0 ] ; then108 %ghc_unregister_pkg109 fi110 111 112 %if %{with doc}113 %postun doc114 if [ "$1" -eq 0 ] ; then115 %ghc_reindex_haddock116 fi117 %endif118 119 120 %files devel -f %{name}-devel.files121 %defattr(-,root,root,-)122 %{_docdir}/%{name}-%{version}123 124 125 %if %{with doc}126 %files doc -f %{name}-doc.files127 %defattr(-,root,root,-)128 %endif129 130 131 %if %{with prof}132 %files prof -f %{name}-prof.files133 %defattr(-,root,root,-)134 %endif135 136 137 62 %changelog 138 * Mon Mar 152010 Anders Kaseorg <andersk@mit.edu> - 0.0.0-0139 - initial packaging for Fedora automatically generated by cabal2spec 63 * Thu Sep 9 2010 Anders Kaseorg <andersk@mit.edu> - 0.0.0-0 64 - initial packaging for Fedora automatically generated by cabal2spec-0.22.1
Note: See TracChangeset
for help on using the changeset viewer.