77cc2b9
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
77cc2b9
ExcludeArch: %{ix86}
77cc2b9
b93730c
Name:           ocaml-sedlex
8f0b929
Version:        3.2
9185a78
Release:        9%{?dist}
b93730c
Summary:        Unicode-friendly lexer generator
b93730c
b93730c
License:        MIT
6b0115b
URL:            https://github.com/ocaml-community/sedlex
6b0115b
Source0:        https://github.com/ocaml-community/sedlex/archive/v%{version}/%{name}-%{version}.tar.gz
b93730c
281c774
# Use local Unicode files instead of attempting to download them
c715987
Patch0:         %{name}-no-curl.patch
281c774
b93730c
BuildRequires:  ocaml
6b0115b
BuildRequires:  ocaml-dune
281c774
BuildRequires:  ocaml-odoc
c715987
BuildRequires:  ocaml-ppxlib-devel
efe85a2
BuildRequires:  ocaml-ppx-expect-devel
b93730c
BuildRequires:  ocaml-gen-devel
281c774
BuildRequires:  unicode-ucd
b93730c
b93730c
%description
b93730c
A lexer generator for OCaml, similar to ocamllex, but supporting Unicode.
b93730c
Contrary to ocamllex, lexer specifications for sedlex are embedded in
b93730c
regular OCaml source files.
b93730c
b93730c
b93730c
%package        devel
b93730c
Summary:        Development files for %{name}
b93730c
Requires:       %{name}%{?_isa} = %{version}-%{release}
c715987
Requires:       ocaml-ppxlib-devel%{?_isa}
281c774
Requires:       ocaml-gen-devel%{?_isa}
b93730c
b93730c
b93730c
%description    devel
b93730c
The %{name}-devel package contains libraries and signature
b93730c
files for developing applications that use %{name}.
b93730c
b93730c
b93730c
%prep
281c774
%autosetup -p1 -n sedlex-%{version}
281c774
efe85a2
# Upstream's regression test is written for Unicode 14.0.0 through 15.0.0.  Our
e85068f
# Unicode files may be from a more recent version of the standard.  The test has
e85068f
# a good chance of succeeding anyway, so we cross our fingers and give it a try.
281c774
# If the regression test fails, we'll have to try another approach.
281c774
univer=$(sed -n 's/.*PropList-\([.[:digit:]]*\)\.txt/\1/p' %{_datadir}/unicode/ucd/PropList.txt)
efe85a2
sed -i "s/15\\.0\\.0/$univer/" examples/regressions.ml \
67d89d4
  src/generator/data/base_url src/syntax/unicode.ml
b93730c
b93730c
%build
6121480
%dune_build
6121480
%dune_build @doc
b93730c
b93730c
6121480
%install
6121480
%dune_install
b93730c
281c774
281c774
%check
6121480
%dune_check
281c774
281c774
6121480
%files -f .ofiles
efe85a2
%doc README.md CHANGES.md
b93730c
%license LICENSE
b93730c
b93730c
6121480
%files devel -f .ofiles-devel
efe85a2
%doc README.md CHANGES.md
b93730c
%license LICENSE
b93730c
b93730c
b93730c
%changelog
9185a78
* Tue Feb 20 2024 Andy Li <andy@onthewings.net> - 3.2-9
9185a78
- ocaml-ppxlib rebuild for Fedora 41 (RHBZ#2264259)
36337e6
ddb9a88
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-8
ddb9a88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ddb9a88
c0173fd
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-7
c0173fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c0173fd
37c1414
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 3.2-6
37c1414
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
37c1414
9025775
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 3.2-5
9025775
- OCaml 5.1.1 rebuild for Fedora 40
9025775
8937340
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 3.2-4
8937340
- OCaml 5.1 rebuild for Fedora 40
8937340
55d53c4
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-3
55d53c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
55d53c4
8ed401a
* Wed Jul 12 2023 Richard W.M. Jones <rjones@redhat.com> - 3.2-2
8ed401a
- OCaml 5.0 rebuild for Fedora 39
8ed401a
8f0b929
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 3.2-1
8f0b929
- Version 3.2
8f0b929
efe85a2
* Wed Mar 22 2023 Jerry James <loganjerry@gmail.com> - 3.1-1
efe85a2
- Version 3.1
efe85a2
- Drop upstreamed uchar patch
efe85a2
- BR ocaml-ppx-expect-devel for new tests
efe85a2
3f5597c
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 3.0-6
3f5597c
- Bump release and rebuild
3f5597c
c562ba1
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 3.0-5
c562ba1
- Bump release and rebuild
c562ba1
918b894
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 3.0-4
918b894
- Rebuild OCaml packages for F38
918b894
923a633
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-3
923a633
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
923a633
67d89d4
* Tue Nov  1 2022 Jerry James <loganjerry@gmail.com> - 3.0-2
67d89d4
- Rebuild for ocaml-ppxlib 0.28.0
67d89d4
6121480
* Mon Aug  8 2022 Jerry James <loganjerry@gmail.com> - 3.0-1
6121480
- Version 3.0
6121480
- Remove unused ocaml-seq-devel BR
6121480
- Use new OCaml macros
6121480
2f38619
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-3
2f38619
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2f38619
eda9afa
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 2.6-2
eda9afa
- OCaml 4.14.0 rebuild
eda9afa
b5d92f0
* Wed Apr 27 2022 Jerry James <loganjerry@gmail.com> - 2.6-1
b5d92f0
- Version 2.6 (update for ocaml-ppxlib 0.26.0)
b5d92f0
8c5e1b4
* Mon Feb 28 2022 Jerry James <loganjerry@gmail.com> - 2.5-4
8c5e1b4
- Rebuild for ocaml-gen 1.0
8c5e1b4
- Add ocaml-seq-devel BR
8c5e1b4
877677c
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 2.5-3
877677c
- OCaml 4.13.1 rebuild to remove package notes
877677c
6fd9084
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
6fd9084
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
6fd9084
e85068f
* Mon Dec 27 2021 Jerry James <loganjerry@gmail.com> - 2.5-1
e85068f
- Version 2.5 (update for ocaml-ppxlib 0.24.0)
e85068f
c706c03
* Tue Nov 30 2021 Jerry James <loganjerry@gmail.com> - 2.4-3
c706c03
- Rebuild for ocaml-sexplib0 0.15.0
c706c03
- Reenable Unicode standard munging code to fix the tests
c706c03
3606bb8
* Tue Oct 05 2021 Richard W.M. Jones <rjones@redhat.com> - 2.4-2
3606bb8
- OCaml 4.13.1 build
3606bb8
bb0dedf
* Wed Sep  1 2021 Jerry James <loganjerry@gmail.com> - 2.4-1
bb0dedf
- Version 2.4
bb0dedf
- Add -uchar patch to avoid the need for a compatibility package
bb0dedf
7c3408e
* Thu Jul 29 2021 Jerry James <loganjerry@gmail.com> - 2.3-5
7c3408e
- Rebuild for ocaml-ppxlib 0.22.2
7c3408e
e3f65bb
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-4
e3f65bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e3f65bb
d34fe6c
* Tue Jun 22 2021 Jerry James <loganjerry@gmail.com> - 2.3-3
d34fe6c
- Rebuild for ocaml-ppxlib 0.22.1
d34fe6c
16cf524
* Mon Mar  1 23:50:55 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 2.3-2
16cf524
- OCaml 4.12.0 build
16cf524
c715987
* Sat Feb 20 2021 Jerry James <loganjerry@gmail.com> - 2.3-1
c715987
- Version 2.3
c715987
- Drop upstreamed -pervasives patch
c715987
893d898
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-2
893d898
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
893d898
281c774
* Mon Dec  7 2020 Jerry James <loganjerry@gmail.com> - 2.2-1
281c774
- Version 2.2
281c774
- Add -pervasives and -no-curl patches
281c774
- Use local Unicode tables instead of downloading
281c774
- Build documentation with odoc
281c774
- Add a %%check script
281c774
39c18c2
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 2.1-12
39c18c2
- OCaml 4.11.1 rebuild
39c18c2
6cb9ab2
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 2.1-11
6cb9ab2
- OCaml 4.11.0 rebuild
6cb9ab2
f66b083
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-10
f66b083
- Second attempt - Rebuilt for
f66b083
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f66b083
5849a90
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-9
5849a90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5849a90
4e30b5a
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 2.1-8
4e30b5a
- OCaml 4.11.0+dev2-2020-04-22 rebuild
4e30b5a
6ea6f83
* Wed Apr 22 2020 Richard W.M. Jones <rjones@redhat.com> - 2.1-7
6ea6f83
- OCaml 4.11.0 pre-release attempt 2
6ea6f83
97cc648
* Sun Apr 05 2020 Richard W.M. Jones <rjones@redhat.com> - 2.1-6
97cc648
- Update all OCaml dependencies for RPM 4.16.
97cc648
75acac8
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 2.1-5
75acac8
- OCaml 4.10.0 final.
75acac8
4b16fe2
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-4
4b16fe2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4b16fe2
cb17faa
* Wed Jan 01 2020 Andy Li <andy@onthewings.net> - 2.1-3
cb17faa
- Rebuild against latest ocaml package.
cb17faa
- Remove unneeded BuildRequires on opam-installer.
cb17faa
fd84d1e
* Fri Nov 08 2019 Andy Li <andy@onthewings.net> - 2.1-2
fd84d1e
- Remove dependency on uchar.
fd84d1e
6b0115b
* Wed Oct 30 2019 Andy Li <andy@onthewings.net> - 2.1-1
6b0115b
- New upstream version.
6b0115b
- Update URL.
6b0115b
6b0115b
* Thu Aug 08 2019 Andy Li <andy@onthewings.net> - 1.99.4-7
23cfead
- Add ppx_tools_versioned.diff, fix build.
23cfead
1e9a808
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.99.4-6
1e9a808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1e9a808
526dec8
* Thu Feb 14 2019 Andy Li <andy@onthewings.net> - 1.99.4-5
526dec8
- Do not build in parallel since the Makefile does not support it.
526dec8
b6b8e1b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.99.4-4
b6b8e1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b6b8e1b
ac45a3a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.99.4-3
ac45a3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ac45a3a
1a21f78
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.99.4-2
1a21f78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1a21f78
b93730c
* Fri Jan 12 2018 Andy Li <andy@onthewings.net> - 1.99.4-1
b93730c
- Initial RPM release.