2024-01-06 07:50:58 +01:00
|
|
|
%define ocamlpck camomile
|
|
|
|
|
|
|
|
Name: ocaml-camomile
|
2024-01-06 07:50:59 +01:00
|
|
|
Version: 2.0.0
|
2024-01-06 07:50:58 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 07:50:58 +01:00
|
|
|
Summary: a Unicode library for objective caml language
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:50:58 +01:00
|
|
|
URL: https://github.com/yoriyuki/Camomile
|
2024-01-06 07:50:59 +01:00
|
|
|
Source: https://github.com/ocaml-community/Camomile.git/v%{version}/Camomile-%{version}.tar.bz2
|
|
|
|
#Source: https://github.com/yoriyuki/Camomile.git/%{version}/Camomile-%{version}.tar.bz2
|
2024-01-06 07:50:58 +01:00
|
|
|
Patch0: ocaml-camomile-1.0.2-add-version.patch
|
2024-01-06 07:50:58 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 07:50:59 +01:00
|
|
|
BuildRequires: dune
|
2024-01-06 07:50:58 +01:00
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: ocaml
|
2024-01-06 07:50:59 +01:00
|
|
|
BuildRequires: ocaml-camlp-streams-devel
|
|
|
|
BuildRequires: ocaml-runtime
|
2024-01-06 07:50:58 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 07:50:59 +01:00
|
|
|
BuildRequires: ocaml >= 4.14.1
|
2024-01-06 07:50:58 +01:00
|
|
|
BuildRequires: dune
|
2024-01-06 07:50:58 +01:00
|
|
|
BuildRequires: ocaml-findlib
|
2024-01-06 07:50:58 +01:00
|
|
|
Requires: %{name}-data = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Camomile is a Unicode library for objective caml (a. k. a. OCaml or O'Caml) language.
|
|
|
|
Camomile provides Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about 200 encodings, collation and locale-sensitive case mappings, and more.
|
|
|
|
The library is currently designed for Unicode Standard 3.2.
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
%package data
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Data files for %{name}
|
2024-01-06 07:50:59 +01:00
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
%description data
|
|
|
|
This package contains the data files provided with %{name}.
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and signature files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
%prep
|
2024-01-06 07:50:58 +01:00
|
|
|
%setup -q -n Camomile-%{version}
|
2024-01-06 07:50:59 +01:00
|
|
|
#%patch 0 -p1
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 07:50:59 +01:00
|
|
|
#find . -name "*.mli" -exec sed -i 's,Pervasives.in_channel,Stdlib.in_channel,g' {} +
|
|
|
|
#find . -name "*.mli" -exec sed -i 's,Pervasives.out_channel,Stdlib.out_channel,g' {} +
|
|
|
|
#find . -name "*.ml" -exec sed -i 's,Pervasives.in_channel,Stdlib.in_channel,g' {} +
|
|
|
|
#find . -name "*.ml" -exec sed -i 's,Pervasives.out_channel,Stdlib.out_channel,g' {} +
|
|
|
|
#find . -name "*.ml" -exec sed -i 's,Pervasives.compare,Stdlib.compare,g' {} +
|
2024-01-06 07:50:58 +01:00
|
|
|
dune build @install
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 07:50:59 +01:00
|
|
|
DESTDIR=%{buildroot} dune install --prefix "/usr" --libdir "%{_libdir}/ocaml"
|
|
|
|
|
|
|
|
#mkdir -p %{buildroot}%{_libdir}/ocaml
|
|
|
|
#dune install \
|
|
|
|
# --destdir="%{buildroot}" \
|
|
|
|
# --prefix=%{_prefix} \
|
|
|
|
# --libdir="%{_libdir}/ocaml"
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
rm -rf %{buildroot}/usr/doc
|
2024-01-06 07:50:58 +01:00
|
|
|
|
2024-01-06 07:50:59 +01:00
|
|
|
## Remove annotation files and sources.
|
|
|
|
#rm -Rf %{buildroot}%{_libdir}/ocaml/camomile/*.cmt*
|
|
|
|
#rm -Rf %{buildroot}%{_libdir}/ocaml/camomile/*.ml
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
# Install the *.mli files by hand.
|
2024-01-06 07:50:59 +01:00
|
|
|
#cp _build/install/default/lib/camomile/library/*.mli %{buildroot}%{_libdir}/ocaml/camomile/
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}
|
2024-01-06 07:50:58 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
2024-01-06 07:50:59 +01:00
|
|
|
#%exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli
|
2024-01-06 07:50:58 +01:00
|
|
|
%doc LICENSE.md
|
2024-01-06 07:50:58 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
2024-01-06 07:50:59 +01:00
|
|
|
#%{_libdir}/ocaml/%{ocamlpck}/*.mli
|
2024-01-06 07:50:58 +01:00
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
%files data
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/camomile
|
|
|
|
%{_datadir}/camomile/*
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
%changelog
|
2024-01-06 07:50:59 +01:00
|
|
|
* Sun Jul 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-2mamba
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Thu Jul 06 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
|
|
|
|
- update to 2.0.0
|
|
|
|
- rebuilt with ocaml 4.14.1
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
* Thu Feb 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-2mamba
|
|
|
|
- add version in dune-project to fix liquidsoap detection
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
* Fri Feb 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-1mamba
|
|
|
|
- update to 1.0.2
|
|
|
|
|
2024-01-06 07:50:58 +01:00
|
|
|
* Sun Jun 23 2013 Davide Madrisan <davide.madrisan@gmail.com> 0.8.3-2mamba
|
|
|
|
- rebuilt against ocaml 4.00
|
|
|
|
- add a devel package
|
|
|
|
|
|
|
|
* Wed Jan 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.3-1mamba
|
|
|
|
- package created by silvan using the webbuild interface
|