- Rebuild for dependencies
- Use native, rather than emulated endian-specific, 64-bit arithmetic - Fix license handling
This commit is contained in:
parent
1c4f38c5ec
commit
c045cb1273
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
Name: ocaml-bin-prot
|
Name: ocaml-bin-prot
|
||||||
Version: 2.0.9
|
Version: 2.0.9
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: Read and write OCaml values in a type-safe binary protocol
|
Summary: Read and write OCaml values in a type-safe binary protocol
|
||||||
License: LGPLv2+ with exceptions
|
License: LGPLv2+ with exceptions
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ URL: http://forge.ocamlcore.org/projects/bin-prot
|
||||||
Source0: http://forge.ocamlcore.org/frs/download.php/%{dlnode}/bin_prot-%{version}.tar.gz
|
Source0: http://forge.ocamlcore.org/frs/download.php/%{dlnode}/bin_prot-%{version}.tar.gz
|
||||||
|
|
||||||
# Remove -Werror from flags.
|
# Remove -Werror from flags.
|
||||||
Patch1: ocaml-bin-prot-2.0.9-remove-Werror.patch
|
Patch1: %{name}-2.0.9-remove-Werror.patch
|
||||||
|
|
||||||
BuildRequires: ocaml >= 3.12.0
|
BuildRequires: ocaml >= 3.12.0
|
||||||
BuildRequires: ocaml-findlib-devel
|
BuildRequires: ocaml-findlib-devel
|
||||||
|
@ -51,6 +51,14 @@ developing applications that use %{name}.
|
||||||
%setup -q -n bin_prot-%{version}
|
%setup -q -n bin_prot-%{version}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
|
# Use Fedora CFLAGS, and define ARCH_INT64_TYPE
|
||||||
|
expr=' "-DARCH_INT64_TYPE";'
|
||||||
|
for flag in %{optflags}; do
|
||||||
|
expr+="\\$\n"' '"\"$flag\";"
|
||||||
|
done
|
||||||
|
sed -i "/-pipe/,/-Wno-long-long/c\\$expr" myocamlbuild.ml
|
||||||
|
sed -i 's/;\$$/;/' myocamlbuild.ml
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
ocaml setup.ml -configure --prefix %{_prefix} \
|
ocaml setup.ml -configure --prefix %{_prefix} \
|
||||||
|
@ -81,7 +89,7 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYRIGHT LICENSE LICENSE.Tywith
|
%license COPYRIGHT LICENSE LICENSE.Tywith
|
||||||
%{_libdir}/ocaml/bin_prot
|
%{_libdir}/ocaml/bin_prot
|
||||||
%if %opt
|
%if %opt
|
||||||
%exclude %{_libdir}/ocaml/bin_prot/*.a
|
%exclude %{_libdir}/ocaml/bin_prot/*.a
|
||||||
|
@ -102,6 +110,11 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 25 2014 Jerry James <loganjerry@gmail.com> - 2.0.9-10
|
||||||
|
- Rebuild for dependencies
|
||||||
|
- Use native, rather than emulated endian-specific, 64-bit arithmetic
|
||||||
|
- Fix license handling
|
||||||
|
|
||||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-9
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue