ocaml-camomile/ocaml-camomile.spec
Davide Madrisan 69fa3fd4de rebuilt against ocaml 4.00
add a devel package [release 0.8.3-2mamba;Sun Jun 23 2013]
2024-01-06 07:50:58 +01:00

81 lines
2.4 KiB
RPMSpec

%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 <silvan.calarco@mambasoft.it>
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 <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