From 59482016c2b66a34f59322f34b44d3f2c78582d9 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 08:03:43 +0100 Subject: [PATCH] package created by autospec [release 0.3.0-1mamba;Sun Jun 23 2013] --- README.md | 2 ++ ocaml-theora.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 ocaml-theora.spec diff --git a/README.md b/README.md index 5460336..7b8fc2a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocaml-theora +OCaml bindings to the theora library. + diff --git a/ocaml-theora.spec b/ocaml-theora.spec new file mode 100644 index 0000000..a400cd6 --- /dev/null +++ b/ocaml-theora.spec @@ -0,0 +1,84 @@ +%define ocamlpck theora + +Name: ocaml-theora +Version: 0.3.0 +Release: 1mamba +Summary: OCaml bindings to the theora library +Group: Development/Bindings +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://savonet.sourceforge.net/ +Source: http://sourceforge.net/projects/savonet/files/ocaml-theora/%{version}/ocaml-theora-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libogg-devel +BuildRequires: libtheora-devel +## AUTOBUILDREQ-END +BuildRequires: gcc +BuildRequires: pkg-config +BuildRequires: ocaml +BuildRequires: ocaml-findlib +BuildRequires: ocaml-ogg-devel +Requires: ocaml-ogg +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +OCaml bindings to the theora 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}. + +%prep +%setup -q + +%build +./configure \ + --prefix=%{_prefix} \ + --disable-ldconf + +make +make doc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +export DESTDIR=%{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/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 +%doc doc/html/ +%doc examples/ + +%changelog +* Sun Jun 23 2013 Davide Madrisan 0.3.0-1mamba +- package created by autospec