02768e3
Name:           ocaml-ppx-tools-versioned
a3218ad
Version:        5.4.0
c7a84c8
Release:        7%{?dist}.1
02768e3
Summary:        Tools for authors of ppx rewriters
02768e3
02768e3
License:        MIT
02768e3
URL:            https://github.com/ocaml-ppx/ppx_tools_versioned
f50dee8
Source0:        %{URL}/archive/%{version}/%{name}-%{version}.tar.gz
02768e3
02768e3
BuildRequires:  ocaml
a3218ad
BuildRequires:  ocaml-migrate-parsetree-devel >= 1.7.0
450fbe8
BuildRequires:  ocaml-dune >= 2.6.2-2
02768e3
02768e3
%description
02768e3
A variant of ppx_tools based on ocaml-migrate-parsetree.
02768e3
02768e3
02768e3
%package        devel
02768e3
Summary:        Development files for %{name}
02768e3
Requires:       %{name}%{?_isa} = %{version}-%{release}
49f6d39
Requires:       ocaml-migrate-parsetree-devel%{?_isa}
02768e3
02768e3
02768e3
%description    devel
02768e3
The %{name}-devel package contains libraries and signature
02768e3
files for developing applications that use %{name}.
02768e3
02768e3
02768e3
%prep
f50dee8
%autosetup -n ppx_tools_versioned-%{version}
02768e3
02768e3
02768e3
%build
bc48489
dune build @install --profile=release --verbose
02768e3
02768e3
02768e3
%install
5dbfd2d
dune install --destdir="%{buildroot}" --verbose
d7643bf
d7643bf
# These files will be installed using doc and license directives.
d7643bf
rm -r %{buildroot}%{_prefix}/doc/ppx_tools_versioned/{LICENSE,README.md}
02768e3
02768e3
# Makes *.cmxs and ppx_metaquot_* executable such that they will be stripped.
02768e3
find $OCAMLFIND_DESTDIR -name '*.cmxs' -exec chmod 0755 {} \;
02768e3
find $OCAMLFIND_DESTDIR -regextype sed -regex '.*/ppx_metaquot_[0-9]*' -exec chmod 0755 {} \;
02768e3
02768e3
%files
02768e3
%doc README.md
02768e3
%license LICENSE
02768e3
%{_libdir}/ocaml/*
02768e3
%ifarch %{ocaml_native_compiler}
02768e3
%exclude %{_libdir}/ocaml/*/*.a
02768e3
%exclude %{_libdir}/ocaml/*/*.cmxa
02768e3
%exclude %{_libdir}/ocaml/*/*.cmx
02768e3
%endif
02768e3
02768e3
02768e3
%files devel
02768e3
%doc README.md
02768e3
%license LICENSE
02768e3
%ifarch %{ocaml_native_compiler}
02768e3
%{_libdir}/ocaml/*/*.a
02768e3
%{_libdir}/ocaml/*/*.cmxa
02768e3
%{_libdir}/ocaml/*/*.cmx
02768e3
%endif
02768e3
02768e3
02768e3
%changelog
c7a84c8
* Wed Sep 02 2020 Richard W.M. Jones <rjones@redhat.com> - 5.4.0-7.1
c7a84c8
- Bump release and rebuild.
c7a84c8
8ab7d93
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 5.4.0-7
8ab7d93
- OCaml 4.11.1 rebuild
8ab7d93
3da6b14
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 5.4.0-6
3da6b14
- OCaml 4.11.0 rebuild
3da6b14
450fbe8
* Tue Aug 04 2020 Richard W.M. Jones <rjones@redhat.com> - 5.4.0-5
450fbe8
- Enable debuginfo generation now dune is fixed.
450fbe8
e9d4af5
* Mon Aug 03 2020 Richard W.M. Jones <rjones@redhat.com> - 5.4.0-4
e9d4af5
- Bump and rebuild to fix Location/Longident dependency.
e9d4af5
246d72c
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-3
246d72c
- Second attempt - Rebuilt for
246d72c
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
246d72c
4f709e8
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-2
4f709e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4f709e8
a3218ad
* Thu Jun 25 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 5.4.0-1
a3218ad
- New upstream release 5.4.0
a3218ad
8c93dbb
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 5.3.0-3
8c93dbb
- OCaml 4.11.0+dev2-2020-04-22 rebuild
8c93dbb
7dbd12d
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 5.3.0-2
7dbd12d
- OCaml 4.11.0 pre-release attempt 2
7dbd12d
f50dee8
* Thu Apr  9 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 5.3.0-1
f50dee8
- New upstream release 5.3.0
f50dee8
69e382e
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 5.2.3-6
69e382e
- Update all OCaml dependencies for RPM 4.16.
69e382e
5f563b8
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 5.2.3-5
5f563b8
- OCaml 4.10.0 final.
5f563b8
d622f72
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-4
d622f72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d622f72
56a6bf9
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 5.2.3-3
56a6bf9
- OCaml 4.10.0+beta1 rebuild.
56a6bf9
90e8f7a
* Sat Dec 28 2019 Andy Li <andy@onthewings.net> - 5.2.3-2
90e8f7a
- Rebuilt for the latest OCaml.
90e8f7a
- Remove unneeded BuildRequires on opam-installer.
90e8f7a
e08c337
* Wed Aug 21 2019 Richard W.M. Jones <rjones@redhat.com> - 5.2.3-1
e08c337
- New upstream version 5.2.3.
e08c337
521fe5b
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 5.2.2-4
521fe5b
- OCaml 4.08.1 (final) rebuild.
521fe5b
d5871eb
* Thu Aug 01 2019 Richard W.M. Jones <rjones@redhat.com> - 5.2.2-3
d5871eb
- OCaml 4.08.1 (rc2) rebuild.
d5871eb
5bbd044
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2
5bbd044
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5bbd044
5dbfd2d
* Thu Jun 27 2019 Andy Li <andy@onthewings.net> - 5.2.2-1
5dbfd2d
- New upstream release.
5dbfd2d
- Update BuildRequires and build commands for dune.
5dbfd2d
63e4ff0
* Wed Feb 06 2019 Richard W.M. Jones <rjones@redhat.com> - 5.2-3
63e4ff0
- Bump release and rebuild against latest ocaml-migrate-parsetree.
63e4ff0
d7a9250
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-2
d7a9250
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d7a9250
d7643bf
* Wed Aug 01 2018 Andy Li <andy@onthewings.net> - 5.2-1
d7643bf
- New upstream release.
d7643bf
6d7481b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-2
6d7481b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6d7481b
06da2db
* Fri Apr 06 2018 Andy Li <andy@onthewings.net> - 5.1-1
06da2db
- New upstream release.
06da2db
ac61795
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
ac61795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ac61795
02768e3
* Mon Jan 08 2018 Andy Li <andy@onthewings.net> - 5.0.1-1
02768e3
- Initial RPM release.