From faacc012301b2c1b33bf52056f0eb13f61402700915a759370a04e1d4c1b0f7d Mon Sep 17 00:00:00 2001 From: Herbert Graeber Date: Wed, 20 May 2009 20:49:07 +0000 Subject: [PATCH] Copy from home:hgraeber:playground/ghc-split via accept of submit request 10686 Request was accepted with message: OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-split?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + ghc-split.spec | 127 ++++++++++++++++++++++++++++++++++++++++++++ rpmlintrc | 6 +++ split-0.1.1.tar.bz2 | 3 ++ 5 files changed, 160 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-split.spec create mode 100644 rpmlintrc create mode 100644 split-0.1.1.tar.bz2 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-split.spec b/ghc-split.spec new file mode 100644 index 0000000..c541414 --- /dev/null +++ b/ghc-split.spec @@ -0,0 +1,127 @@ +%define pkg_name split +%define ghc_version %(ghc --numeric-version) + +%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version} +%define pkg_docdir %{_datadir}/doc/ghc/libraries/%{pkg_name}-%{version} + +# ghc does not emit debug information +%define debug_package %{nil} + +Name: ghc-%{pkg_name} +Version: 0.1.1 +Release: 0 +Summary: Split: Combinator library for splitting lists +Group: Development/Libraries +License: BSD3 +URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: ghc, ghc-doc, ghc-prof +BuildRequires: licenses + +%description +Combinator library and utility functions for splitting lists. + +This package provides the Haskell %{pkg_name} library for ghc. + + +%package devel +Summary: Haskell %{pkg_name} library +Group: Development/Libraries +Requires: ghc = %{ghc_version} +Requires(post): ghc = %{ghc_version} +Requires(preun): ghc = %{ghc_version} +Requires: licenses + +%description devel +Combinator library and utility functions for splitting lists. + +This package contains the development files for %{name} +built for ghc-%{ghc_version}. + + +%package doc +Summary: Documentation for %{name} +Group: Development/Libraries +Requires: ghc-doc = %{ghc_version} +Requires(post): ghc-doc = %{ghc_version} +Requires(postun): ghc-doc = %{ghc_version} + +%description doc +Combinator library and utility functions for splitting lists. + +This package contains development documentation files for the %{name} library. + + +%package prof +Summary: Profiling libraries for %{name} +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} +Requires: ghc-prof = %{ghc_version} + +%description prof +Combinator library and utility functions for splitting lists. + +This package contains profiling libraries for %{name}. + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +%cabal_configure --ghc %{!?without_prof:-p} +%cabal build +%cabal haddock +%ghc_gen_scripts + + +%install +%cabal_install +%ghc_install_scripts +%ghc_gen_filelists %{name} +for FILE in LICENSE ; do + MD5SUM=$(md5sum $FILE | sed 's/ .*//') + if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then + ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE + fi +done + + +%post devel +%ghc_register_pkg + + +%post doc +%ghc_reindex_haddock + + +%preun devel +if [ "$1" -eq 0 ] ; then + %ghc_unregister_pkg +fi + + +%postun doc +if [ "$1" -eq 0 ] ; then + %ghc_reindex_haddock +fi + + +%files devel -f %{name}-devel.files +%defattr(-,root,root,-) +%{_docdir}/%{name}-%{version} + + +%files doc +%defattr(-,root,root,-) +%{pkg_docdir} + + +%files prof -f %{name}-prof.files +%defattr(-,root,root,-) + + +%changelog +* Wed Apr 29 2009 Herbert Graeber - 0.1.1 +- Initial Package diff --git a/rpmlintrc b/rpmlintrc new file mode 100644 index 0000000..0ff159b --- /dev/null +++ b/rpmlintrc @@ -0,0 +1,6 @@ +addFilter("devel-dependency gmp-devel") +addFilter("devel-file-in-non-devel-package") +addFilter("static-library-without-debuginfo") +addFilter("useless-explicit-requires ghc") +addFilter("useless-explicit-requires ghc-doc") +addFilter("devel-dependency ghc-split-devel") diff --git a/split-0.1.1.tar.bz2 b/split-0.1.1.tar.bz2 new file mode 100644 index 0000000..6bfb8ba --- /dev/null +++ b/split-0.1.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1bb574f57e5b4cc71582d99ca2c8dd7be2dec1d89b5dc32c73b7fd4a607941c +size 10764