File shine.spec of Package shine-2.0

Name:           shine
Version:        2.0.0
Release:        0
Summary:        Fixed-point mp3 encoder
License:        GPL-2.0
Group:          System/Libraries
BuildRequires:  ocaml
BuildRequires:  ocaml-ocamldoc
BuildRequires:  ocaml-compiler-libs-devel
BuildRequires:  ocaml-camlp4-devel
BuildRequires:  ocaml-findlib
BuildRequires:  pkg-config

Shine is a library for encoding mp3 data which is implemented in fixed-point arithmetic.
The library can thus be used to implement super fast mp3 encoding on architectures without a FPU,
such as `armel`, etc.. In fact, it is also super fast on architectures with a FPU!

%package        devel
Summary:        Development files for %{name}
Group:          System/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%setup -q

#./configure --libdir=%{_libdir} --bindir=%{_bindir} --includedir=%{_includedir} 
make all %{?_smp_mflags}

rm -rf %{buildroot}
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/%{modname}
make install


%files devel
%dir %{_includedir}/%{name}