89 lines
2.5 KiB
RPMSpec
89 lines
2.5 KiB
RPMSpec
%define ocamlpck shine
|
|
|
|
Name: ocaml-shine
|
|
Version: 0.2.3
|
|
Release: 2mamba
|
|
Summary: OCaml binding to the fixed-point mp3 encoding library shine
|
|
Group: Development/Bindings
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/savonet/ocaml-shine
|
|
Source: https://github.com/savonet/ocaml-shine.git/v%{version}/ocaml-shine-%{version}.tar.bz2
|
|
Patch0: ocaml-shine-0.1.1-libshine-3.0.0.patch
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libshine-devel
|
|
BuildRequires: ocaml-runtime
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: ocaml >= 4.14.1
|
|
BuildRequires: dune
|
|
BuildRequires: ocaml-ocamldoc
|
|
BuildRequires: libshine-devel >= 3.0.0-1mamba
|
|
|
|
%description
|
|
This package contains an OCaml interface for the shine fixed-point encoding library.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains libraries and signature files for developing applications that use %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch0 -p1
|
|
|
|
%build
|
|
dune build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
DESTDIR=%{buildroot} dune install --prefix "/usr" --libdir "%{_libdir}/ocaml"
|
|
|
|
rm -rf %{buildroot}/usr/doc
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}
|
|
%{_libdir}/ocaml/%{ocamlpck}/*
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli
|
|
%{_libdir}/ocaml/stublibs/*.so*
|
|
%doc COPYING
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.mli
|
|
%doc CHANGES README.md
|
|
%doc examples/
|
|
|
|
%changelog
|
|
* Fri Jul 07 2023 Sdk Build System <sdk@mambasoft.it> 0.2.3-2mamba
|
|
- rebuilt with ocaml 4.14.1
|
|
|
|
* Sat Dec 17 2022 Automatic Build System <autodist@mambasoft.it> 0.2.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jan 30 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.2-1mamba
|
|
- update to 0.2.2
|
|
|
|
* Thu May 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1-2mamba
|
|
- rebuilt by autoport with build requirements: libshine-devel>=3.0.0-1mamba
|
|
|
|
* Thu Jun 27 2013 openmamba WebBuild System <webbuild@openmamba.org> 0.1.1-1mamba
|
|
- package created by davide using the webbuild interface
|