Blame SPECS/ocaml-curses.spec

ae01e0
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
ae01e0
%define debug_package %{nil}
ae01e0
ae01e0
Name:           ocaml-curses
ae01e0
Version:        1.0.3
ae01e0
Release:        20%{?dist}
ae01e0
Summary:        OCaml bindings for ncurses
ae01e0
ae01e0
Group:          Development/Libraries
ae01e0
License:        LGPLv2+
ae01e0
URL:            http://savannah.nongnu.org/projects/ocaml-tmk/
ae01e0
Source0:        http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz
ae01e0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ae01e0
ae01e0
ExcludeArch:    s390
ae01e0
ae01e0
BuildRequires:  ocaml >= 4.00.1
ae01e0
BuildRequires:  ocaml-findlib-devel >= 1.3.3-3
ae01e0
BuildRequires:  ncurses-devel
ae01e0
BuildRequires:  gawk
ae01e0
ae01e0
# Doesn't include a configure script, so we have to make one.
ae01e0
BuildRequires:  autoconf, automake, libtool
ae01e0
ae01e0
%define _use_internal_dependency_generator 0
ae01e0
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
ae01e0
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
ae01e0
ae01e0
ae01e0
%description
ae01e0
OCaml bindings for ncurses.
ae01e0
ae01e0
ae01e0
%package        devel
ae01e0
Summary:        Development files for %{name}
ae01e0
Group:          Development/Libraries
ae01e0
Requires:       %{name} = %{version}-%{release}
ae01e0
ae01e0
ae01e0
%description    devel
ae01e0
The %{name}-devel package contains libraries and signature files for
ae01e0
developing applications that use %{name}.
ae01e0
ae01e0
ae01e0
%prep
ae01e0
%setup -q
ae01e0
ae01e0
autoreconf
ae01e0
ae01e0
ae01e0
%build
ae01e0
%configure --enable-widec
ae01e0
make all opt
ae01e0
ae01e0
strip dllcurses_stubs.so
ae01e0
ae01e0
ae01e0
%install
ae01e0
rm -rf $RPM_BUILD_ROOT
ae01e0
ae01e0
export DESTDIR=$RPM_BUILD_ROOT
ae01e0
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
ae01e0
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
ae01e0
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
ae01e0
ae01e0
ae01e0
%clean
ae01e0
rm -rf $RPM_BUILD_ROOT
ae01e0
ae01e0
ae01e0
%files
ae01e0
%defattr(-,root,root,-)
ae01e0
%doc COPYING
ae01e0
%{_libdir}/ocaml/curses
ae01e0
%if %opt
ae01e0
%exclude %{_libdir}/ocaml/curses/*.a
ae01e0
%exclude %{_libdir}/ocaml/curses/*.cmxa
ae01e0
%exclude %{_libdir}/ocaml/curses/*.cmx
ae01e0
%endif
ae01e0
%exclude %{_libdir}/ocaml/curses/*.mli
ae01e0
%{_libdir}/ocaml/stublibs/*.so
ae01e0
%{_libdir}/ocaml/stublibs/*.so.owner
ae01e0
ae01e0
ae01e0
%files devel
ae01e0
%defattr(-,root,root,-)
ae01e0
%doc COPYING
ae01e0
%if %opt
ae01e0
%{_libdir}/ocaml/curses/*.a
ae01e0
%{_libdir}/ocaml/curses/*.cmxa
ae01e0
%{_libdir}/ocaml/curses/*.cmx
ae01e0
%endif
ae01e0
%{_libdir}/ocaml/curses/*.mli
ae01e0
ae01e0
ae01e0
%changelog
ae01e0
* Sat Sep 23 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-20
ae01e0
- Remove ExcludeArch and build on s390x.
ae01e0
  related: rhbz#1447991
ae01e0
ae01e0
* Fri Sep 22 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-19
ae01e0
- Rebuild for OCaml 4.05
ae01e0
  resolves: rhbz#1447991
ae01e0
ae01e0
* Fri Aug 08 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-18
ae01e0
- Resolves: rhbz#1125624
ae01e0
ae01e0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.3-17
ae01e0
- Mass rebuild 2013-12-27
ae01e0
ae01e0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-16
ae01e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ae01e0
ae01e0
* Tue Nov 27 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-15
ae01e0
- BR >= OCaml 4.00.1 so we can't be built against the wrong OCaml.
ae01e0
ae01e0
* Mon Oct 29 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-14
ae01e0
- Rebuild for OCaml 4.00.1.
ae01e0
ae01e0
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-13
ae01e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ae01e0
ae01e0
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-12
ae01e0
- Rebuild for OCaml 4.00.0.
ae01e0
ae01e0
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-11
ae01e0
- Rebuild for OCaml 3.12.1.
ae01e0
ae01e0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-10
ae01e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ae01e0
ae01e0
* Thu Jan 06 2011 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-9
ae01e0
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
ae01e0
ae01e0
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-8
ae01e0
- Rebuild for OCaml 3.11.2.
ae01e0
ae01e0
* Mon Oct  5 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-7
ae01e0
- Use ncursesw for wide character support.
ae01e0
ae01e0
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
ae01e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ae01e0
ae01e0
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-5
ae01e0
- Rebuild for OCaml 3.11.1
ae01e0
ae01e0
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
ae01e0
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
ae01e0
  (added sparc64 per request from the sparc maintainer)
ae01e0
ae01e0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
ae01e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ae01e0
ae01e0
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-3
ae01e0
- Rebuild for OCaml 3.11.0+rc1.
ae01e0
ae01e0
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
ae01e0
- Rebuild for OCaml 3.11.0
ae01e0
ae01e0
* Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
ae01e0
- Major version leap to the latest, supported, released version.
ae01e0
ae01e0
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-8
ae01e0
- Rebuild for OCaml 3.10.2
ae01e0
ae01e0
* Sat Mar  1 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-7.20020319
ae01e0
- Rebuild for ppc64.
ae01e0
ae01e0
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-6.20020319
ae01e0
- Rebuild for OCaml 3.10.1
ae01e0
ae01e0
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-5.20020319
ae01e0
- Force rebuild because of updated requires/provides scripts in OCaml.
ae01e0
ae01e0
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-4.20020319
ae01e0
- Force rebuild because of changed BRs in base OCaml.
ae01e0
ae01e0
* Fri Aug 24 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-3.20020319
ae01e0
- License is LGPL 2.1 or any later version.
ae01e0
ae01e0
* Mon Aug  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-2.20020319
ae01e0
- The archive is called 'mlcurses.*'.
ae01e0
ae01e0
* Mon Aug  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-1.20020319
ae01e0
- Initial RPM release.