6ed96a
# FIXME: Broken in 1.0.1 for unknown reasons.
6ed96a
%global debug_package %{nil}
6ed96a
0df638
Name:           ocaml-camomile
7c8f7e
Version:        1.0.1
393497
Release:        3%{?dist}
0df638
Summary:        Unicode library for OCaml
0df638
0df638
# Several files are MIT and UCD licensed, but the overall work is LGPLv2+
0df638
# and the LGPL/GPL supercedes compatible licenses.
0df638
# https://www.redhat.com/archives/fedora-legal-list/2008-March/msg00005.html
0df638
License:        LGPLv2+
0a2b16
URL:            https://github.com/yoriyuki/Camomile
7c8f7e
Source0:        https://github.com/yoriyuki/Camomile/archive/%{version}.tar.gz/camomile-%{version}.tar.gz
d03a90
515bc4
BuildRequires:  ocaml >= 3.12.1-12
db39bf
BuildRequires:  ocaml-findlib-devel
db39bf
BuildRequires:  ocaml-ocamldoc
06fddc
BuildRequires:  ocaml-cppo
65788e
BuildRequires:  jbuilder
0a2b16
6489e2
# The base package requires the data files.  Note that it is possible
6489e2
# to install the data files on their own to support other packages
6489e2
# that need the mappings, and some packages (eg. guestfs-browser) do
6489e2
# exactly this.
6489e2
Requires:       %{name}-data = %{version}-%{release}
6489e2
0df638
0df638
%description
0df638
Camomile is a Unicode library for ocaml. Camomile provides Unicode
0df638
character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from
0df638
about 200 encodings, collation and locale-sensitive case mappings, and
0df638
more.
0df638
0df638
0df638
%package        devel
0df638
Summary:        Development files for %{name}
0df638
Requires:       %{name} = %{version}-%{release}
0df638
0df638
0df638
%description    devel
0df638
The %{name}-devel package contains libraries and signature files for
0df638
developing applications that use %{name}.
0df638
0df638
0df638
%package        data
0df638
Summary:        Data files for %{name}
0df638
0df638
0df638
%description    data
0df638
The %{name}-data package contains data files for developing
0df638
applications that use %{name}.
0df638
0df638
0df638
%prep
7c8f7e
%setup -q -n Camomile-%{version}
d03a90
0df638
0df638
%build
65788e
# This avoids a stack overflow in the OCaml 4.05 compiler on POWER only.
65788e
%ifarch %{power64}
65788e
ulimit -Hs 65536
65788e
ulimit -Ss 65536
65788e
%endif
6ed96a
jbuilder build --verbose --profile release
0df638
0df638
0df638
%install
6ed96a
jbuilder install \
6ed96a
         --destdir=%{buildroot} \
6ed96a
         --libdir=%{_libdir}/ocaml \
6ed96a
         --verbose \
6ed96a
         --profile release
6ed96a
6ed96a
# Remove /usr/doc because we will use %%doc rules instead.
6ed96a
rm -rf %{buildroot}/usr/doc
6ed96a
6ed96a
# Install the *.mli files by hand.
6ed96a
cp _build/install/default/lib/camomile/library/*.mli %{buildroot}%{_libdir}/ocaml/camomile/
0df638
0df638
65788e
%check
6ed96a
jbuilder runtest --profile release
65788e
65788e
0df638
%files
6ed96a
%doc README.md CHANGES.md
6ed96a
%license LICENSE.md
0df638
%{_libdir}/ocaml/camomile
0a2b16
%ifarch %{ocaml_native_compiler}
0df638
%exclude %{_libdir}/ocaml/camomile/*.a
0df638
%exclude %{_libdir}/ocaml/camomile/*.cmxa
0df638
%exclude %{_libdir}/ocaml/camomile/*.cmx
0df638
%endif
0df638
%exclude %{_libdir}/ocaml/camomile/*.mli
0a2b16
%ifarch %{ocaml_native_compiler}
0df638
%endif
0df638
0df638
0df638
%files devel
6ed96a
%license LICENSE.md
0a2b16
%ifarch %{ocaml_native_compiler}
0df638
%{_libdir}/ocaml/camomile/*.a
0df638
%{_libdir}/ocaml/camomile/*.cmxa
0df638
%{_libdir}/ocaml/camomile/*.cmx
0df638
%endif
0df638
%{_libdir}/ocaml/camomile/*.mli
0df638
0df638
0df638
%files data
6ed96a
%license LICENSE.md
0df638
%{_datadir}/camomile/
0df638
0df638
0df638
%changelog
6ed96a
* Tue Apr 30 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-3
6ed96a
- Use jbuilder --profile release to disable warn-error.
6ed96a
- Use jbuilder install instead of hand-installing.
6ed96a
- Use %%doc and %%license.
6ed96a
- Remove some binaries which are no longer installed.
393497
d6a48f
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-2
d6a48f
- OCaml 4.08.0 (beta 3) rebuild.
d6a48f
7c8f7e
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-1
7c8f7e
- New upstream version 1.0.1.
7c8f7e
- Remove ocaml-camlp4 dependency, no longer needed.
7c8f7e
d25aa9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-5
d25aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d25aa9
e76fd1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
e76fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e76fd1
d6ec95
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8.7-3
d6ec95
- OCaml 4.07.0 (final) rebuild.
d6ec95
40cf32
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8.7-2
40cf32
- OCaml 4.07.0-rc1 rebuild.
40cf32
cf57e7
* Mon Mar 05 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 0.8.7-1
cf57e7
- New upstream version 0.8.7
cf57e7
a043d8
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-4
a043d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a043d8
79785d
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-3
6d672f
- OCaml 4.06.0 rebuild.
79785d
- Dereference symlinks when copying data files.
6d672f
65788e
* Tue Oct 17 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-1
65788e
- New upstream version 0.8.6.
65788e
- Switch back to versioned releases.
65788e
- Use new build system.
65788e
- Enable parallel builds.
65788e
- Drop -g patch since that seems to work by default now.
65788e
- Run tests.
65788e
0a2b16
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-0.1
0a2b16
- Build from git releases.
3db5ae
- OCaml 4.05.0 rebuild.
0a2b16
- Use ocaml_native_compiler instead of opt.
0a2b16
- Do not disable debuginfo.
06fddc
- Add new BR ocaml-cppo.
3db5ae
fc1f25
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-23
fc1f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
fc1f25
50d6db
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-22
50d6db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
50d6db
3acb5b
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-21
3acb5b
- OCaml 4.04.2 rebuild.
3acb5b
ea64bb
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-20
ea64bb
- OCaml 4.04.1 rebuild.
ea64bb
f35535
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-19
f35535
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f35535
778462
* Fri Nov 04 2016 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-18
778462
- Rebuild for OCaml 4.04.0.
778462
23f032
* Mon Sep 12 2016 Dan Horák <dan[at]danny.cz> - 0.8.5-17
23f032
- disable debuginfo subpackage on interpreted builds
23f032
6489e2
* Sat May 14 2016 Richard Jones <rjones@redhat.com> - 0.8.5-16
6489e2
- Base package should depend on -data, not other way round (RHBZ#1336000).
6489e2
a7b502
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-15
a7b502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a7b502
793d88
* Tue Jan 26 2016 Richard Jones <rjones@redhat.com> - 0.8.5-14
793d88
- Remove useless defattr in files section.
793d88
4529e2
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-13
4529e2
- OCaml 4.02.3 rebuild.
4529e2
49b685
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-12
f70ead
- Enable bytecode builds.
f70ead
aa9a07
* Tue Jun 23 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-10
aa9a07
- Bump release and rebuild.
aa9a07
01c987
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-9
01c987
- ocaml-4.02.2 rebuild.
01c987
5b8e1b
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-8
5b8e1b
- Bump release and rebuild.
5b8e1b
255a74
* Mon Feb 16 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-7
255a74
- ocaml-4.02.1 rebuild.
255a74
5c4d32
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-6
5c4d32
- ocaml-4.02.0 final rebuild.
5c4d32
cfd299
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-5
cfd299
- ocaml-4.02.0+rc1 rebuild.
cfd299
51622d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-4
51622d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
51622d
0a9557
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-3
0a9557
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
0a9557
cddb98
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-2
cddb98
- OCaml 4.02.0 beta rebuild.
cddb98
00ef0e
* Tue Jul 15 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-1
00ef0e
- New upstream version 0.8.5.
00ef0e
- Rebuild for OCaml 4.02.0.
00ef0e
8b2bae
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-14
8b2bae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8b2bae
d03a90
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-13
d03a90
- Rebuild for OCaml 4.01.0.
d03a90
- Enable debuginfo.
d03a90
- Prevent parallel builds.
d03a90
2f6f39
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-12
2f6f39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2f6f39
9d03e7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-11
9d03e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9d03e7
3cce74
* Fri Oct 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-10
3cce74
- Rebuild for OCaml 4.00.1.
3cce74
- Clean up the spec file.
3cce74
b39e01
* Sat Jul 28 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-9
b39e01
- Bump and rebuild against new OCaml 4.00.0 official release.
b39e01
e8de37
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-8
e8de37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8de37
fb4deb
* Sat Jun 09 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-7
fb4deb
- Rebuild for OCaml 4.00.0.
fb4deb
515bc4
* Wed Jun  6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-6
515bc4
- Remove sed hack which worked around segfault on ppc64.  Now fixed
515bc4
  in OCaml >= 3.12.1-12.
515bc4
db39bf
* Sun Jun  3 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-5
db39bf
- Remove patch which worked around segfault on ARM.  Now fixed
db39bf
  in OCaml >= 3.12.1-9.
db39bf
3a0220
* Wed May 30 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-4
3a0220
- Remove ExcludeArch ppc64.
3a0220
- Add sed hack to reduce size of long entry function which breaks
3a0220
  ppc64 code generator.  See comment in spec file for full details.
3a0220
0a30d4
* Sat May 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-2
0a30d4
- Include workaround for segfault in gen_mappings.ml on ARM.
0a30d4
- Bump release and rebuild for new OCaml on ARM.
0a30d4
541a22
* Fri Jan  6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-1
541a22
- New upstream version 0.8.3.
541a22
8fce71
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
8fce71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8fce71
31a43a
* Wed Jan  5 2011 Richard W.M. Jones <rjones@redhat.com> - 0.8.1-1
31a43a
- New upstream version 0.8.1.
31a43a
- Rebuild for OCaml 3.12.0.
31a43a
- camomilecharmap and camomilelocaledef no longer installed by default,
31a43a
  install them by hand instead.
31a43a
9b68bb
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-2
9b68bb
- Rebuild for OCaml 3.11.2.
9b68bb
cde8a9
* Thu Oct  8 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-1
cde8a9
- New upstream version 0.7.2.
cde8a9
7c7571
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12
7c7571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7c7571
955cd0
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-11
955cd0
- Rebuild for OCaml 3.11.1
955cd0
4f4812
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
4f4812
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
4f4812
  (added sparc64 per request from the sparc maintainer)
4f4812
c83744
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-10
c83744
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c83744
2884df
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-9
2884df
- Rebuild for OCaml 3.11.0+rc1.
2884df
9cb07f
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-8
9cb07f
- Rebuild for OCaml 3.11.0
9cb07f
35d8d2
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-7
35d8d2
- Rebuild for OCaml 3.10.2
35d8d2
495ec5
* Fri Mar 21 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-6
495ec5
- ExcludeArch ppc64 (#438486).
495ec5
0df638
* Mon Mar 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-5
0df638
- Definitive license.
0df638
- Move ./configure into the build section.
0df638
- Remove a superfluous comment in the install section.
0df638
- Fix rpmlint error 'configure-without-libdir-spec'.
0df638
- Scratch build in Koji.
0df638
0df638
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-4
0df638
- License is LGPLv2+ (no OCaml exception).
0df638
0df638
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-3
0df638
- Remove ExcludeArch ppc64.
0df638
0df638
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-2
0df638
- Added BR ocaml-camlp4-devel.
0df638
- Rename /usr/bin/*.opt as /usr/bin.
0df638
0df638
* Wed Aug 08 2007 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-1
0df638
- Initial RPM release.