Accepting request 264217 from home:mlatimer:td
Add package to satisfy build requirement for virt-top (FATE#318226) OBS-URL: https://build.opensuse.org/request/show/264217 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-fileutils?expand=0&rev=1
This commit is contained in:
commit
afd024fea3
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
ocaml-fileutils-0.4.5.tar.gz
Normal file
3
ocaml-fileutils-0.4.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2ab3d2e9d8aa047871f6053e52007a8a25132653d5b1c29f8451ba2c1fab9866
|
||||
size 83511
|
5
ocaml-fileutils.changes
Normal file
5
ocaml-fileutils.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 5 18:02:46 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
- Initial commit using upstream version 4.5
|
||||
|
101
ocaml-fileutils.spec
Normal file
101
ocaml-fileutils.spec
Normal file
@ -0,0 +1,101 @@
|
||||
#
|
||||
# spec file for package ocaml-fileutils
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
|
||||
Name: ocaml-fileutils
|
||||
Version: 0.4.5
|
||||
Release: 0
|
||||
Summary: OCaml library for common file and filename operations
|
||||
License: LGPL-2.0 with exceptions
|
||||
Group: Development/Libraries/Other
|
||||
Url: https://forge.ocamlcore.org/projects/ocaml-fileutils/
|
||||
Source0: https://forge.ocamlcore.org/frs/download.php/1194/ocaml-fileutils-%{version}.tar.gz
|
||||
BuildRequires: ocaml >= 4.00.1
|
||||
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
%description
|
||||
This library is intended to provide a basic interface to the most
|
||||
common file and filename operations. It provides several different
|
||||
filename functions: reduce, make_absolute, make_relative... It also
|
||||
enables you to manipulate real files: cp, mv, rm, touch...
|
||||
|
||||
It is separated into two modules: SysUtil and SysPath. The first one
|
||||
manipulates real files, the second one is made for manipulating
|
||||
abstract filenames.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
ocaml setup.ml -configure --prefix %{_prefix} --destdir %{buildroot}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export DESTDIR=%{buildroot}
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
|
||||
# Set htmldir to current directory, then copy the docs (in api/)
|
||||
# as a %doc rule.
|
||||
make htmldir=. install
|
||||
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} test
|
||||
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.txt
|
||||
%{_libdir}/ocaml/fileutils
|
||||
%if %{opt}
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.a
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.cmx
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.cmxa
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.ml
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.mli
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.txt AUTHORS.txt CHANGELOG.txt README.txt TODO.txt
|
||||
%if %{opt}
|
||||
%{_libdir}/ocaml/fileutils/*.a
|
||||
%{_libdir}/ocaml/fileutils/*.cmx
|
||||
%{_libdir}/ocaml/fileutils/*.cmxa
|
||||
%endif
|
||||
%{_libdir}/ocaml/fileutils/*.ml
|
||||
%{_libdir}/ocaml/fileutils/*.mli
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user