0df6389
Name:           ocaml-camomile
cf57e7a
Version:        0.8.7
d25aa9a
Release:        5%{?dist}
0df6389
Summary:        Unicode library for OCaml
0df6389
0df6389
# Several files are MIT and UCD licensed, but the overall work is LGPLv2+
0df6389
# and the LGPL/GPL supercedes compatible licenses.
0df6389
# https://www.redhat.com/archives/fedora-legal-list/2008-March/msg00005.html
0df6389
License:        LGPLv2+
0a2b162
URL:            https://github.com/yoriyuki/Camomile
65788eb
Source0:        https://github.com/yoriyuki/Camomile/archive/rel-%{version}/camomile-%{version}.tar.gz
d03a90d
515bc4a
BuildRequires:  ocaml >= 3.12.1-12
db39bf2
BuildRequires:  ocaml-findlib-devel
db39bf2
BuildRequires:  ocaml-ocamldoc
db39bf2
BuildRequires:  ocaml-camlp4-devel
06fddcf
BuildRequires:  ocaml-cppo
65788eb
BuildRequires:  jbuilder
0a2b162
6489e2e
# The base package requires the data files.  Note that it is possible
6489e2e
# to install the data files on their own to support other packages
6489e2e
# that need the mappings, and some packages (eg. guestfs-browser) do
6489e2e
# exactly this.
6489e2e
Requires:       %{name}-data = %{version}-%{release}
6489e2e
0df6389
0df6389
%description
0df6389
Camomile is a Unicode library for ocaml. Camomile provides Unicode
0df6389
character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from
0df6389
about 200 encodings, collation and locale-sensitive case mappings, and
0df6389
more.
0df6389
0df6389
0df6389
%package        devel
0df6389
Summary:        Development files for %{name}
0df6389
Requires:       %{name} = %{version}-%{release}
0df6389
0df6389
0df6389
%description    devel
0df6389
The %{name}-devel package contains libraries and signature files for
0df6389
developing applications that use %{name}.
0df6389
0df6389
0df6389
%package        data
0df6389
Summary:        Data files for %{name}
0df6389
0df6389
0df6389
%description    data
0df6389
The %{name}-data package contains data files for developing
0df6389
applications that use %{name}.
0df6389
0df6389
0df6389
%prep
65788eb
%setup -q -n Camomile-rel-%{version}
d03a90d
0df6389
0df6389
%build
65788eb
# This avoids a stack overflow in the OCaml 4.05 compiler on POWER only.
65788eb
%ifarch %{power64}
65788eb
ulimit -Hs 65536
65788eb
ulimit -Ss 65536
65788eb
%endif
65788eb
jbuilder build --verbose
0df6389
0df6389
0df6389
%install
65788eb
# We have to do this by hand because jbuilder doesn't work.
0df6389
export DESTDIR=$RPM_BUILD_ROOT
0df6389
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
0df6389
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
0df6389
mkdir -p $RPM_BUILD_ROOT%{_bindir}
65788eb
mkdir -p $RPM_BUILD_ROOT%{_datadir}
65788eb
ocamlfind install camomile _build/install/default/lib/camomile/*
79785d1
cp -r -L _build/install/default/share/camomile $RPM_BUILD_ROOT%{_datadir}
0a2b162
%ifarch %{ocaml_native_compiler}
65788eb
cp _build/default/Camomile/tools/camomilecharmap.exe $RPM_BUILD_ROOT%{_bindir}/camomilecharmap
65788eb
cp _build/default/Camomile/tools/camomilelocaledef.exe $RPM_BUILD_ROOT%{_bindir}/camomilelocaledef
0df6389
%endif
0df6389
0df6389
65788eb
%check
65788eb
jbuilder runtest
65788eb
65788eb
0df6389
%files
65788eb
%doc README
0df6389
%{_libdir}/ocaml/camomile
0a2b162
%ifarch %{ocaml_native_compiler}
0df6389
%exclude %{_libdir}/ocaml/camomile/*.a
0df6389
%exclude %{_libdir}/ocaml/camomile/*.cmxa
0df6389
%exclude %{_libdir}/ocaml/camomile/*.cmx
0df6389
%endif
0df6389
%exclude %{_libdir}/ocaml/camomile/*.mli
0a2b162
%ifarch %{ocaml_native_compiler}
0df6389
%{_bindir}/camomilecharmap
0df6389
%{_bindir}/camomilelocaledef
0df6389
%endif
0df6389
0df6389
0df6389
%files devel
65788eb
%doc README web/dochtml/*
0a2b162
%ifarch %{ocaml_native_compiler}
0df6389
%{_libdir}/ocaml/camomile/*.a
0df6389
%{_libdir}/ocaml/camomile/*.cmxa
0df6389
%{_libdir}/ocaml/camomile/*.cmx
0df6389
%endif
0df6389
%{_libdir}/ocaml/camomile/*.mli
0df6389
0df6389
0df6389
%files data
65788eb
%doc README
0df6389
%{_datadir}/camomile/
0df6389
0df6389
0df6389
%changelog
d25aa9a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-5
d25aa9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d25aa9a
e76fd1a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
e76fd1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e76fd1a
d6ec95d
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8.7-3
d6ec95d
- OCaml 4.07.0 (final) rebuild.
d6ec95d
40cf32a
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8.7-2
40cf32a
- OCaml 4.07.0-rc1 rebuild.
40cf32a
cf57e7a
* Mon Mar 05 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 0.8.7-1
cf57e7a
- New upstream version 0.8.7
cf57e7a
a043d86
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-4
a043d86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a043d86
79785d1
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-3
6d672f3
- OCaml 4.06.0 rebuild.
79785d1
- Dereference symlinks when copying data files.
6d672f3
65788eb
* Tue Oct 17 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-1
65788eb
- New upstream version 0.8.6.
65788eb
- Switch back to versioned releases.
65788eb
- Use new build system.
65788eb
- Enable parallel builds.
65788eb
- Drop -g patch since that seems to work by default now.
65788eb
- Run tests.
65788eb
0a2b162
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-0.1
0a2b162
- Build from git releases.
3db5aec
- OCaml 4.05.0 rebuild.
0a2b162
- Use ocaml_native_compiler instead of opt.
0a2b162
- Do not disable debuginfo.
06fddcf
- Add new BR ocaml-cppo.
3db5aec
fc1f255
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-23
fc1f255
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
fc1f255
50d6dbb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-22
50d6dbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
50d6dbb
3acb5bb
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-21
3acb5bb
- OCaml 4.04.2 rebuild.
3acb5bb
ea64bb4
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-20
ea64bb4
- OCaml 4.04.1 rebuild.
ea64bb4
f355357
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-19
f355357
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f355357
7784625
* Fri Nov 04 2016 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-18
7784625
- Rebuild for OCaml 4.04.0.
7784625
23f0326
* Mon Sep 12 2016 Dan Horák <dan[at]danny.cz> - 0.8.5-17
23f0326
- disable debuginfo subpackage on interpreted builds
23f0326
6489e2e
* Sat May 14 2016 Richard Jones <rjones@redhat.com> - 0.8.5-16
6489e2e
- Base package should depend on -data, not other way round (RHBZ#1336000).
6489e2e
a7b5028
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-15
a7b5028
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a7b5028
793d886
* Tue Jan 26 2016 Richard Jones <rjones@redhat.com> - 0.8.5-14
793d886
- Remove useless defattr in files section.
793d886
4529e20
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-13
4529e20
- OCaml 4.02.3 rebuild.
4529e20
49b6859
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-12
f70ead5
- Enable bytecode builds.
f70ead5
aa9a075
* Tue Jun 23 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-10
aa9a075
- Bump release and rebuild.
aa9a075
01c9872
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-9
01c9872
- ocaml-4.02.2 rebuild.
01c9872
5b8e1b3
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-8
5b8e1b3
- Bump release and rebuild.
5b8e1b3
255a749
* Mon Feb 16 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-7
255a749
- ocaml-4.02.1 rebuild.
255a749
5c4d326
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-6
5c4d326
- ocaml-4.02.0 final rebuild.
5c4d326
cfd299f
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-5
cfd299f
- ocaml-4.02.0+rc1 rebuild.
cfd299f
51622df
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-4
51622df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
51622df
0a95570
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-3
0a95570
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
0a95570
cddb983
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-2
cddb983
- OCaml 4.02.0 beta rebuild.
cddb983
00ef0eb
* Tue Jul 15 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-1
00ef0eb
- New upstream version 0.8.5.
00ef0eb
- Rebuild for OCaml 4.02.0.
00ef0eb
8b2baee
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-14
8b2baee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8b2baee
d03a90d
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-13
d03a90d
- Rebuild for OCaml 4.01.0.
d03a90d
- Enable debuginfo.
d03a90d
- Prevent parallel builds.
d03a90d
2f6f396
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-12
2f6f396
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2f6f396
9d03e78
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-11
9d03e78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9d03e78
3cce747
* Fri Oct 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-10
3cce747
- Rebuild for OCaml 4.00.1.
3cce747
- Clean up the spec file.
3cce747
b39e010
* Sat Jul 28 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-9
b39e010
- Bump and rebuild against new OCaml 4.00.0 official release.
b39e010
e8de372
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-8
e8de372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8de372
fb4deb6
* Sat Jun 09 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-7
fb4deb6
- Rebuild for OCaml 4.00.0.
fb4deb6
515bc4a
* Wed Jun  6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-6
515bc4a
- Remove sed hack which worked around segfault on ppc64.  Now fixed
515bc4a
  in OCaml >= 3.12.1-12.
515bc4a
db39bf2
* Sun Jun  3 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-5
db39bf2
- Remove patch which worked around segfault on ARM.  Now fixed
db39bf2
  in OCaml >= 3.12.1-9.
db39bf2
3a02209
* Wed May 30 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-4
3a02209
- Remove ExcludeArch ppc64.
3a02209
- Add sed hack to reduce size of long entry function which breaks
3a02209
  ppc64 code generator.  See comment in spec file for full details.
3a02209
0a30d4a
* Sat May 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-2
0a30d4a
- Include workaround for segfault in gen_mappings.ml on ARM.
0a30d4a
- Bump release and rebuild for new OCaml on ARM.
0a30d4a
541a222
* Fri Jan  6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-1
541a222
- New upstream version 0.8.3.
541a222
8fce710
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
8fce710
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8fce710
31a43a7
* Wed Jan  5 2011 Richard W.M. Jones <rjones@redhat.com> - 0.8.1-1
31a43a7
- New upstream version 0.8.1.
31a43a7
- Rebuild for OCaml 3.12.0.
31a43a7
- camomilecharmap and camomilelocaledef no longer installed by default,
31a43a7
  install them by hand instead.
31a43a7
9b68bb7
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-2
9b68bb7
- Rebuild for OCaml 3.11.2.
9b68bb7
cde8a94
* Thu Oct  8 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-1
cde8a94
- New upstream version 0.7.2.
cde8a94
7c75710
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12
7c75710
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7c75710
955cd03
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-11
955cd03
- Rebuild for OCaml 3.11.1
955cd03
4f4812f
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
4f4812f
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
4f4812f
  (added sparc64 per request from the sparc maintainer)
4f4812f
c83744e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-10
c83744e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c83744e
2884df8
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-9
2884df8
- Rebuild for OCaml 3.11.0+rc1.
2884df8
9cb07f4
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-8
9cb07f4
- Rebuild for OCaml 3.11.0
9cb07f4
35d8d23
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-7
35d8d23
- Rebuild for OCaml 3.10.2
35d8d23
495ec58
* Fri Mar 21 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-6
495ec58
- ExcludeArch ppc64 (#438486).
495ec58
0df6389
* Mon Mar 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-5
0df6389
- Definitive license.
0df6389
- Move ./configure into the build section.
0df6389
- Remove a superfluous comment in the install section.
0df6389
- Fix rpmlint error 'configure-without-libdir-spec'.
0df6389
- Scratch build in Koji.
0df6389
0df6389
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-4
0df6389
- License is LGPLv2+ (no OCaml exception).
0df6389
0df6389
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-3
0df6389
- Remove ExcludeArch ppc64.
0df6389
0df6389
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-2
0df6389
- Added BR ocaml-camlp4-devel.
0df6389
- Rename /usr/bin/*.opt as /usr/bin.
0df6389
0df6389
* Wed Aug 08 2007 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-1
0df6389
- Initial RPM release.