New package, ocamlbuild used to be part of ocaml.
This commit is contained in:
parent
fb723f7e87
commit
b2f6bb7f5e
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/ocaml-ocamlbuild-0.9.3.tar.gz
|
110
ocaml-ocamlbuild.spec
Normal file
110
ocaml-ocamlbuild.spec
Normal file
@ -0,0 +1,110 @@
|
||||
%ifnarch %{ocaml_native_compiler}
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
|
||||
Name: ocaml-ocamlbuild
|
||||
Version: 0.9.3
|
||||
Release: 5%{?dist}
|
||||
|
||||
Summary: Build tool for OCaml libraries and programs
|
||||
|
||||
License: LGPLv2+ with exceptions
|
||||
|
||||
URL: https://github.com/ocaml/ocamlbuild
|
||||
Source0: https://github.com/ocaml/ocamlbuild/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: ocaml >= 4.04.0
|
||||
|
||||
|
||||
%description
|
||||
OCamlbuild is a build tool for building OCaml libraries and programs.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
|
||||
%description devel
|
||||
This package contains development files for %{name}.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
|
||||
%description doc
|
||||
This package contains the manual for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n ocamlbuild-%{version}
|
||||
|
||||
|
||||
%build
|
||||
make configure \
|
||||
OCAMLBUILD_PREFIX=%{_prefix} \
|
||||
OCAMLBUILD_BINDIR=%{_bindir} \
|
||||
OCAMLBUILD_LIBDIR=%{_libdir}/ocaml \
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
OCAML_NATIVE=true
|
||||
%else
|
||||
OCAML_NATIVE=false
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
make install \
|
||||
DESTDIR=$RPM_BUILD_ROOT \
|
||||
CHECK_IF_PREINSTALLED=false
|
||||
|
||||
# Install the man page, which for some reason is not copied
|
||||
# in by the make install rule above.
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
install -p -m 0644 man/ocamlbuild.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
|
||||
# Remove the META file. It will be replaced by ocaml-ocamlfind (findlib).
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild/META
|
||||
|
||||
|
||||
%files
|
||||
%doc Changes Readme.md VERSION
|
||||
%license LICENSE
|
||||
%{_bindir}/ocamlbuild
|
||||
%{_bindir}/ocamlbuild.byte
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
%{_bindir}/ocamlbuild.native
|
||||
%endif
|
||||
%{_mandir}/man1/ocamlbuild.1*
|
||||
%{_libdir}/ocaml/ocamlbuild
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
%exclude %{_libdir}/ocaml/ocamlbuild/*.a
|
||||
%exclude %{_libdir}/ocaml/ocamlbuild/*.o
|
||||
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmx
|
||||
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmxa
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/ocamlbuild/*.mli
|
||||
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/ocamlbuild/*.a
|
||||
%{_libdir}/ocaml/ocamlbuild/*.o
|
||||
%{_libdir}/ocaml/ocamlbuild/*.cmx
|
||||
%{_libdir}/ocaml/ocamlbuild/*.cmxa
|
||||
%endif
|
||||
%{_libdir}/ocaml/ocamlbuild/*.mli
|
||||
|
||||
|
||||
%files doc
|
||||
%license LICENSE
|
||||
%doc manual/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Nov 04 2016 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-5
|
||||
- New package, ocamlbuild used to be part of ocaml.
|
Loading…
Reference in New Issue
Block a user