packages: ocaml-libvirt/ocaml-libvirt.spec (NEW)=?UTF-8?Q?=20?=- new
qboosh
qboosh at pld-linux.org
Sun Jul 1 12:38:45 CEST 2012
Author: qboosh Date: Sun Jul 1 10:38:45 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/ocaml-libvirt:
ocaml-libvirt.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/ocaml-libvirt/ocaml-libvirt.spec
diff -u /dev/null packages/ocaml-libvirt/ocaml-libvirt.spec:1.1
--- /dev/null Sun Jul 1 12:38:45 2012
+++ packages/ocaml-libvirt/ocaml-libvirt.spec Sun Jul 1 12:38:40 2012
@@ -0,0 +1,100 @@
+# $Revision$, $Date$
+Summary: libvirt binding for OCaml
+Summary(pl.UTF-8): Wiązania libvirt dla OCamla
+Name: ocaml-libvirt
+Version: 0.6.1.2
+Release: 1
+License: LGPL v2+
+Group: Libraries
+Source0: ftp://libvirt.org/libvirt/ocaml/%{name}-%{version}.tar.gz
+# Source0-md5: e6eb1943b2d0805566d691211bd0c151
+URL: http://libvirt.org/ocaml/
+BuildRequires: libvirt-devel >= 0.2.1
+BuildRequires: ocaml >= 3.04-7
+BuildRequires: ocaml-findlib
+%requires_eq ocaml-runtime
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ocaml-libvirt is a complete set of OCaml bindings around libvirt,
+exposing all known libvirt functionality to OCaml programs.
+
+This package contains files needed to run bytecode executables using
+the library.
+
+%description -l pl.UTF-8
+ocaml-libvirt to kompletny zestaw wiązań OCamla do libvirt,
+udostępniający całą znaną funkcjonalność libvirt programom w OCamlu.
+
+Ten pakiet zawiera binaria potrzebne do uruchamiania programów
+używających tej biblioteki.
+
+%package devel
+Summary: libvirt binding for OCaml - development part
+Summary(pl.UTF-8): Wiązania libvirt dla OCamla - cześć programistyczna
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+%requires_eq ocaml
+
+%description devel
+ocaml-libvirt is a complete set of OCaml bindings around libvirt,
+exposing all known libvirt functionality to OCaml programs.
+
+This package contains files needed to develop OCaml programs using
+the library.
+
+%description devel -l pl.UTF-8
+ocaml-libvirt to kompletny zestaw wiązań OCamla do libvirt,
+udostępniający całą znaną funkcjonalność libvirt programom w OCamlu.
+
+Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
+biblioteki.
+
+%prep
+%setup -q
+
+%build
+%configure
+
+%{__make} all opt \
+ CC="%{__cc}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib,stublibs}
+
+%{__make} install-opt \
+ OCAMLFIND_INSTFLAGS="-destdir $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib"
+
+mv -f $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib/libvirt,stublibs}/dllmllibvirt.so
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/*.ml $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README TODO.libvirt
+%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmllibvirt.so
+
+%files devel
+%defattr(644,root,root,755)
+%doc libvirt/libvirt*.mli
+%dir %{_libdir}/ocaml/site-lib/libvirt
+%{_libdir}/ocaml/site-lib/libvirt/META
+%{_libdir}/ocaml/site-lib/libvirt/libvirt*.cm[ix]
+%{_libdir}/ocaml/site-lib/libvirt/libmllibvirt.a
+%{_libdir}/ocaml/site-lib/libvirt/mllibvirt.a
+%{_libdir}/ocaml/site-lib/libvirt/mllibvirt.cm*
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2012/07/01 10:38:40 qboosh
+- new
================================================================
More information about the pld-cvs-commit
mailing list