[packages/ocaml-graph] - up to 1.8.8
baggins
baggins at pld-linux.org
Mon Mar 29 10:40:28 CEST 2021
commit b4147ee2594ebe41a17d71bbd5a91ab5958079c8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 29 10:39:54 2021 +0200
- up to 1.8.8
ocaml-graph.spec | 57 +++++++++++++++++++++++++-------------------------------
1 file changed, 25 insertions(+), 32 deletions(-)
---
diff --git a/ocaml-graph.spec b/ocaml-graph.spec
index 4b593f8..9411eef 100644
--- a/ocaml-graph.spec
+++ b/ocaml-graph.spec
@@ -7,21 +7,21 @@
%undefine with_ocaml_opt
%endif
+%define _enable_debug_packages 0
+
Summary: OCaml library for arc and node graphs
Name: ocaml-graph
-Version: 1.8.2
-Release: 7
+Version: 1.8.8
+Release: 1
License: LGPLv2 with exceptions
Group: Libraries
Source0: http://ocamlgraph.lri.fr/download/ocamlgraph-%{version}.tar.gz
-# Source0-md5: efa4394bc4651c90de443ff61c7477e6
+# Source0-md5: 9d71ca69271055bd22d0dfe4e939831a
URL: http://ocamlgraph.lri.fr/
BuildRequires: libart_lgpl-devel
-BuildRequires: libgnomecanvas-devel
+BuildRequires: ocaml >= 3.04-7
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-lablgtk2-devel
-BuildRequires: ocaml-lablgtk2-gnome-devel
-BuildRequires: ocaml >= 3.04-7
%requires_eq ocaml-runtime
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -31,15 +31,14 @@ structures. It also provides implementations for a number of classical
graph algorithms like Kruskal's algorithm for MSTs, topological
ordering of DAGs, Dijkstra's shortest paths algorithm, and
Ford-Fulkerson's maximal-flow algorithm to name a few. The algorithms
-and data structures are written functorially for maximal
-reusability. Also has input and output capability for Graph Modeling
-Language file format and Dot and Neato graphviz (graph visualization)
-tools.
+and data structures are written functorially for maximal reusability.
+Also has input and output capability for Graph Modeling Language file
+format and Dot and Neato graphviz (graph visualization) tools.
%package devel
Summary: OCaml library for arc and node graphs - development files
Group: Development/Libraries
-%requires_eq ocaml
+%requires_eq ocaml
%description devel
Ocamlgraph provides several different implementations of graph data
@@ -47,10 +46,9 @@ structures. It also provides implementations for a number of classical
graph algorithms like Kruskal's algorithm for MSTs, topological
ordering of DAGs, Dijkstra's shortest paths algorithm, and
Ford-Fulkerson's maximal-flow algorithm to name a few. The algorithms
-and data structures are written functorially for maximal
-reusability. Also has input and output capability for Graph Modeling
-Language file format and Dot and Neato graphviz (graph visualization)
-tools.
+and data structures are written functorially for maximal reusability.
+Also has input and output capability for Graph Modeling Language file
+format and Dot and Neato graphviz (graph visualization) tools.
This package contains files needed to develop OCaml programs using
Ocamlgraph library.
@@ -66,33 +64,29 @@ Ocamlgraph library.
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir}/ocaml/ocamlgraph,%{_examplesdir}/%{name}-%{version}}
-install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{ocamlgraph,stublibs}
-install *.cm[ixao]* %{?with_ocaml_opt:*.a} $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlgraph
+cp -p *.cm[ixao]* %{?with_ocaml_opt:*.a} $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlgraph
+cp -p META $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlgraph
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlgraph
-cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlgraph/META <<EOF
-requires = ""
-version = "%{version}"
-description = "Generic Graph Library"
-directory = "+ocamlgraph"
-archive(byte) = "graph.cma"
-archive(native) = "graph.cmxa"
-linkopts = ""
-EOF
-
%clean
rm -rf $RPM_BUILD_ROOT
-%files devel
+%files
%defattr(644,root,root,755)
%doc CHANGES CREDITS FAQ
-%doc LICENSE lib/*.mli src/*.mli
%dir %{_libdir}/ocaml/ocamlgraph
+%{_libdir}/ocaml/ocamlgraph/META
%{_libdir}/ocaml/ocamlgraph/*.cma
+%if %{with ocaml_opt}
+%attr(755,root,root) %{_libdir}/ocaml/ocamlgraph/*.cmxs
+%endif
+
+%files devel
+%defattr(644,root,root,755)
+%doc LICENSE lib/*.mli src/*.mli
%{_libdir}/ocaml/ocamlgraph/*.cmo
%{_libdir}/ocaml/ocamlgraph/*.cm[ix]
%if %{with ocaml_opt}
@@ -100,4 +94,3 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/ocaml/ocamlgraph/*.cmxa
%endif
%{_examplesdir}/%{name}-%{version}
-%{_libdir}/ocaml/site-lib/ocamlgraph
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-graph.git/commitdiff/b4147ee2594ebe41a17d71bbd5a91ab5958079c8
More information about the pld-cvs-commit
mailing list