Unfortunately we have to re-add the anti-stripping code back. See
comment at top of spec file.
This commit is contained in:
parent
7cb7e7e47c
commit
6c2de7cace
|
@ -1,8 +1,17 @@
|
||||||
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||||
|
|
||||||
|
# Prevent RPM from stripping the binaries.
|
||||||
|
#
|
||||||
|
# NB: Only required because this package uses the obsolete -custom
|
||||||
|
# parameter and builds a bytecode 'ocamlrpcgen'. I tried to fix the
|
||||||
|
# build to make a native code 'ocamlrpcgen' but the build system got
|
||||||
|
# the better of me.
|
||||||
|
%define __strip /bin/true
|
||||||
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||||
|
|
||||||
Name: ocaml-ocamlnet
|
Name: ocaml-ocamlnet
|
||||||
Version: 3.7.3
|
Version: 3.7.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Network protocols for OCaml
|
Summary: Network protocols for OCaml
|
||||||
License: BSD
|
License: BSD
|
||||||
|
|
||||||
|
@ -131,6 +140,11 @@ make install
|
||||||
# be deleted safely. This avoids an rpmlint warning.
|
# be deleted safely. This avoids an rpmlint warning.
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/rpc-generator/dummy.mli
|
rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/rpc-generator/dummy.mli
|
||||||
|
|
||||||
|
# NB. Do NOT strip the binaries and prevent prelink from stripping them too.
|
||||||
|
# See comment at top of spec file.
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/prelink.conf.d
|
||||||
|
echo -e '-b /usr/bin/netplex-admin\n-b /usr/bin/ocamlrpcgen' \
|
||||||
|
> $RPM_BUILD_ROOT/etc/prelink.conf.d/ocaml-ocamlnet.conf
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc ChangeLog RELNOTES
|
%doc ChangeLog RELNOTES
|
||||||
|
@ -167,6 +181,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/rpc-generator/dummy.mli
|
||||||
%{_datadir}/%{name}/
|
%{_datadir}/%{name}/
|
||||||
%{_bindir}/netplex-admin
|
%{_bindir}/netplex-admin
|
||||||
%{_bindir}/ocamlrpcgen
|
%{_bindir}/ocamlrpcgen
|
||||||
|
%config(noreplace) /etc/prelink.conf.d/ocaml-ocamlnet.conf
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
@ -204,6 +219,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/rpc-generator/dummy.mli
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 19 2013 Richard W.M. Jones <rjones@redhat.com> - 3.7.3-2
|
||||||
|
- Unfortunately we have to re-add the anti-stripping code back. See
|
||||||
|
comment at top of spec file.
|
||||||
|
|
||||||
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 3.7.3-1
|
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 3.7.3-1
|
||||||
- New upstream version 3.7.3.
|
- New upstream version 3.7.3.
|
||||||
- Rebuild for OCaml 4.01.0.
|
- Rebuild for OCaml 4.01.0.
|
||||||
|
|
Loading…
Reference in New Issue