Accepting request 264216 from home:mlatimer:td
Add package to satisfy build requirement for virt-top (FATE#318226) OBS-URL: https://build.opensuse.org/request/show/264216 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-curses?expand=0&rev=1
This commit is contained in:
commit
979d46f339
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-curses-1.0.3.tar.gz
Normal file
3
ocaml-curses-1.0.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:990a55ff99223edaa04387802907b00c475b46dd921dc5f8c5ede15ac673656f
|
||||
size 54053
|
5
ocaml-curses.changes
Normal file
5
ocaml-curses.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 5 17:52:56 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
- Initial commit using upstream version 1.0.3
|
||||
|
100
ocaml-curses.spec
Normal file
100
ocaml-curses.spec
Normal file
@ -0,0 +1,100 @@
|
||||
#
|
||||
# spec file for package ocaml-curses
|
||||
#
|
||||
# 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-curses
|
||||
Version: 1.0.3
|
||||
Release: 0
|
||||
Summary: OCaml bindings for ncurses
|
||||
License: LGPL-2.0+
|
||||
Group: Development/Libraries/Other
|
||||
Url: http://savannah.nongnu.org/projects/ocaml-tmk/
|
||||
Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz
|
||||
# Doesn't include a configure script, so we have to make one.
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gawk
|
||||
BuildRequires: libtool
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: ocaml >= 4.00.1
|
||||
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
%description
|
||||
OCaml bindings for ncurses.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# On aarch64, it is reported that ncurses-devel is not pulled in
|
||||
# implicitly by ocaml (as is the case on x86-64 for some reason). In
|
||||
# any case, it is likely that people installing ocaml-curses-devel
|
||||
# will desire ncurses-devel, hence:
|
||||
Requires: ncurses-devel
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
autoreconf
|
||||
|
||||
|
||||
%build
|
||||
%configure --enable-widec
|
||||
make %{?_smp_mflags} all opt
|
||||
|
||||
|
||||
%install
|
||||
|
||||
export DESTDIR=%{buildroot}
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
|
||||
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%{_libdir}/ocaml/curses
|
||||
%if %{opt}
|
||||
%exclude %{_libdir}/ocaml/curses/*.a
|
||||
%exclude %{_libdir}/ocaml/curses/*.cmxa
|
||||
%exclude %{_libdir}/ocaml/curses/*.cmx
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/curses/*.mli
|
||||
%{_libdir}/ocaml/stublibs/*.so
|
||||
%{_libdir}/ocaml/stublibs/*.so.owner
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%if %{opt}
|
||||
%{_libdir}/ocaml/curses/*.a
|
||||
%{_libdir}/ocaml/curses/*.cmxa
|
||||
%{_libdir}/ocaml/curses/*.cmx
|
||||
%endif
|
||||
%{_libdir}/ocaml/curses/*.mli
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user