diff --git a/README.md b/README.md index df4dd22..5b3e048 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # ocaml-camomile +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. + diff --git a/ocaml-camomile.spec b/ocaml-camomile.spec new file mode 100644 index 0000000..8521769 --- /dev/null +++ b/ocaml-camomile.spec @@ -0,0 +1,80 @@ +%define ocamlpck camomile + +Name: ocaml-camomile +Version: 0.8.3 +Release: 2mamba +Summary: a Unicode library for objective caml language +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://camomile.sourceforge.net/ +Source: http://prdownloads.sourceforge.net/camomile/camomile-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: ocaml +BuildRequires: ocaml-findlib +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. + +%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}. + +%prep +%setup -q -n camomile-%{version} + +%build +%configure --disable-ldconf +make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) +install -d $OCAMLFIND_DESTDIR/%{ocamlpck} + +make install DATADIR=%{buildroot}%{_datadir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_libdir}/ocaml/%{ocamlpck} +%{_libdir}/ocaml/%{ocamlpck}/META +%{_libdir}/ocaml/%{ocamlpck}/*.cma +%{_libdir}/ocaml/%{ocamlpck}/*.cmi +%dir %{_datadir}/camomile +%dir %{_datadir}/camomile/charmaps +%{_datadir}/camomile/charmaps/*.mar +%dir %{_datadir}/camomile/database +%{_datadir}/camomile/database/*.mar +%dir %{_datadir}/camomile/locales +%{_datadir}/camomile/locales/*.mar +%dir %{_datadir}/camomile/mappings +%{_datadir}/camomile/mappings/*.mar +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_libdir}/ocaml/%{ocamlpck}/*.a +%{_libdir}/ocaml/%{ocamlpck}/*.cmx +%{_libdir}/ocaml/%{ocamlpck}/*.cmxa +%{_libdir}/ocaml/%{ocamlpck}/*.mli + +%changelog +* Sun Jun 23 2013 Davide Madrisan 0.8.3-2mamba +- rebuilt against ocaml 4.00 +- add a devel package + +* Wed Jan 23 2013 Silvan Calarco 0.8.3-1mamba +- package created by silvan using the webbuild interface