From ed1ca61ea501a9fbc891ed39b11b5f49f30d1d46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 24 Nov 2013 01:45:34 +0200 Subject: [PATCH] use modname macro --- ocaml-ocamlfuse.spec | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/ocaml-ocamlfuse.spec b/ocaml-ocamlfuse.spec index 34f080e..847c19c 100644 --- a/ocaml-ocamlfuse.spec +++ b/ocaml-ocamlfuse.spec @@ -1,18 +1,16 @@ -# disable debug - not useful? -%define debug_package %{nil} - # # Conditional build: %bcond_with opt # build opt -Summary: ocamlfuse binding for OCaml -Summary(pl.UTF-8): Wiązania ocamlfuse dla OCamla -Name: ocaml-ocamlfuse +%define modname gapi-ocaml +Summary: %{modname} binding for OCaml +Summary(pl.UTF-8): Wiązania %{modname} dla OCamla +Name: ocaml-%{modname} Version: 2.7 Release: 1 License: GPL v2 Group: Libraries -Source0: http://downloads.sourceforge.net/ocamlfuse/ocamlfuse-%{version}-1.tar.gz +Source0: http://downloads.sourceforge.net/ocamlfuse/%{modname}-%{version}-1.tar.gz # Source0-md5: cb9cbe4fafb36ead1b78faaacc26f3e3 URL: http://sourceforge.net/apps/mediawiki/ocamlfuse/ BuildRequires: libfuse-devel @@ -22,6 +20,8 @@ BuildRequires: ocaml-findlib >= 1.4 %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define debug_package %{nil} + %description OcamlFuse is a binding to the high-level part of the fuse library, allowing you to implement linux filesystems in OCaml. Other operating @@ -57,7 +57,7 @@ tej biblioteki. %prep %setup -qc -mv ocamlfuse/* . +mv %{modname}/* . %build %{__make} all %{?with_opt:opt} -C lib \ @@ -67,17 +67,17 @@ mv ocamlfuse/* . rm -rf $RPM_BUILD_ROOT cd lib -install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{ocamlfuse,stublibs} -install *.cm[ixa]* *.a dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlfuse +install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{%{modname},stublibs} +install *.cm[ixa]* *.a dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/%{modname} install dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs -install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlfuse -cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlfuse/META < $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{modname}/META <