Ondřej Súkup 2016-07-18 20:19:28 +00:00 committed by Git OBS Bridge
parent f2544c954d
commit df5bf6417b
3 changed files with 50 additions and 14 deletions

36
1.cabal Normal file
View File

@ -0,0 +1,36 @@
name: old-locale
version: 1.0.0.7
x-revision: 1
-- NOTE: Don't forget to update ./changelog.md
license: BSD3
license-file: LICENSE
maintainer: libraries@haskell.org
bug-reports: https://github.com/haskell/old-locale/issues
synopsis: locale library
category: System
build-type: Simple
Cabal-Version:>=1.10
tested-with: GHC==7.8.3, GHC==7.8.2, GHC==7.8.1, GHC==7.6.3, GHC==7.6.2, GHC==7.6.1, GHC==7.4.2, GHC==7.4.1, GHC==7.2.2, GHC==7.2.1, GHC==7.0.4, GHC==7.0.3, GHC==7.0.2, GHC==7.0.1, GHC==6.12.3
description:
This package provides the ability to adapt to
locale conventions such as date and time formats.
extra-source-files:
changelog.md
source-repository head
type: git
location: https://github.com/haskell/old-locale.git
Library
default-language: Haskell98
other-extensions: CPP
if impl(ghc>=7.2)
-- && base>=4.4.1
other-extensions: Safe
exposed-modules:
System.Locale
build-depends: base >= 4.2 && < 4.10
ghc-options: -Wall

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 10 17:31:20 UTC 2016 - psimons@suse.com
- Update to version 1.0.0.7 revision 1 with cabal2obs.
-------------------------------------------------------------------
Thu May 14 07:34:16 UTC 2015 - mimi.vx@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-old-locale
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,41 +15,39 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global pkg_name old-locale
Name: ghc-old-locale
%global pkg_name old-locale
Name: ghc-%{pkg_name}
Version: 1.0.0.7
Release: 0
Summary: Locale library
Group: System/Libraries
License: BSD-3-Clause
Group: System/Libraries
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides the ability to adapt to locale conventions such as date
and time formats.
%package devel
Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
@ -63,18 +61,15 @@ This package provides the Haskell %{pkg_name} library development files.
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
%doc changelog.md
%changelog