package created using the webbuild interface [release 1.0.0-1mamba;Sun May 05 2019]
This commit is contained in:
parent
572dddf1fc
commit
5d4f68ad56
54
ocaml-topkg.spec
Normal file
54
ocaml-topkg.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: ocaml-topkg
|
||||
Version: 1.0.0
|
||||
Release: 1mamba
|
||||
Summary: The transitory OCaml software packager
|
||||
Group: System/Libraries/OCaml
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://erratique.ch/software/topkg
|
||||
## GITSOURCE https://github.com/dbuenzli/topkg.git v1.0.0
|
||||
Source: https://github.com/dbuenzli/topkg.git/v%{version}/topkg-%{version}.tar.bz2
|
||||
License: ISC License
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: opam
|
||||
BuildRequires: ocaml-result
|
||||
Requires: ocaml-result
|
||||
Requires: ocaml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
The transitory OCaml software packager.
|
||||
|
||||
%prep
|
||||
%setup -q -n topkg-%{version}
|
||||
|
||||
%build
|
||||
pkg/pkg.ml build --pkg-name topkg
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
opam-installer \
|
||||
--prefix=%{buildroot}%{_prefix} \
|
||||
--libdir=%{buildroot}$(ocamlc -where) \
|
||||
--docdir=%{buildroot}%{_docdir}
|
||||
|
||||
install -dm755 %{buildroot}%{_datadir}/licenses/ocaml-topkg
|
||||
mv %{buildroot}%{_docdir}/topkg/LICENSE.md %{buildroot}%{_datadir}/licenses/ocaml-topkg/LICENSE.md
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/ocaml/topkg
|
||||
%{_libdir}/ocaml/topkg/*
|
||||
%dir %{_datadir}/doc/topkg
|
||||
%{_datadir}/doc/topkg/*
|
||||
%{_datadir}/licenses/ocaml-topkg/LICENSE.md
|
||||
|
||||
%changelog
|
||||
* Sun May 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user