Rebuild for OCaml 4.01.0.
- Enable debuginfo. - Modernize the spec file.
This commit is contained in:
parent
1d9818d904
commit
17d35e334f
@ -1,16 +1,14 @@
|
||||
%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-curses
|
||||
Version: 1.0.3
|
||||
Release: 17%{?dist}
|
||||
Release: 18%{?dist}
|
||||
Summary: OCaml bindings for ncurses
|
||||
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2+
|
||||
|
||||
URL: http://savannah.nongnu.org/projects/ocaml-tmk/
|
||||
Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
BuildRequires: ocaml >= 4.00.1
|
||||
@ -21,10 +19,6 @@ BuildRequires: gawk
|
||||
# Doesn't include a configure script, so we have to make one.
|
||||
BuildRequires: autoconf, automake, libtool
|
||||
|
||||
%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
|
||||
OCaml bindings for ncurses.
|
||||
@ -32,7 +26,6 @@ OCaml bindings for ncurses.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
|
||||
@ -51,24 +44,15 @@ autoreconf
|
||||
%configure --enable-widec
|
||||
make all opt
|
||||
|
||||
strip dllcurses_stubs.so
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%{_libdir}/ocaml/curses
|
||||
%if %opt
|
||||
@ -82,7 +66,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/curses/*.a
|
||||
@ -93,6 +76,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-18
|
||||
- Rebuild for OCaml 4.01.0.
|
||||
- Enable debuginfo.
|
||||
- Modernize the spec file.
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
@ -123,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-8
|
||||
- Rebuild for OCaml 3.11.2.
|
||||
|
||||
* Mon Oct 4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-7
|
||||
* Mon Oct 5 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-7
|
||||
- Use ncursesw for wide character support.
|
||||
|
||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
|
||||
@ -163,7 +151,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-4.20020319
|
||||
- Force rebuild because of changed BRs in base OCaml.
|
||||
|
||||
* Mon Aug 24 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-3.20020319
|
||||
* Mon Aug 27 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-3.20020319
|
||||
- License is LGPL 2.1 or any later version.
|
||||
|
||||
* Mon Aug 6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-2.20020319
|
||||
|
||||
Loading…
Reference in New Issue
Block a user