Blame SPECS/ocaml-labltk.spec

Packit 657e12
%ifarch %{ocaml_native_compiler}
Packit 657e12
%global native_compiler 1
Packit 657e12
%else
Packit 657e12
%global native_compiler 0
Packit 657e12
%endif
Packit 657e12
Packit 657e12
Name:          ocaml-labltk
Packit 657e12
Version:       8.06.4
Packit 657e12
Release:       7%{?dist}
Packit 657e12
Packit 657e12
Summary:       Tcl/Tk interface for OCaml
Packit 657e12
Packit 657e12
License:       LGPLv2+ with exceptions
Packit 657e12
Packit 657e12
URL:           https://forge.ocamlcore.org/projects/labltk/
Packit 657e12
Source0:       https://forge.ocamlcore.org/frs/download.php/1727/labltk-8.06.4.tar.gz
Packit 657e12
Packit 657e12
# This adds debugging (-g) everywhere.
Packit 657e12
Patch1:        labltk-8.06.0-enable-debugging.patch
Packit 657e12
Patch2:        labltk-8.06.4-enable-more-debugging.patch
Packit 657e12
Packit 657e12
BuildRequires: ocaml
Packit 657e12
BuildRequires: tcl-devel, tk-devel
Packit 657e12
Packit 657e12
Packit 657e12
%description
Packit 657e12
labltk or mlTk is a library for interfacing OCaml with the scripting
Packit 657e12
language Tcl/Tk (all versions since 8.0.3, but no betas).
Packit 657e12
Packit 657e12
Packit 657e12
%package devel
Packit 657e12
Summary:       Tcl/Tk interface for OCaml
Packit 657e12
Packit 657e12
Requires:      %{name}%{?_isa} = %{version}-%{release}
Packit 657e12
Packit 657e12
Packit 657e12
%description devel
Packit 657e12
labltk or mlTk is a library for interfacing OCaml with the scripting
Packit 657e12
language Tcl/Tk (all versions since 8.0.3, but no betas).
Packit 657e12
Packit 657e12
This package contains the development files.
Packit 657e12
Packit 657e12
Packit 657e12
%prep
Packit 657e12
%setup -q -n labltk-%{version}
Packit 657e12
Packit 657e12
%patch1 -p1
Packit 657e12
%patch2 -p1
Packit 657e12
Packit 657e12
# Remove version control files which might get copied into documentation.
Packit 657e12
find -name .gitignore -delete
Packit 657e12
Packit 657e12
# Kill -warn-error.
Packit 657e12
find -type f | xargs sed -i -e 's/-warn-error/-w/g'
Packit 657e12
Packit 657e12
Packit 657e12
%build
Packit 657e12
./configure
Packit 657e12
Packit 657e12
# Build does not work in parallel.
Packit 657e12
unset MAKEFLAGS
Packit 657e12
Packit 657e12
%if !%{native_compiler}
Packit 657e12
make byte
Packit 657e12
%else
Packit 657e12
make all
Packit 657e12
make opt
Packit 657e12
%endif
Packit 657e12
Packit 657e12
Packit 657e12
%install
Packit 657e12
mkdir -p $RPM_BUILD_ROOT%{_bindir}
Packit 657e12
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk
Packit 657e12
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
Packit 657e12
make install \
Packit 657e12
    BINDIR=$RPM_BUILD_ROOT%{_bindir} \
Packit 657e12
    INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/labltk \
Packit 657e12
    STUBLIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
Packit 657e12
%if %{native_compiler}
Packit 657e12
# The *.o files are not installed by the Makefile.  AIUI
Packit 657e12
# that prevents linking with native code programs.
Packit 657e12
install -m 0644 camltk/*.o $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk
Packit 657e12
%endif
Packit 657e12
Packit 657e12
Packit 657e12
%files
Packit 657e12
%doc Changes README.mlTk
Packit 657e12
%dir %{_libdir}/ocaml/labltk
Packit 657e12
%{_libdir}/ocaml/labltk/*.cmi
Packit 657e12
%{_libdir}/ocaml/labltk/*.cma
Packit 657e12
%{_libdir}/ocaml/labltk/*.cmo
Packit 657e12
%{_libdir}/ocaml/stublibs/dlllabltk.so
Packit 657e12
Packit 657e12
Packit 657e12
%files devel
Packit 657e12
%doc README.mlTk
Packit 657e12
%doc examples_camltk
Packit 657e12
%doc examples_labltk
Packit 657e12
%{_bindir}/labltk
Packit 657e12
%{_bindir}/ocamlbrowser
Packit 657e12
%{_libdir}/ocaml/labltk/labltktop
Packit 657e12
%{_libdir}/ocaml/labltk/pp
Packit 657e12
%{_libdir}/ocaml/labltk/tkcompiler
Packit 657e12
%{_libdir}/ocaml/labltk/*.a
Packit 657e12
%if %{native_compiler}
Packit 657e12
%{_libdir}/ocaml/labltk/*.cmxa
Packit 657e12
%{_libdir}/ocaml/labltk/*.cmx
Packit 657e12
%{_libdir}/ocaml/labltk/*.o
Packit 657e12
%endif
Packit 657e12
%{_libdir}/ocaml/labltk/*.mli
Packit 657e12
Packit 657e12
Packit 657e12
%changelog
Packit 657e12
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.06.4-7
Packit 657e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Packit 657e12
Packit 657e12
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 8.06.4-6
Packit 657e12
- OCaml 4.07.0 (final) rebuild.
Packit 657e12
Packit 657e12
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 8.06.4-5
Packit 657e12
- OCaml 4.07.0-rc1 rebuild.
Packit 657e12
Packit 657e12
* Thu Apr 26 2018 Richard W.M. Jones <rjones@redhat.com> - 8.06.4-4
Packit 657e12
- OCaml 4.07.0-beta2 rebuild.
Packit 657e12
- Kill -warn-error.
Packit 657e12
Packit 657e12
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.06.4-3
Packit 657e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Packit 657e12
Packit 657e12
* Tue Nov 07 2017 Richard W.M. Jones <rjones@redhat.com> - 8.06.4-2
Packit 657e12
- OCaml 4.06.0 rebuild.
Packit 657e12
- Add -g flag to all calls to gcc as well.
Packit 657e12
Packit 657e12
* Tue Nov 07 2017 Richard W.M. Jones <rjones@redhat.com> - 8.06.4-1
Packit 657e12
- New upstream version 8.06.4.
Packit 657e12
Packit 657e12
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 8.06.3-1
Packit 657e12
- New upstream version 8.06.3 (including fixes for OCaml 4.05).
Packit 657e12
- OCaml 4.05.0 rebuild.
Packit 657e12
Packit 657e12
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.06.2-6
Packit 657e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Packit 657e12
Packit 657e12
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.06.2-5
Packit 657e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Packit 657e12
Packit 657e12
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 8.06.2-4
Packit 657e12
- OCaml 4.04.2 rebuild.
Packit 657e12
Packit 657e12
* Wed May 10 2017 Richard W.M. Jones <rjones@redhat.com> - 8.06.2-3
Packit 657e12
- Rebuild for OCaml 4.04.1.
Packit 657e12
Packit 657e12
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.06.2-2
Packit 657e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Packit 657e12
Packit 657e12
* Fri Nov 04 2016 Richard W.M. Jones <rjones@redhat.com> - 8.06.2-1
Packit 657e12
- New upstream version 8.06.2.
Packit 657e12
Packit 657e12
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8.06.0-6
Packit 657e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Packit 657e12
Packit 657e12
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 8.06.0-5
Packit 657e12
- OCaml 4.02.3 rebuild.
Packit 657e12
Packit 657e12
* Wed Jul 22 2015 Richard W.M. Jones <rjones@redhat.com> - 8.06.0-4
Packit 657e12
- s390x: Don't copy *.o files when building bytecode.
Packit 657e12
Packit 657e12
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 8.06.0-3
Packit 657e12
- ocaml-4.02.2 final rebuild.
Packit 657e12
Packit 657e12
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 8.06.0-2
Packit 657e12
- ocaml-4.02.2 rebuild.
Packit 657e12
Packit 657e12
* Mon Feb 16 2015 Richard W.M. Jones <rjones@redhat.com> - 8.06.0-1
Packit 657e12
- New upstream version 8.06.0.
Packit 657e12
- Big jump in upstream version numbers to match Tk versions.
Packit 657e12
- ocaml-4.02.1 rebuild.
Packit 657e12
Packit 657e12
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.7.beta1
Packit 657e12
- ocaml-4.02.0 final rebuild.
Packit 657e12
Packit 657e12
* Fri Aug 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.6.beta1
Packit 657e12
- ocaml-4.02.0+rc1 rebuild.
Packit 657e12
Packit 657e12
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.02-0.5.beta1
Packit 657e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Packit 657e12
Packit 657e12
* Fri Aug 01 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.4.beta1
Packit 657e12
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
Packit 657e12
Packit 657e12
* Tue Jul 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.3.beta1
Packit 657e12
- OCaml 4.02.0 beta rebuild.
Packit 657e12
Packit 657e12
* Tue Jul 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.2.beta1
Packit 657e12
- Enable debugging.
Packit 657e12
- Move labltk to -devel package.
Packit 657e12
- Enable _smp_flags.
Packit 657e12
Packit 657e12
* Tue Jul 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.1.beta1
Packit 657e12
- Initial packaging of new out-of-tree ocaml-labltk.