Ondřej Súkup 2016-07-18 20:19:38 +00:00 committed by Git OBS Bridge
parent 551fbf634e
commit 22715fbfdf
3 changed files with 75 additions and 15 deletions

60
1.cabal Normal file
View File

@ -0,0 +1,60 @@
name: old-time
version: 1.1.0.3
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-time/issues
synopsis: Time library
category: System
build-type: Configure
cabal-Version: >=1.10
description:
This package provides the old time library.
.
For new projects, the newer
<http://hackage.haskell.org/package/time time library>
is recommended.
extra-source-files:
aclocal.m4
changelog.md
config.guess
config.sub
configure
configure.ac
include/HsTimeConfig.h.in
install-sh
old-time.buildinfo
extra-tmp-files:
autom4te.cache
config.log
config.status
include/HsTimeConfig.h
source-repository head
type: git
location: https://github.com/haskell/old-time.git
Library
default-language: Haskell2010
other-extensions: Trustworthy
exposed-modules:
System.Time
c-sources:
cbits/timeUtils.c
include-dirs: include
includes: HsTime.h
install-includes:
HsTime.h
build-depends:
base >= 4.7 && < 4.10,
old-locale == 1.0.*
ghc-options: -Wall

View File

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

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghc-old-time # spec file for package ghc-old-time
# #
# 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,23 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%global pkg_name old-time
Name: ghc-old-time %global pkg_name old-time
Name: ghc-%{pkg_name}
Version: 1.1.0.3 Version: 1.1.0.3
Release: 0 Release: 0
Summary: Time library Summary: Time library
Group: System/Libraries
License: BSD-3-Clause License: BSD-3-Clause
Group: System/Libraries
Url: https://hackage.haskell.org/package/%{pkg_name} Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz 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-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps: # Begin cabal-rpm deps:
BuildRequires: ghc-old-locale-devel BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# End cabal-rpm deps # End cabal-rpm deps
%description %description
@ -40,21 +39,20 @@ This package provides the old time library.
For new projects, the newer <http://hackage.haskell.org/package/time time For new projects, the newer <http://hackage.haskell.org/package/time time
library> is recommended. library> is recommended.
%package devel %package devel
Summary: Haskell %{pkg_name} library development files Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version} Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name} = %{version}-%{release}
%description devel %description devel
This package provides the Haskell %{pkg_name} library development files. This package provides the Haskell %{pkg_name} library development files.
%prep %prep
%setup -q -n %{pkg_name}-%{version} %setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build %build
@ -68,18 +66,15 @@ This package provides the Haskell %{pkg_name} library development files.
%post devel %post devel
%ghc_pkg_recache %ghc_pkg_recache
%postun devel %postun devel
%ghc_pkg_recache %ghc_pkg_recache
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENSE %doc LICENSE
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc changelog.md
%changelog %changelog