Accepting request 252257 from home:sleep_walker
please, review the package whether that meet your standards OBS-URL: https://build.opensuse.org/request/show/252257 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-ounit?expand=0&rev=1
This commit is contained in:
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
|
5
ocaml-ounit.changes
Normal file
5
ocaml-ounit.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 24 08:46:35 UTC 2014 - sleep_walker@suse.cz
|
||||
|
||||
- let there be ocaml-ounit
|
||||
|
90
ocaml-ounit.spec
Normal file
90
ocaml-ounit.spec
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package ocaml-ounit
|
||||
#
|
||||
# Copyright (c) 2014 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/
|
||||
#
|
||||
|
||||
%define distname ounit
|
||||
|
||||
Name: ocaml-%{distname}
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: Ocaml OUnit test framework
|
||||
License: GPL-3.0
|
||||
Group: Development/Libraries/Other
|
||||
Url: http://ounit.forge.ocamlcore.org/
|
||||
Source0: %{distname}-%{version}.tar.gz
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-findlib
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
OUnit is a unit test framework for OCaml. It allows one to easily
|
||||
create unit-tests for OCaml code. It is based on HUnit, a unit testing
|
||||
framework for Haskell. It is similar to JUnit, and other xUnit testing
|
||||
frameworks.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
Development files needed for application based on %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{distname}-%{version}
|
||||
ocaml setup.ml -configure \
|
||||
--bindir '%{_bindir}' \
|
||||
--mandir '%{_mandir}' \
|
||||
--destdir '%{buildroot}' \
|
||||
--datarootdir '%{_datadir}' \
|
||||
--libdir '%{_libdir}' \
|
||||
--libexecdir '%{_libexecdir}' \
|
||||
--localstatedir '%{_localstatedir}' \
|
||||
--sbindir '%{_sbindir}' \
|
||||
--prefix '%{_prefix}' \
|
||||
--sysconfdir '%{_sysconfdir}' \
|
||||
--exec-prefix '%{_exec_prefix}' \
|
||||
--sharedstatedir '%{_sharedstatedir}'
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
|
||||
test -d "$OCAMLFIND_DESTDIR" || mkdir -p "$OCAMLFIND_DESTDIR"
|
||||
make install %{?_smp_mflags}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc
|
||||
%{_libdir}/ocaml/oUnit
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.a
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.ml
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.mli
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.cmx
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.cmxa
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/ocaml/oUnit/*.a
|
||||
%{_libdir}/ocaml/oUnit/*.ml
|
||||
%{_libdir}/ocaml/oUnit/*.mli
|
||||
%{_libdir}/ocaml/oUnit/*.cmx
|
||||
%{_libdir}/ocaml/oUnit/*.cmxa
|
||||
|
||||
%changelog
|
3
ounit-2.0.0.tar.gz
Normal file
3
ounit-2.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d4a05b20c39c60d7486fb7a90eb4c5c08e8c9862360b5938b97a09e9bd21d85
|
||||
size 103504
|
Reference in New Issue
Block a user