diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2a41b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ocaml-obuild-0.1.8.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index c3716f4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ocaml-obuild - -The ocaml-obuild package \ No newline at end of file diff --git a/ocaml-obuild.spec b/ocaml-obuild.spec new file mode 100644 index 0000000..c7d4f6e --- /dev/null +++ b/ocaml-obuild.spec @@ -0,0 +1,67 @@ +%global debug_package %{nil} + +Name: ocaml-obuild +Version: 0.1.8 +Release: 1%{?dist} +Summary: Simple package build system for OCaml + +License: BSD +URL: https://github.com/ocaml-obuild/obuild +Source0: https://github.com/ocaml-obuild/obuild/archive/obuild-v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: ocaml +BuildRequires: help2man + +%description +A parallel, incremental and declarative build system for OCaml. + +The goal is to make a very simple build system for users and developers of +OCaml libraries and programs. + +Obuild acts as a building black box: users only declare what they want to +build and with which sources; the build system will consistently build it. + +The design is based on Haskell's Cabal and borrows most of the layout and +way of working, adapting parts where necessary to fully support OCaml. + + +%prep +%setup -q -n obuild-obuild-v%{version} + + +%build +./bootstrap + + +%install +mkdir -p $RPM_BUILD_ROOT%{_bindir} +cp "dist/build/obuild/obuild" "dist/build/obuild-simple/obuild-simple" "$RPM_BUILD_ROOT%{_bindir}" + +# generate manpages +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +help2man \ + --output "$RPM_BUILD_ROOT%{_mandir}/man1/obuild.1" \ + --name "parallel, incremental and declarative build system for OCaml" \ + --help-option "" \ + --no-discard-stderr \ + --no-info \ + dist/build/obuild/obuild +help2man \ + --output "$RPM_BUILD_ROOT%{_mandir}/man1/obuild-simple.1" \ + --name "simple package build system for OCaml" \ + --version-string " " \ + --no-discard-stderr \ + --no-info \ + dist/build/obuild-simple/obuild-simple + + +%files +%doc README.md OBUILD_SPEC.md DESIGN.md +%license LICENSE +%{_bindir}/* +%{_mandir}/man1/*.1* + + +%changelog +* Fri Nov 17 2017 Andy Li - 0.1.8-1 +- Initial RPM release. diff --git a/sources b/sources new file mode 100644 index 0000000..227f43e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ocaml-obuild-0.1.8.tar.gz) = b6398c399bbe8e7a680f46a0b0463e272d9a167846561624849d2e4d37637dca018b674bcab8626de9eafe8af1d5815dcbec9cb1362407eb58df8edc2d405c4a