Rebuild for OCaml 3.12.0.
This commit is contained in:
parent
59924fdaf5
commit
457c88d475
|
@ -1 +1,2 @@
|
||||||
cryptokit-1.3.tar.gz
|
cryptokit-1.3.tar.gz
|
||||||
|
/cryptokit-1.4.tar.gz
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
name="cryptokit"
|
|
||||||
version="@VERSION@"
|
|
||||||
description="Cryptographic primitives"
|
|
||||||
requires="num unix"
|
|
||||||
archive(byte)="cryptokit.cma"
|
|
||||||
archive(native)="cryptokit.cmxa"
|
|
||||||
directory="+cryptokit"
|
|
|
@ -2,19 +2,17 @@
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
Name: ocaml-cryptokit
|
Name: ocaml-cryptokit
|
||||||
Version: 1.3
|
Version: 1.4
|
||||||
Release: 11%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: OCaml library of cryptographic and hash functions
|
Summary: OCaml library of cryptographic and hash functions
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: LGPLv2 with exceptions
|
License: LGPLv2 with exceptions
|
||||||
URL: http://pauillac.inria.fr/~xleroy/software.html
|
URL: http://forge.ocamlcore.org/projects/cryptokit/
|
||||||
Source0: http://caml.inria.fr/distrib/bazar-ocaml/cryptokit-%{version}.tar.gz
|
Source0: https://forge.ocamlcore.org/frs/download.php/460/cryptokit-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
ExcludeArch: sparc64 s390 s390x
|
ExcludeArch: sparc64 s390 s390x
|
||||||
|
|
||||||
Source1: cryptokit-META
|
|
||||||
|
|
||||||
BuildRequires: ocaml, zlib-devel, chrpath
|
BuildRequires: ocaml, zlib-devel, chrpath
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
@ -57,17 +55,17 @@ developing applications that use %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n cryptokit-%{version}
|
%setup -q -n cryptokit-%{version}
|
||||||
rm doc/.cvsignore
|
./configure --destdir $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make all
|
# Some sort of circular dependency, so sometimes the first make fails.
|
||||||
%if %opt
|
# Just run make twice.
|
||||||
make allopt
|
make ||:
|
||||||
%endif
|
make
|
||||||
|
|
||||||
chrpath --delete dllcryptokit.so
|
chrpath --delete _build/src/dllcryptokit.so
|
||||||
strip dllcryptokit.so
|
strip _build/src/dllcryptokit.so
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
@ -77,14 +75,11 @@ make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ocaml
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit/stublibs
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ocaml/stublibs
|
||||||
make INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit install
|
export DESTDIR=$RPM_BUILD_ROOT
|
||||||
mv $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit/stublibs \
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT/%{_libdir}/ocaml
|
||||||
$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
make install
|
||||||
|
|
||||||
sed 's/@VERSION@/%{version}/' < %{SOURCE1} \
|
|
||||||
> $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit/META
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
@ -93,29 +88,37 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README LICENSE
|
%doc LICENSE.txt
|
||||||
%{_libdir}/ocaml/cryptokit
|
%{_libdir}/ocaml/cryptokit
|
||||||
%if %opt
|
%if %opt
|
||||||
%exclude %{_libdir}/ocaml/cryptokit/*.a
|
%exclude %{_libdir}/ocaml/cryptokit/*.a
|
||||||
%exclude %{_libdir}/ocaml/cryptokit/*.cmxa
|
%exclude %{_libdir}/ocaml/cryptokit/*.cmxa
|
||||||
%exclude %{_libdir}/ocaml/cryptokit/*.cmx
|
#%exclude %{_libdir}/ocaml/cryptokit/*.cmx
|
||||||
%endif
|
%endif
|
||||||
%exclude %{_libdir}/ocaml/cryptokit/*.mli
|
%exclude %{_libdir}/ocaml/cryptokit/*.mli
|
||||||
%{_libdir}/ocaml/stublibs/*.so
|
%{_libdir}/ocaml/stublibs/*.so*
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE Changes doc
|
%doc README.txt LICENSE.txt Changes
|
||||||
%if %opt
|
%if %opt
|
||||||
%{_libdir}/ocaml/cryptokit/*.a
|
%{_libdir}/ocaml/cryptokit/*.a
|
||||||
%{_libdir}/ocaml/cryptokit/*.cmxa
|
%{_libdir}/ocaml/cryptokit/*.cmxa
|
||||||
%{_libdir}/ocaml/cryptokit/*.cmx
|
#%{_libdir}/ocaml/cryptokit/*.cmx
|
||||||
%endif
|
%endif
|
||||||
%{_libdir}/ocaml/cryptokit/*.mli
|
%{_libdir}/ocaml/cryptokit/*.mli
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 5 2011 Richard W.M. Jones <rjones@redhat.com> - 1.4-1
|
||||||
|
- New upstream version 1.4.
|
||||||
|
- Project has moved to a new location.
|
||||||
|
- META file is included in the project.
|
||||||
|
- Rebuild for OCaml 3.12.0.
|
||||||
|
- Build system changed.
|
||||||
|
- *.cmx files are no longer installed during build.
|
||||||
|
|
||||||
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3-11
|
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3-11
|
||||||
- Rebuild for OCaml 3.11.2.
|
- Rebuild for OCaml 3.11.2.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue