commit b5ad2de5661b7d13bb7a85a68da42a47b8ab3103a6d8720e36fe028d8b4ab391 Author: Peter Trommler Date: Wed Feb 4 11:05:06 2015 +0000 Accepting request 283892 from home:mimi_vx:haskell haddock-library package , one of new deps for Pandoc OBS-URL: https://build.opensuse.org/request/show/283892 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-haddock-library?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-haddock-library.changes b/ghc-haddock-library.changes new file mode 100644 index 0000000..ff53f8d --- /dev/null +++ b/ghc-haddock-library.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Feb 3 13:09:32 UTC 2015 - mimi.vx@gmail.com + +- initial commit of haddoc-library package + diff --git a/ghc-haddock-library.spec b/ghc-haddock-library.spec new file mode 100644 index 0000000..dcc13ad --- /dev/null +++ b/ghc-haddock-library.spec @@ -0,0 +1,101 @@ +# +# spec file for package ghc-haddock-library +# +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%global pkg_name haddock-library + +%bcond_with tests + +# no useful debuginfo for Haskell packages without C sources +%global debug_package %{nil} + +Name: ghc-haddock-library +Version: 1.1.1 +Release: 1 +Summary: Library exposing some functionality of Haddock +Group: Development/Languages/Haskell +License: BSD-3-Clause +Url: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-attoparsec-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-base-compat-devel +BuildRequires: ghc-hspec-devel +%endif +# End cabal-rpm deps + +%description +Haddock is a documentation-generation tool for Haskell libraries. +These modules expose some functionality of it without pulling in the GHC +dependency. Please note that the API is likely to change so specify upper +bounds in your project if you can't release often. For interacting with Haddock +itself, see the ‘haddock’ package. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development +files. + + +%prep +%setup -q -n %{pkg_name}-%{version} + +%build +# for "dist/doc/html/haddock-library/haddock-prolog7045.txt: invalid argument" --from fedora +LANG=en_US.utf8 +%ghc_lib_build + + +%install +%ghc_lib_install + + +%check +%if %{with tests} +%cabal test +%endif + + +%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,-) + + +%changelog diff --git a/haddock-library-1.1.1.tar.gz b/haddock-library-1.1.1.tar.gz new file mode 100644 index 0000000..91331d8 --- /dev/null +++ b/haddock-library-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:350c2dd4f62fc85debe53ea51ce2a7e8ec7c8abb1b5acc664c5adf80ebaa566a +size 35641