initial import
This commit is contained in:
parent
f41ba3c30d
commit
3256557e6d
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/ocaml-ppx-derivers-1.2.1.tar.gz
|
81
ocaml-ppx-derivers.spec
Normal file
81
ocaml-ppx-derivers.spec
Normal file
@ -0,0 +1,81 @@
|
||||
Name: ocaml-ppx-derivers
|
||||
Version: 1.2.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Deriving plugin registry
|
||||
|
||||
License: BSD
|
||||
URL: https://github.com/ocaml-ppx/ppx_derivers
|
||||
Source0: https://github.com/ocaml-ppx/ppx_derivers/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-findlib
|
||||
BuildRequires: ocaml-dune
|
||||
BuildRequires: opam-installer
|
||||
|
||||
%description
|
||||
Ppx_derivers is a tiny package whose sole purpose is to allow
|
||||
ppx_deriving and ppx_type_conv to inter-operate gracefully when
|
||||
linked as part of the same ocaml-migrate-parsetree driver.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n ppx_derivers-%{version}
|
||||
|
||||
|
||||
%build
|
||||
dune build @install
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_libdir}/ocaml
|
||||
dune install --destdir=%{buildroot} --verbose
|
||||
|
||||
# These files will be installed using the doc and license directives
|
||||
rm -r %{buildroot}%{_prefix}/doc
|
||||
|
||||
# Makes *.cmxs executable such that they will be stripped.
|
||||
find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;
|
||||
|
||||
%check
|
||||
dune runtest
|
||||
|
||||
|
||||
%files
|
||||
%doc README.md CHANGES.md
|
||||
%license LICENSE.md
|
||||
%{_libdir}/ocaml/*
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
%exclude %{_libdir}/ocaml/*/*.a
|
||||
%exclude %{_libdir}/ocaml/*/*.cmxa
|
||||
%exclude %{_libdir}/ocaml/*/*.cmx
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/*/*.mli
|
||||
%exclude %{_libdir}/ocaml/*/*.ml
|
||||
|
||||
|
||||
%files devel
|
||||
%doc README.md CHANGES.md
|
||||
%license LICENSE.md
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/*/*.a
|
||||
%{_libdir}/ocaml/*/*.cmxa
|
||||
%{_libdir}/ocaml/*/*.cmx
|
||||
%endif
|
||||
%{_libdir}/ocaml/*/*.mli
|
||||
%{_libdir}/ocaml/*/*.ml
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu May 16 2019 Andy Li <andy@onthewings.net> - 1.2.1-1
|
||||
- Initial RPM release.
|
||||
|
Loading…
Reference in New Issue
Block a user