initial import (#1529202)

This commit is contained in:
Andy Li 2018-01-04 09:46:06 +08:00
parent 04d301c98d
commit 9b4488f2e9
4 changed files with 85 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/ocaml-migrate-parsetree-1.0.7.tar.gz

View File

@ -1,3 +0,0 @@
# ocaml-migrate-parsetree
The ocaml-migrate-parsetree package

View File

@ -0,0 +1,83 @@
Name: ocaml-migrate-parsetree
Version: 1.0.7
Release: 1%{?dist}
Summary: Convert OCaml parsetrees between different major versions
License: LGPLv2+ with exceptions
URL: https://github.com/ocaml-ppx/ocaml-migrate-parsetree
Source0: https://github.com/ocaml-ppx/ocaml-migrate-parsetree/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: ocaml
BuildRequires: jbuilder
BuildRequires: ocaml-result-devel
BuildRequires: ocaml-ocamlbuild
BuildRequires: ocaml-findlib
BuildRequires: opam-installer
%description
This library converts between parsetrees of different OCaml versions.
For each version, there is a snapshot of the parsetree and conversion
functions to the next and/or previous version.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
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 %{name}-%{version}
%build
%make_build
%install
mkdir -p %{buildroot}%{_libdir}/ocaml
%make_install INSTALL_ARGS='--destdir=%{buildroot} --libdir=%{buildroot}%{_libdir}/ocaml'
# These files will be installed using doc and license directives.
rm -r %{buildroot}/doc
# Makes *.cmxs executable such that they will be stripped.
find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;
%check
%make_build test
%files
%doc README.md MANUAL.md CHANGES.md
%license LICENSE
%{_libdir}/ocaml/*
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/*/{,*/}*.a
%exclude %{_libdir}/ocaml/*/{,*/}*.cmxa
%exclude %{_libdir}/ocaml/*/{,*/}*.cmx
%endif
%exclude %{_libdir}/ocaml/*/{,*/}*.ml
%exclude %{_libdir}/ocaml/*/{,*/}*.mli
%files devel
%doc README.md MANUAL.md CHANGES.md
%license LICENSE
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/*/{,*/}*.a
%{_libdir}/ocaml/*/{,*/}*.cmxa
%{_libdir}/ocaml/*/{,*/}*.cmx
%endif
%{_libdir}/ocaml/*/{,*/}*.ml
%{_libdir}/ocaml/*/{,*/}*.mli
%changelog
* Tue Jan 02 2018 Andy Li <andy@onthewings.net> - 1.0.7-1
- Initial RPM release.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ocaml-migrate-parsetree-1.0.7.tar.gz) = 3ba1bfe4840b2664b5053068b3659eb6a2ca216f29ece3f4522d1e7c5d87cb643bfb59ebe0563264cafdc31b9aa572007b4261fd3df8b27607fad47ff6168892