Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1205999 OBS-URL: https://build.opensuse.org/package/show/Java:packages/webgraph?expand=0&rev=1
91 lines
2.7 KiB
RPMSpec
91 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package webgraph
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: webgraph
|
|
Version: 3.6.10
|
|
Release: 0
|
|
Summary: A framework for graph compression
|
|
License: LGPL-2.1-only
|
|
Group: Development/Libraries/Java
|
|
URL: http://%{name}.di.unimi.it/
|
|
Source0: https://github.com/vigna/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: aqute-bnd
|
|
BuildRequires: fdupes
|
|
BuildRequires: ivy-local
|
|
BuildRequires: mvn(ch.qos.logback:logback-classic)
|
|
BuildRequires: mvn(ch.qos.logback:logback-core)
|
|
BuildRequires: mvn(it.unimi.dsi:dsiutils)
|
|
BuildRequires: mvn(it.unimi.dsi:fastutil)
|
|
BuildRequires: mvn(it.unimi.dsi:sux4j)
|
|
BuildRequires: mvn(junit:junit)
|
|
BuildRequires: mvn(net.sf.jung:jung-api)
|
|
BuildRequires: mvn(net.sf.jung:jung-io)
|
|
BuildRequires: mvn(org.apache.commons:commons-math3)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
WebGraph is a framework for graph compression aimed at studying web graphs. It
|
|
provides simple ways to manage very large graphs, exploiting modern compression
|
|
techniques.
|
|
|
|
This version of WebGraph is limited to graphs with at most 2^31 nodes. For
|
|
larger graphs, have a look at the big version.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
rm -f bnd/*.jar
|
|
|
|
echo '-reproducible: true' >>%{name}.bnd
|
|
|
|
%build
|
|
%{ant} -Divy.mode=local \
|
|
ivy-setupjars osgi jar ivy-pom javadoc
|
|
|
|
%install
|
|
# Jar
|
|
install -dm0755 %{buildroot}/%{_javadir}
|
|
install -m0644 dist/lib/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
# POM
|
|
install -dm0755 %{buildroot}%{_mavenpomdir}
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
|
|
# Javadoc
|
|
install -dm0755 %{buildroot}/%{_javadocdir}/%{name}
|
|
cp -pr docs/* %{buildroot}/%{_javadocdir}/%{name}
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license COPYING.LESSER LICENSE-2.0.txt
|
|
%doc CHANGES README.md
|
|
|
|
%files javadoc
|
|
%license COPYING.LESSER LICENSE-2.0.txt
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|