Copy from home:hgraeber:playground/ghc-digest via accept of submit request 16348
Request was accepted with message: OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-digest?expand=0&rev=1
This commit is contained in:
commit
f33975633c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
digest-0.0.0.6.tar.bz2
Normal file
3
digest-0.0.0.6.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5a0613309463324942d10275e5cfc544dd87cc6d869276b9fe979db48493b396
|
||||||
|
size 13091
|
147
ghc-digest.spec
Normal file
147
ghc-digest.spec
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
%define pkg_name digest
|
||||||
|
%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.0.0.6
|
||||||
|
Release: 0
|
||||||
|
Summary: Various cryptographic hashes for bytestrings; CRC32 and Adler32 for now
|
||||||
|
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: zlib-devel
|
||||||
|
BuildRequires: licenses
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package provides efficient cryptographic hash implementations for strict
|
||||||
|
and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are
|
||||||
|
implemented as FFI bindings to efficient code from zlib.
|
||||||
|
|
||||||
|
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: ghc-bytestring-devel
|
||||||
|
Requires: zlib-devel
|
||||||
|
Requires: licenses
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package provides efficient cryptographic hash implementations for strict
|
||||||
|
and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are
|
||||||
|
implemented as FFI bindings to efficient code from zlib.
|
||||||
|
|
||||||
|
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}
|
||||||
|
Requires: ghc-bytestring-doc
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package provides efficient cryptographic hash implementations for strict
|
||||||
|
and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are
|
||||||
|
implemented as FFI bindings to efficient code from zlib.
|
||||||
|
|
||||||
|
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}
|
||||||
|
Requires: ghc-bytestring-prof
|
||||||
|
Requires: zlib-devel
|
||||||
|
|
||||||
|
%description prof
|
||||||
|
This package provides efficient cryptographic hash implementations for strict
|
||||||
|
and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are
|
||||||
|
implemented as FFI bindings to efficient code from zlib.
|
||||||
|
|
||||||
|
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
|
||||||
|
* Sun Aug 2 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.0.0.6
|
||||||
|
- Require zlib-devel
|
||||||
|
|
||||||
|
* Sat Aug 1 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.0.0.6
|
||||||
|
- Require ghc-bytestring instead of ghc-binary
|
||||||
|
|
||||||
|
* Fri Jul 31 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.0.0.6
|
||||||
|
- Initial Package
|
6
rpmlintrc
Normal file
6
rpmlintrc
Normal file
@ -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-digest-devel")
|
Loading…
Reference in New Issue
Block a user