New upstream version 0.9.1.

- OCaml 4.01.0 rebuild.
- Modernize the spec file.
- Enable debuginfo.
This commit is contained in:
Richard W.M. Jones 2013-09-19 14:45:35 +01:00
parent 36318fda16
commit 67c2fb720d
3 changed files with 20 additions and 19 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
ocamlsdl-0.7.2-htmlref.tar.gz
ocamlsdl-0.7.2.tar.gz
/ocamlsdl-0.8.0.tar.gz
/ocamlsdl-0.9.1.tar.gz

View File

@ -1,17 +1,15 @@
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
Name: ocaml-SDL
Version: 0.8.0
Release: 9%{?dist}
Version: 0.9.1
Release: 1%{?dist}
Summary: OCaml bindings for SDL
Group: Development/Libraries
License: LGPLv2+
URL: http://ocamlsdl.sourceforge.net
Source0: http://downloads.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz
Source1: ocamlsdl-0.7.2-htmlref.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: sparc64 s390 s390x
BuildRequires: ocaml-lablgl-devel
@ -19,33 +17,34 @@ BuildRequires: 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.
%package devel
Summary: Development files for ocamlSDL
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The ocamlSDL-devel package provides libraries and headers for developing
applications using ocamlSDL
%prep
%setup -q -n ocamlsdl-%{version} -a 1
%build
%configure
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
@ -53,15 +52,11 @@ mkdir -p $OCAMLFIND_DESTDIR/stublibs
make install DESTDIR=$RPM_BUILD_ROOT
%clean
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
@ -70,7 +65,6 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc htmlref/
%if %opt
%{_libdir}/ocaml/sdl/*.a
@ -80,6 +74,12 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Sep 19 2013 Richard W.M. Jones <rjones@redhat.com> - 0.9.1-1
- New upstream version 0.9.1.
- OCaml 4.01.0 rebuild.
- Modernize the spec file.
- Enable debuginfo.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@ -171,7 +171,7 @@ rm -rf $RPM_BUILD_ROOT
* Thu Apr 26 2007 Nigel Jones <dev@nigelj.com> 0.7.2-3
- Provide ocamlSDL-static, add COPYING to -devel as docs.
* Wed Apr 10 2007 Nigel Jones <dev@nigelj.com> 0.7.2-2
* Wed Apr 11 2007 Nigel Jones <dev@nigelj.com> 0.7.2-2
- Fix missing dependencies
* Tue Apr 10 2007 Nigel Jones <dev@nigelj.com> 0.7.2-1

View File

@ -1,2 +1,2 @@
1698fa6f40a0bdf215065631f13921ee ocamlsdl-0.7.2-htmlref.tar.gz
b7ee334cf107867cc8d08cbcc319c9af ocamlsdl-0.8.0.tar.gz
c3086423991fcdc1ba468afd52fc112b ocamlsdl-0.9.1.tar.gz