2024-01-06 07:49:09 +01:00
|
|
|
%define ocamlpck aacplus
|
|
|
|
|
|
|
|
Name: ocaml-aacplus
|
2024-01-06 07:49:09 +01:00
|
|
|
Version: 0.2.2
|
2024-01-06 07:49:09 +01:00
|
|
|
Release: 3mamba
|
2024-01-06 07:49:09 +01:00
|
|
|
Summary: OCaml bindings for libaacplus
|
|
|
|
Group: Development/Bindings
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 07:49:09 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/savonet/ocaml-aacplus
|
|
|
|
Source: https://github.com/savonet/ocaml-aacplus.git/%{version}/ocaml-aacplus-%{version}.tar.bz2
|
2024-01-06 07:49:09 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libaacplus-devel
|
|
|
|
BuildRequires: libfftw-devel
|
2024-01-06 07:49:09 +01:00
|
|
|
BuildRequires: ocaml
|
2024-01-06 07:49:09 +01:00
|
|
|
BuildRequires: ocaml-runtime
|
2024-01-06 07:49:09 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 07:49:09 +01:00
|
|
|
BuildRequires: ocaml >= 4.14.1
|
2024-01-06 07:49:09 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains an OCaml interface for the AAC+ encoding library, otherwise known as libaacplus.
|
|
|
|
|
|
|
|
%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}.
|
|
|
|
|
2024-01-06 07:49:09 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 07:49:09 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 07:49:09 +01:00
|
|
|
%global __requires_exclude ^ocaml.*Aacplus_dynlink.*$
|
|
|
|
|
|
|
|
./bootstrap
|
2024-01-06 07:49:09 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 07:49:09 +01:00
|
|
|
%configure \
|
|
|
|
--host= \
|
|
|
|
LDFLAGS="-L%{_libdir}"
|
2024-01-06 07:49:09 +01:00
|
|
|
|
2024-01-06 07:49:09 +01:00
|
|
|
%make -j1
|
|
|
|
%make -j1 doc
|
2024-01-06 07:49:09 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir)
|
|
|
|
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
|
|
|
|
|
|
|
|
install -d $OCAMLFIND_DESTDIR/%{ocamlpck}
|
|
|
|
install -d $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/META
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cma
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmi
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxs
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so*
|
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.mli
|
|
|
|
%doc CHANGES README
|
|
|
|
%doc doc/html/
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:49:09 +01:00
|
|
|
* Sat Jul 08 2023 Sdk Build System <sdk@mambasoft.it> 0.2.2-3mamba
|
|
|
|
- rebuilt with ocaml 4.14.1
|
|
|
|
|
2024-01-06 07:49:09 +01:00
|
|
|
* Sun Feb 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.2-2mamba
|
|
|
|
- exclude unclear automatic requirement for ocaml(Aacplus_dynlink)
|
|
|
|
|
|
|
|
* Fri Feb 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.2-1mamba
|
|
|
|
- update to 0.2.2
|
|
|
|
|
2024-01-06 07:49:09 +01:00
|
|
|
* Tue Jun 25 2013 Davide Madrisan <davide.madrisan@gmail.com> 0.2.1-1mamba
|
|
|
|
- package created by autospec
|