- Rebuild for OCaml 3.10.1.
- Generate correct provides and requires. - Fix 'make install' rule for new ocamlfind. - Fix paths to conform with OCaml packaging guidelines.
This commit is contained in:
parent
2752376c03
commit
6cd308025f
@ -1,6 +1,9 @@
|
||||
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: ocaml-SDL
|
||||
Version: 0.7.2
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: OCaml bindings for SDL
|
||||
|
||||
Group: Development/Libraries
|
||||
@ -17,6 +20,10 @@ BuildRequires: lablgl SDL_ttf-devel SDL_mixer-devel SDL_image-devel
|
||||
BuildRequires: ocaml
|
||||
Requires: ocaml
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
||||
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
||||
|
||||
%description
|
||||
Runtime libraries to allow programs written in OCaml to write to SDL
|
||||
(Simple DirectMedia Layer) interfaces.
|
||||
@ -40,8 +47,12 @@ make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR
|
||||
mkdir -p $OCAMLFIND_DESTDIR/stublibs
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/ocaml/sdl/*.mli
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@ -50,15 +61,33 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README COPYING AUTHORS NEWS
|
||||
%{_libdir}/ocaml/sdl
|
||||
%{_libdir}/ocaml/stublibs/*.so
|
||||
%{_libdir}/ocaml/stublibs/*.so.owner
|
||||
%if %opt
|
||||
%exclude %{_libdir}/ocaml/sdl/*.a
|
||||
%exclude %{_libdir}/ocaml/sdl/*.cmxa
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/sdl/*.mli
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc htmlref/
|
||||
%{_libdir}/ocaml/sdl
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/sdl/*.a
|
||||
%{_libdir}/ocaml/sdl/*.cmxa
|
||||
%endif
|
||||
%{_libdir}/ocaml/sdl/*.mli
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 13 2008 Richard W.M. Jones <rjones@redhat.com> 0.7.2-8
|
||||
- Rebuild for OCaml 3.10.1.
|
||||
- Generate correct provides and requires.
|
||||
- Fix 'make install' rule for new ocamlfind.
|
||||
- Fix paths to conform with OCaml packaging guidelines.
|
||||
|
||||
* Wed May 09 2007 Nigel Jones <dev@nigelj.com> 0.7.2-7
|
||||
- ExcludeArch ppc64 until ocaml builds
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user