Initial Commit
This commit is contained in:
102
SPECS/ocaml-ppx-bench.spec
Normal file
102
SPECS/ocaml-ppx-bench.spec
Normal file
@@ -0,0 +1,102 @@
|
||||
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%global debug_package %{nil}
|
||||
%global _use_internal_dependency_generator 0
|
||||
%global __find_requires /usr/lib/rpm/ocamldeps.sh -R
|
||||
%global __find_provides /usr/lib/rpm/ocamldeps.sh -P
|
||||
%define libname ppx_bench
|
||||
|
||||
Name: ocaml-ppx-bench
|
||||
Version: 0.15.0
|
||||
Release: 1%{?dist}
|
||||
Summary: TBD
|
||||
|
||||
License: TBD
|
||||
URL: TBD
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: ocaml >= 3.10.0
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: ocaml-ocamldoc ocaml-dune
|
||||
BuildRequires: chrpath
|
||||
|
||||
%description
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{libname}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
# You may need a %%configure step here (or ./configure if it doesn't work).
|
||||
dune build --release
|
||||
#make byte
|
||||
#%if %opt
|
||||
#make opt
|
||||
#%endif
|
||||
|
||||
|
||||
%install
|
||||
# These rules work if the library uses 'ocamlfind install' to install itself.
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
dune install --release
|
||||
#make install
|
||||
|
||||
#strip $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||
#chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE.md
|
||||
%doc /usr/doc/%{libname}/LICENSE.md
|
||||
%doc /usr/doc/%{libname}/README.md
|
||||
%doc /usr/doc/%{libname}/CHANGES.md
|
||||
%dir %{_libdir}/ocaml/%{libname}/
|
||||
%if %opt
|
||||
%exclude %{_libdir}/ocaml/*/*.a
|
||||
%exclude %{_libdir}/ocaml/*/*.cmxa
|
||||
%exclude %{_libdir}/ocaml/*/*.cmx
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/*/*.mli
|
||||
#%{_libdir}/ocaml/stublibs/*.so
|
||||
#%{_libdir}/ocaml/stublibs/*.so.owner
|
||||
|
||||
|
||||
%files devel
|
||||
%license LICENSE.md
|
||||
%doc README.md
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/*/*.a
|
||||
%{_libdir}/ocaml/*/*.cmxa
|
||||
%{_libdir}/ocaml/*/*.cmx
|
||||
%endif
|
||||
%{_libdir}/ocaml/*/*.mli
|
||||
|
||||
%{_libdir}/ocaml/*/*.cma
|
||||
%{_libdir}/ocaml/*/*.ml
|
||||
%{_libdir}/ocaml/*/*.cmi
|
||||
%{_libdir}/ocaml/*/*.cmt
|
||||
%{_libdir}/ocaml/*/*.cmti
|
||||
%{_libdir}/ocaml/*/*.cmxs
|
||||
|
||||
%{_libdir}/ocaml/%{libname}/ppx.exe
|
||||
%{_libdir}/ocaml/%{libname}/runtime-lib/*
|
||||
|
||||
%{_libdir}/ocaml/*/META
|
||||
%{_libdir}/ocaml/*/opam
|
||||
%{_libdir}/ocaml/*/dune-package
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Mar 21 2023 Victoria Fierce <tdfischer@hackerbots.net>
|
||||
-
|
||||
Reference in New Issue
Block a user