a0732e1
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
32e7147
32e7147
Name:           ocaml-augeas
41e64ed
Version:        0.5
c81895d
Release:        12%{?dist}
32e7147
Summary:        OCaml bindings for Augeas configuration API
32e7147
License:        LGPLv2+ with exceptions
a0732e1
41e64ed
URL:            http://people.redhat.com/~rjones/augeas/files/
41e64ed
Source0:        http://people.redhat.com/~rjones/augeas/files/%{name}-%{version}.tar.gz
41e64ed
a0732e1
Patch1:         ocaml-augeas-0.5-use-ocamlopt-g.patch
a0732e1
a6c336c
ExcludeArch:    sparc64 s390 s390x
32e7147
32e7147
BuildRequires:  ocaml >= 3.09.0
32e7147
BuildRequires:  ocaml-findlib-devel
32e7147
BuildRequires:  ocaml-ocamldoc
32e7147
BuildRequires:  augeas-devel >= 0.1.0
32e7147
BuildRequires:  chrpath
32e7147
32e7147
32e7147
%description
32e7147
Augeas is a unified system for editing arbitrary configuration
32e7147
files. This provides complete OCaml bindings for Augeas.
32e7147
32e7147
32e7147
%package        devel
32e7147
Summary:        Development files for %{name}
32e7147
Group:          Development/Libraries
32e7147
Requires:       %{name} = %{version}-%{release}
32e7147
32e7147
32e7147
%description    devel
32e7147
The %{name}-devel package contains libraries and signature files for
32e7147
developing applications that use %{name}.
32e7147
32e7147
32e7147
%prep
32e7147
%setup -q
a0732e1
%patch1 -p1
32e7147
32e7147
32e7147
%build
32e7147
%configure
32e7147
make
32e7147
make doc
32e7147
32e7147
41e64ed
%check
41e64ed
make check
41e64ed
41e64ed
32e7147
%install
32e7147
export DESTDIR=$RPM_BUILD_ROOT
32e7147
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
32e7147
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
32e7147
32e7147
# The upstream 'make install' rule is missing '*.so' and distributes
32e7147
# '*.cmi' instead of just the augeas.cmi file.  Temporary fix:
32e7147
#make install
32e7147
ocamlfind install augeas META *.mli *.cmx *.cma *.cmxa *.a augeas.cmi *.so
32e7147
32e7147
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
32e7147
32e7147
32e7147
%files
32e7147
%doc COPYING.LIB
32e7147
%{_libdir}/ocaml/augeas
32e7147
%if %opt
32e7147
%exclude %{_libdir}/ocaml/augeas/*.a
32e7147
%exclude %{_libdir}/ocaml/augeas/*.cmxa
32e7147
%exclude %{_libdir}/ocaml/augeas/*.cmx
32e7147
%endif
32e7147
%exclude %{_libdir}/ocaml/augeas/*.mli
32e7147
%{_libdir}/ocaml/stublibs/*.so
32e7147
%{_libdir}/ocaml/stublibs/*.so.owner
32e7147
32e7147
32e7147
%files devel
32e7147
%doc html
32e7147
%if %opt
32e7147
%{_libdir}/ocaml/augeas/*.a
32e7147
%{_libdir}/ocaml/augeas/*.cmxa
32e7147
%{_libdir}/ocaml/augeas/*.cmx
32e7147
%endif
32e7147
%{_libdir}/ocaml/augeas/*.mli
32e7147
32e7147
32e7147
%changelog
c81895d
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 0.5-12
c81895d
- ocaml-4.02.0 final rebuild.
c81895d
691c3e1
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.5-11
691c3e1
- ocaml-4.02.0+rc1 rebuild.
691c3e1
ad4732d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-10
ad4732d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ad4732d
a945a8f
* Fri Aug 01 2014 Richard W.M. Jones <rjones@redhat.com> - 0.5-9
a945a8f
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
a945a8f
a279701
* Thu Jul 17 2014 Richard W.M. Jones <rjones@redhat.com> - 0.5-8
a279701
- OCaml 4.02.0 beta rebuild.
a279701
97df137
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-7
97df137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
97df137
a0732e1
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 0.5-6
a0732e1
- Rebuild for OCaml 4.01.0.
a0732e1
- Enable debuginfo.
a0732e1
f652eb1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
f652eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f652eb1
0adb477
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
0adb477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0adb477
375ec57
* Sun Dec 02 2012 Bruno Wolff III <bruno@wolff.to> - 0.5-3
375ec57
- Rebuild for ocaml 4.0.1.
375ec57
88a3936
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
88a3936
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
88a3936
41e64ed
* Mon Jun 11 2012 Richard W.M. Jones <rjones@redhat.com> - 0.5-1
41e64ed
- New upstream version 0.5.
41e64ed
- Update URLs.
41e64ed
- Add check section.
41e64ed
- Bring spec file up to modern standards.
41e64ed
026fa50
* Mon Jun 11 2012 Richard W.M. Jones <rjones@redhat.com> - 0.4-11
026fa50
- Rebuild for OCaml 4.00.0.
026fa50
e0eefab
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 0.4-10
e0eefab
- Rebuild for OCaml 3.12.1.
e0eefab
ed02a7e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-9
ed02a7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ed02a7e
099d6b4
* Thu Jan 06 2011 Richard W.M. Jones <rjones@redhat.com> - 0.4-8
099d6b4
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
099d6b4
e156a64
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.4-7
e156a64
- Rebuild for OCaml 3.11.2.
e156a64
3c23952
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-6
3c23952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3c23952
c529e8d
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.4-5
c529e8d
- Rebuild for OCaml 3.11.1
c529e8d
a6c336c
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
a6c336c
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
a6c336c
  (added sparc64 per request from the sparc maintainer)
a6c336c
caa711d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
caa711d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
caa711d
50ae54f
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4-3
50ae54f
- Rebuild for OCaml 3.11.0+rc1.
50ae54f
a4b23fd
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4-2
a4b23fd
- Rebuild for OCaml 3.11.0
a4b23fd
32e7147
* Wed May  7 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4-1
32e7147
- Initial RPM release.