Initial import.

This commit is contained in:
Richard W.M. Jones 2015-07-27 21:52:22 +01:00
parent 32ed7016c6
commit ccbb8abec3
3 changed files with 84 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/ocaml-base64-2.0.0.tar.gz

82
ocaml-base64.spec Normal file
View File

@ -0,0 +1,82 @@
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
Name: ocaml-base64
Version: 2.0.0
Release: 2%{?dist}
Summary: Base64 library for OCaml
License: ISC
URL: https://github.com/mirage/ocaml-base64
Source0: https://github.com/mirage/ocaml-base64/archive/v2.0.0/ocaml-base64-2.0.0.tar.gz
BuildRequires: ocaml
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-findlib
%description
Base64 is a group of similar binary-to-text encoding schemes that
represent binary data in an ASCII string format by translating it into
a radix-64 representation. It is specified in RFC 4648.
%package devel
Summary: Development files for %{name}.
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for %{name}.
%prep
%setup -q
%build
./configure
make
%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
make install INSTALLFLAGS=destdir=$DESTDIR
# Delete a few files we don't really want.
pushd $OCAMLFIND_DESTDIR/base64
rm b64.annot b64.cmt b64.cmti
popd
%files
%doc README.md
%{_libdir}/ocaml/base64
%if %opt
%exclude %{_libdir}/ocaml/base64/*.a
%exclude %{_libdir}/ocaml/base64/*.cmx
%exclude %{_libdir}/ocaml/base64/*.cmxa
%exclude %{_libdir}/ocaml/base64/*.cmxs
%endif
%exclude %{_libdir}/ocaml/base64/*.mli
%files devel
%doc CHANGES.md
%if %opt
%{_libdir}/ocaml/base64/*.a
%{_libdir}/ocaml/base64/*.cmx
%{_libdir}/ocaml/base64/*.cmxa
%{_libdir}/ocaml/base64/*.cmxs
%endif
%{_libdir}/ocaml/base64/*.mli
%changelog
* Sat Jul 25 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-2
- Make -devel package depend on fully versioned base package.
- Remove duplicate META file.
* Fri Jul 24 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-1
- New package required by js-of-ocaml.

View File

@ -0,0 +1 @@
52b9736839c83cf88a9fb1373cf2e35c ocaml-base64-2.0.0.tar.gz