0df638
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
0df638
%define debug_package %{nil}
0df638
0df638
Name:           ocaml-camomile
cde8a9
Version:        0.7.2
9b68bb
Release:        2%{?dist}
0df638
Summary:        Unicode library for OCaml
0df638
0df638
Group:          Development/Libraries
0df638
# Several files are MIT and UCD licensed, but the overall work is LGPLv2+
0df638
# and the LGPL/GPL supercedes compatible licenses.
0df638
# https://www.redhat.com/archives/fedora-legal-list/2008-March/msg00005.html
0df638
License:        LGPLv2+
0df638
URL:            http://sourceforge.net/projects/camomile/
cde8a9
Source0:        http://downloads.sourceforge.net/camomile/camomile-0.7.2.tar.bz2
0df638
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4f4812
ExcludeArch:    ppc64 sparc64 s390 s390x
0df638
0df638
BuildRequires:  ocaml, ocaml-findlib-devel, ocaml-ocamldoc, ocaml-camlp4-devel
0df638
0df638
%define _use_internal_dependency_generator 0
0df638
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
0df638
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
0df638
0df638
%description
0df638
Camomile is a Unicode library for ocaml. Camomile provides Unicode
0df638
character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from
0df638
about 200 encodings, collation and locale-sensitive case mappings, and
0df638
more.
0df638
0df638
0df638
%package        devel
0df638
Summary:        Development files for %{name}
0df638
Group:          Development/Libraries
0df638
Requires:       %{name} = %{version}-%{release}
0df638
0df638
0df638
%description    devel
0df638
The %{name}-devel package contains libraries and signature files for
0df638
developing applications that use %{name}.
0df638
0df638
0df638
%package        data
0df638
Summary:        Data files for %{name}
0df638
Group:          Development/Libraries
0df638
Requires:       %{name} = %{version}-%{release}
0df638
0df638
0df638
%description    data
0df638
The %{name}-data package contains data files for developing
0df638
applications that use %{name}.
0df638
0df638
0df638
%prep
0df638
%setup -q -n camomile-%{version}
0df638
0df638
0df638
%build
0df638
./configure --prefix=%{_prefix} --datadir=%{_datadir} --libdir=%{_libdir}
0df638
make
0df638
make dochtml
0df638
make man
0df638
strip tools/*.opt
0df638
0df638
0df638
%install
0df638
rm -rf $RPM_BUILD_ROOT
0df638
export DESTDIR=$RPM_BUILD_ROOT
0df638
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
0df638
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
0df638
mkdir -p $RPM_BUILD_ROOT%{_bindir}
0df638
make install prefix=$RPM_BUILD_ROOT%{_prefix} DATADIR=$RPM_BUILD_ROOT%{_datadir}
0df638
%if %opt
0df638
mv $RPM_BUILD_ROOT%{_bindir}/camomilecharmap.opt $RPM_BUILD_ROOT%{_bindir}/camomilecharmap
0df638
mv $RPM_BUILD_ROOT%{_bindir}/camomilelocaledef.opt $RPM_BUILD_ROOT%{_bindir}/camomilelocaledef
0df638
%endif
0df638
0df638
0df638
%clean
0df638
rm -rf $RPM_BUILD_ROOT
0df638
0df638
0df638
%files
0df638
%defattr(-,root,root,-)
0df638
%doc README
0df638
%{_libdir}/ocaml/camomile
0df638
%if %opt
0df638
%exclude %{_libdir}/ocaml/camomile/*.a
0df638
%exclude %{_libdir}/ocaml/camomile/*.cmxa
0df638
%exclude %{_libdir}/ocaml/camomile/*.cmx
0df638
%endif
0df638
%exclude %{_libdir}/ocaml/camomile/*.mli
0df638
%if %opt
0df638
%{_bindir}/camomilecharmap
0df638
%{_bindir}/camomilelocaledef
0df638
%endif
0df638
0df638
0df638
%files devel
0df638
%defattr(-,root,root,-)
0df638
%doc README dochtml/*
0df638
%if %opt
0df638
%{_libdir}/ocaml/camomile/*.a
0df638
%{_libdir}/ocaml/camomile/*.cmxa
0df638
%{_libdir}/ocaml/camomile/*.cmx
0df638
%endif
0df638
%{_libdir}/ocaml/camomile/*.mli
0df638
0df638
0df638
%files data
0df638
%defattr(-,root,root,-)
0df638
%doc README
0df638
%{_datadir}/camomile/
0df638
0df638
0df638
%changelog
9b68bb
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-2
9b68bb
- Rebuild for OCaml 3.11.2.
9b68bb
cde8a9
* Thu Oct  8 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.2-1
cde8a9
- New upstream version 0.7.2.
cde8a9
7c7571
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12
7c7571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7c7571
955cd0
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-11
955cd0
- Rebuild for OCaml 3.11.1
955cd0
4f4812
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
4f4812
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
4f4812
  (added sparc64 per request from the sparc maintainer)
4f4812
c83744
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-10
c83744
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c83744
2884df
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-9
2884df
- Rebuild for OCaml 3.11.0+rc1.
2884df
9cb07f
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-8
9cb07f
- Rebuild for OCaml 3.11.0
9cb07f
35d8d2
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-7
35d8d2
- Rebuild for OCaml 3.10.2
35d8d2
495ec5
* Fri Mar 21 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-6
495ec5
- ExcludeArch ppc64 (#438486).
495ec5
0df638
* Mon Mar 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-5
0df638
- Definitive license.
0df638
- Move ./configure into the build section.
0df638
- Remove a superfluous comment in the install section.
0df638
- Fix rpmlint error 'configure-without-libdir-spec'.
0df638
- Scratch build in Koji.
0df638
0df638
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-4
0df638
- License is LGPLv2+ (no OCaml exception).
0df638
0df638
* Wed Mar  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-3
0df638
- Remove ExcludeArch ppc64.
0df638
0df638
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-2
0df638
- Added BR ocaml-camlp4-devel.
0df638
- Rename /usr/bin/*.opt as /usr/bin.
0df638
0df638
* Wed Aug 08 2007 Richard W.M. Jones <rjones@redhat.com> - 0.7.1-1
0df638
- Initial RPM release.