- Timestamp:
- May 26, 2014, 3:16:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc20-dev/server/fedora/specs/ghc-unix-handle.spec
r2246 r2525 1 # cabal2spec-0.252 1 # https://fedoraproject.org/wiki/Packaging:Haskell 3 # https://fedoraproject.org/wiki/PackagingDrafts/Haskell4 2 5 3 %global pkg_name unix-handle 6 7 %global common_summary Haskell %{pkg_name} library8 9 %global common_description A %{pkg_name} library for Haskell.10 4 11 5 Name: ghc-%{pkg_name} 12 6 Version: 0.0.0 13 7 Release: 0.%{scriptsversion}%{?dist} 14 Summary: %{common_summary}8 Summary: POSIX operations on Handles 15 9 16 Group: System Environment/Libraries17 10 License: BSD 18 # BEGIN cabal2spec19 11 URL: http://hackage.haskell.org/package/%{pkg_name} 20 12 Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz 21 ExclusiveArch: %{ghc_arches} 13 22 14 BuildRequires: ghc-Cabal-devel 23 15 BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} 24 # END cabal2spec 16 # Begin cabal-rpm deps: 17 BuildRequires: ghc-unix-devel 18 # End cabal-rpm deps 25 19 26 20 %description 27 %{common_description} 21 This package provides versions of functions from "System.Posix.Files" that 22 operate on 'System.IO.Handle' instead of 'System.IO.FilePath' or 23 'System.Posix.Fd'. This is useful to prevent race conditions that may arise 24 from looking up the same path twice. 25 26 27 %package devel 28 Summary: Haskell %{pkg_name} library development files 29 Provides: %{name}-static = %{version}-%{release} 30 Requires: ghc-compiler = %{ghc_version} 31 Requires(post): ghc-compiler = %{ghc_version} 32 Requires(postun): ghc-compiler = %{ghc_version} 33 Requires: %{name}%{?_isa} = %{version}-%{release} 34 35 %description devel 36 This package provides the Haskell %{pkg_name} library development files. 28 37 29 38 … … 40 49 41 50 42 # devel subpackage 43 %ghc_devel_package 44 45 %ghc_devel_description 51 %post devel 52 %ghc_pkg_recache 46 53 47 54 48 %ghc_devel_post_postun 55 %postun devel 56 %ghc_pkg_recache 49 57 50 58 51 %ghc_files LICENSE 59 %files -f %{name}.files 60 %doc LICENSE 61 62 63 %files devel -f %{name}-devel.files 52 64 53 65 54 66 %changelog 67 * Mon May 26 2014 Alex Chernyakhovsky <achernya@mit.edu> - 0.0.0-0 68 - Updated packaging for F20 with cabal-rpm 69 55 70 * Fri May 25 2012 Anders Kaseorg <andersk@mit.edu> - 0.0.0-0 56 71 - regenerated packaging with cabal2spec-0.25.5
Note: See TracChangeset
for help on using the changeset viewer.