Blame SPECS/ocaml-camomile.spec

a1db86
# FIXME: Broken in 1.0.1 for unknown reasons.
a1db86
%global debug_package %{nil}
a1db86
a1db86
Name:           ocaml-camomile
a1db86
Version:        1.0.2
a1db86
Release:        19%{?dist}
a1db86
Summary:        Unicode library for OCaml
a1db86
a1db86
# Several files are MIT and UCD licensed, but the overall work is LGPLv2+
a1db86
# and the LGPL/GPL supercedes compatible licenses.
a1db86
# https://www.redhat.com/archives/fedora-legal-list/2008-March/msg00005.html
a1db86
License:        LGPLv2+
a1db86
URL:            https://github.com/yoriyuki/Camomile
a1db86
Source0:        https://github.com/yoriyuki/Camomile/archive/%{version}.tar.gz/camomile-%{version}.tar.gz
a1db86
a1db86
# Fix a licensing issue in EO Unicode files.  Submitted but not
a1db86
# accepted upstream: https://github.com/yoriyuki/Camomile/pull/84
a1db86
Patch1:         0001-Camomile-locales-eo.txt-Fix-license-by-importing-dat.patch
a1db86
a1db86
BuildRequires:  ocaml >= 3.12.1-12
a1db86
BuildRequires:  ocaml-findlib-devel
a1db86
BuildRequires:  ocaml-ocamldoc
a1db86
BuildRequires:  ocaml-cppo
a1db86
BuildRequires:  ocaml-dune
a1db86
a1db86
# The base package requires the data files.  Note that it is possible
a1db86
# to install the data files on their own to support other packages
a1db86
# that need the mappings, and some packages (eg. guestfs-browser) do
a1db86
# exactly this.
a1db86
Requires:       %{name}-data = %{version}-%{release}
a1db86
a1db86
a1db86
%description
a1db86
Camomile is a Unicode library for ocaml. Camomile provides Unicode
a1db86
character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from
a1db86
about 200 encodings, collation and locale-sensitive case mappings, and
a1db86
more.
a1db86
a1db86
a1db86
%package        devel
a1db86
Summary:        Development files for %{name}
a1db86
Requires:       %{name} = %{version}-%{release}
a1db86
a1db86
a1db86
%description    devel
a1db86
The %{name}-devel package contains libraries and signature files for
a1db86
developing applications that use %{name}.
a1db86
a1db86
a1db86
%package        data
a1db86
Summary:        Data files for %{name}
a1db86
a1db86
a1db86
%description    data
a1db86
The %{name}-data package contains data files for developing
a1db86
applications that use %{name}.
a1db86
a1db86
a1db86
%prep
a1db86
%autosetup -p1 -n Camomile-%{version}
a1db86
a1db86
a1db86
%build
a1db86
# This avoids a stack overflow in the OCaml 4.05 compiler on POWER only.
a1db86
%ifarch %{power64}
a1db86
ulimit -Hs 65536
a1db86
ulimit -Ss 65536
a1db86
%endif
a1db86
dune build --verbose --profile release
a1db86
a1db86
a1db86
%install
a1db86
dune install \
a1db86
         --destdir=%{buildroot} \
a1db86
         --libdir=%{_libdir}/ocaml \
a1db86
         --verbose \
a1db86
         --profile release
a1db86
a1db86
# Remove /usr/doc because we will use %%doc rules instead.
a1db86
rm -rf %{buildroot}/usr/doc
a1db86
a1db86
# Install the *.mli files by hand.
a1db86
cp _build/install/default/lib/camomile/library/*.mli %{buildroot}%{_libdir}/ocaml/camomile/
a1db86
a1db86
a1db86
%check
a1db86
# Broken in 1.0.2.
a1db86
# https://github.com/yoriyuki/Camomile/issues/82
a1db86
#jbuilder runtest --profile release
a1db86
a1db86
a1db86
%files
a1db86
%doc README.md CHANGES.md
a1db86
%license LICENSE.md
a1db86
%{_libdir}/ocaml/camomile
a1db86
%ifarch %{ocaml_native_compiler}
a1db86
%exclude %{_libdir}/ocaml/camomile/*.a
a1db86
%exclude %{_libdir}/ocaml/camomile/*.cmxa
a1db86
%exclude %{_libdir}/ocaml/camomile/*.cmx
a1db86
%endif
a1db86
%exclude %{_libdir}/ocaml/camomile/*.mli
a1db86
%ifarch %{ocaml_native_compiler}
a1db86
%endif
a1db86
a1db86
a1db86
%files devel
a1db86
%license LICENSE.md
a1db86
%ifarch %{ocaml_native_compiler}
a1db86
%{_libdir}/ocaml/camomile/*.a
a1db86
%{_libdir}/ocaml/camomile/*.cmxa
a1db86
%{_libdir}/ocaml/camomile/*.cmx
a1db86
%endif
a1db86
%{_libdir}/ocaml/camomile/*.mli
a1db86
a1db86
a1db86
%files data
a1db86
%license LICENSE.md
a1db86
%{_datadir}/camomile/
a1db86
a1db86
a1db86
%changelog
a1db86
* Fri Mar 11 2022 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-19
a1db86
- Rebuild for EPEL
a1db86
resolves: rhbz#2060850
a1db86
a1db86
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-18
a1db86
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
a1db86
  Related: rhbz#1991688
a1db86
a1db86
* Wed Jun 23 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-17
a1db86
- Bump and rebuild
a1db86
  resolves: rhbz#1975300
a1db86
a1db86
* Wed Jun 23 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-16
a1db86
- Fix a licensing issue in EO Unicode files
a1db86
a1db86
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-15
a1db86
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
a1db86
a1db86
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-14
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a1db86
a1db86
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-13
a1db86
- OCaml 4.11.1 rebuild
a1db86
a1db86
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-12
a1db86
- OCaml 4.11.0 rebuild
a1db86
a1db86
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-11
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a1db86
a1db86
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-10
a1db86
- OCaml 4.11.0+dev2-2020-04-22 rebuild
a1db86
a1db86
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-9
a1db86
- OCaml 4.11.0 pre-release attempt 2
a1db86
a1db86
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-8
a1db86
- Update all OCaml dependencies for RPM 4.16.
a1db86
a1db86
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-7
a1db86
- OCaml 4.10.0 final.
a1db86
a1db86
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a1db86
a1db86
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-5
a1db86
- OCaml 4.10.0+beta1 rebuild.
a1db86
- Use dune instead of jbuilder.
a1db86
a1db86
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-4
a1db86
- OCaml 4.09.0 (final) rebuild.
a1db86
a1db86
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-3
a1db86
- OCaml 4.08.1 (final) rebuild.
a1db86
a1db86
* Fri Aug 09 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-2
a1db86
- Reenable armv7 architecture now that nodynlink issue has been worked around.
a1db86
  https://github.com/ocaml/dune/issues/2527
a1db86
a1db86
* Thu Aug 08 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-1
a1db86
- New upstream version 1.0.2.
a1db86
a1db86
* Wed Jul 31 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-6
a1db86
- OCaml 4.08.1 (rc2) rebuild.
a1db86
a1db86
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a1db86
a1db86
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-4
a1db86
- OCaml 4.08.0 (final) rebuild.
a1db86
a1db86
* Tue Apr 30 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-3
a1db86
- Use jbuilder --profile release to disable warn-error.
a1db86
- Use jbuilder install instead of hand-installing.
a1db86
- Use %%doc and %%license.
a1db86
- Remove some binaries which are no longer installed.
a1db86
a1db86
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-2
a1db86
- OCaml 4.08.0 (beta 3) rebuild.
a1db86
a1db86
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-1
a1db86
- New upstream version 1.0.1.
a1db86
- Remove ocaml-camlp4 dependency, no longer needed.
a1db86
a1db86
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-5
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a1db86
a1db86
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a1db86
a1db86
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8.7-3
a1db86
- OCaml 4.07.0 (final) rebuild.
a1db86
a1db86
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8.7-2
a1db86
- OCaml 4.07.0-rc1 rebuild.
a1db86
a1db86
* Mon Mar 05 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 0.8.7-1
a1db86
- New upstream version 0.8.7
a1db86
a1db86
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-4
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a1db86
a1db86
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-3
a1db86
- OCaml 4.06.0 rebuild.
a1db86
- Dereference symlinks when copying data files.
a1db86
a1db86
* Tue Oct 17 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-1
a1db86
- New upstream version 0.8.6.
a1db86
- Switch back to versioned releases.
a1db86
- Use new build system.
a1db86
- Enable parallel builds.
a1db86
- Drop -g patch since that seems to work by default now.
a1db86
- Run tests.
a1db86
a1db86
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.6-0.1
a1db86
- Build from git releases.
a1db86
- OCaml 4.05.0 rebuild.
a1db86
- Use ocaml_native_compiler instead of opt.
a1db86
- Do not disable debuginfo.
a1db86
- Add new BR ocaml-cppo.
a1db86
a1db86
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-23
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a1db86
a1db86
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-22
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a1db86
a1db86
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-21
a1db86
- OCaml 4.04.2 rebuild.
a1db86
a1db86
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-20
a1db86
- OCaml 4.04.1 rebuild.
a1db86
a1db86
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-19
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a1db86
a1db86
* Fri Nov 04 2016 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-18
a1db86
- Rebuild for OCaml 4.04.0.
a1db86
a1db86
* Mon Sep 12 2016 Dan Horák <dan[at]danny.cz> - 0.8.5-17
a1db86
- disable debuginfo subpackage on interpreted builds
a1db86
a1db86
* Sat May 14 2016 Richard Jones <rjones@redhat.com> - 0.8.5-16
a1db86
- Base package should depend on -data, not other way round (RHBZ#1336000).
a1db86
a1db86
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-15
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a1db86
a1db86
* Tue Jan 26 2016 Richard Jones <rjones@redhat.com> - 0.8.5-14
a1db86
- Remove useless defattr in files section.
a1db86
a1db86
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-13
a1db86
- OCaml 4.02.3 rebuild.
a1db86
a1db86
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-12
a1db86
- Enable bytecode builds.
a1db86
a1db86
* Tue Jun 23 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-10
a1db86
- Bump release and rebuild.
a1db86
a1db86
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-9
a1db86
- ocaml-4.02.2 rebuild.
a1db86
a1db86
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-8
a1db86
- Bump release and rebuild.
a1db86
a1db86
* Mon Feb 16 2015 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-7
a1db86
- ocaml-4.02.1 rebuild.
a1db86
a1db86
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-6
a1db86
- ocaml-4.02.0 final rebuild.
a1db86
a1db86
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-5
a1db86
- ocaml-4.02.0+rc1 rebuild.
a1db86
a1db86
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-4
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a1db86
a1db86
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-3
a1db86
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
a1db86
a1db86
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-2
a1db86
- OCaml 4.02.0 beta rebuild.
a1db86
a1db86
* Tue Jul 15 2014 Richard W.M. Jones <rjones@redhat.com> - 0.8.5-1
a1db86
- New upstream version 0.8.5.
a1db86
- Rebuild for OCaml 4.02.0.
a1db86
a1db86
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-14
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a1db86
a1db86
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-13
a1db86
- Rebuild for OCaml 4.01.0.
a1db86
- Enable debuginfo.
a1db86
- Prevent parallel builds.
a1db86
a1db86
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-12
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a1db86
a1db86
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-11
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a1db86
a1db86
* Fri Oct 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-10
a1db86
- Rebuild for OCaml 4.00.1.
a1db86
- Clean up the spec file.
a1db86
a1db86
* Sat Jul 28 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-9
a1db86
- Bump and rebuild against new OCaml 4.00.0 official release.
a1db86
a1db86
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-8
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a1db86
a1db86
* Sat Jun 09 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-7
a1db86
- Rebuild for OCaml 4.00.0.
a1db86
a1db86
* Wed Jun  6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-6
a1db86
- Remove sed hack which worked around segfault on ppc64.  Now fixed
a1db86
  in OCaml >= 3.12.1-12.
a1db86
a1db86
* Sun Jun  3 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-5
a1db86
- Remove patch which worked around segfault on ARM.  Now fixed
a1db86
  in OCaml >= 3.12.1-9.
a1db86
a1db86
* Wed May 30 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-4
a1db86
- Remove ExcludeArch ppc64.
a1db86
- Add sed hack to reduce size of long entry function which breaks
a1db86
  ppc64 code generator.  See comment in spec file for full details.
a1db86
a1db86
* Sat May 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-2
a1db86
- Include workaround for segfault in gen_mappings.ml on ARM.
a1db86
- Bump release and rebuild for new OCaml on ARM.
a1db86
a1db86
* Fri Jan  6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-1
a1db86
- New upstream version 0.8.3.
a1db86
a1db86
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a1db86
a1db86
* Wed Jan  5 2011 Richard W.M. Jones <rjones@redhat.com> - 0.8.1-1
a1db86
- New upstream version 0.8.1.
a1db86
- Rebuild for OCaml 3.12.0.
a1db86
- camomilecharmap and camomilelocaledef no longer installed by default,
a1db86
  install them by hand instead.
a1db86
a1db86
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-2
a1db86
- Rebuild for OCaml 3.11.2.
a1db86
a1db86
* Thu Oct  8 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-1
a1db86
- New upstream version 0.7.2.
a1db86
a1db86
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a1db86
a1db86
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-11
a1db86
- Rebuild for OCaml 3.11.1
a1db86
a1db86
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
a1db86
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
a1db86
  (added sparc64 per request from the sparc maintainer)
a1db86
a1db86
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-10
a1db86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a1db86
a1db86
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-9
a1db86
- Rebuild for OCaml 3.11.0+rc1.
a1db86
a1db86
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-8
a1db86
- Rebuild for OCaml 3.11.0
a1db86
a1db86
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-7
a1db86
- Rebuild for OCaml 3.10.2
a1db86
a1db86
* Fri Mar 21 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-6
a1db86
- ExcludeArch ppc64 (#438486).
a1db86
a1db86
* Mon Mar 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-5
a1db86
- Definitive license.
a1db86
- Move ./configure into the build section.
a1db86
- Remove a superfluous comment in the install section.
a1db86
- Fix rpmlint error 'configure-without-libdir-spec'.
a1db86
- Scratch build in Koji.
a1db86
a1db86
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-4
a1db86
- License is LGPLv2+ (no OCaml exception).
a1db86
a1db86
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-3
a1db86
- Remove ExcludeArch ppc64.
a1db86
a1db86
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-2
a1db86
- Added BR ocaml-camlp4-devel.
a1db86
- Rename /usr/bin/*.opt as /usr/bin.
a1db86
a1db86
* Wed Aug 08 2007 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-1
a1db86
- Initial RPM release.