Projects
Eulaceura:Factory
sigar
_service:obs_scm:sigar.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:sigar.spec of Package sigar
%global sigar_commit 58097d97438eee1276e113e1cf49e9c71b465006 %global sigar_hash %(c=%{sigar_commit}; echo ${c:0:7}) %global _docdir_fmt %{name} %global pomversion 1.6.4 Name: sigar Version: 1.6.5 Release: 1 Summary: System Information Gatherer And Reporter License: ASL 2.0 URL: https://github.com/hyperic/sigar # Once 1.6.5 is released, we can use tarballs from GitHub: # Source0: https://github.com/hyperic/sigar/archive/sigar-%{version}.tar.gz # # The diff from 1.6.4 is too huge to contemplate cherrypicking from Source0: https://github.com/hyperic/sigar/archive/%{sigar_hash}/sigar-%{version}-%{sigar_hash}.tar.gz Source1: https://dl.bintray.com/typesafe/maven-releases/org/hyperic/%{name}/%{pomversion}/%{name}-%{pomversion}.pom Patch100: bz714249-1-cpu-count.patch Patch101: bz746288-1-cpu-count-arch.patch Patch120: %{name}-%{version}-java_build.patch Patch130: aarch64-no-m64.patch Patch140: 0001-fix-major-and-minor-call-error.patch Patch141: 0002-fix-rpc-header-file-include-error.patch BuildRequires: gcc cmake BuildRequires: cpptasks javapackages-local ant perl libtirpc-devel BuildRequires: log4j12 mx4j %description The Sigar API provides a portable interface for gathering system information such as: - System memory, swap, CPU, load average, uptime, logins - Per-process memory, CPU, credential info, state, arguments, environment, open files - File system detection and metrics - Network interface detection, configuration info and metrics - Network route and connection tables This information is available in most operating systems, but each OS has their own way(s) providing it. SIGAR provides developers with one API to access this information regardless of the underlying platform. %package devel License: ASL 2.0 Summary: SIGAR Development package - System Information Gatherer And Reporter Requires: %{name} = %{version}-%{release} BuildArch: noarch %description devel Header files for developing against the Sigar API %package java Summary: SIGAR Java bindings %description java This package contains the Java bindings SIGAR. %package javadoc Summary: Javadoc for SIGAR Java bindings BuildArch: noarch %description javadoc This package contains javadoc for SIGAR Java bindings. %prep %setup -q -n %{name}-%{sigar_commit} %patch100 -p1 %patch101 -p1 %patch120 -p1 %patch130 -p1 %patch140 -p1 %patch141 -p1 find . -name "*.class" -delete find . -name "*.jar" -delete cp -p %{SOURCE1} bindings/java/pom.xml sed -i "s|%{pomversion}|%{version}|" bindings/java/pom.xml sed -i.log4j12 "s|log4j.jar|log4j12-1.2.17.jar|" bindings/java/build.xml %build sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' src/CMakeLists.txt mkdir build pushd build CFLAGS="${RPM_OPT_FLAGS} --std=gnu89" %cmake .. make %{?_smp_mflags} popd pushd bindings/java %mvn_file org.fusesource:%{name} %{name} %ant build javadoc %mvn_artifact pom.xml %{name}-bin/lib/%{name}.jar popd %install pushd build %cmake .. make install DESTDIR=$RPM_BUILD_ROOT popd pushd bindings/java %mvn_install -J build/javadoc mkdir -p %{buildroot}%{_libdir}/%{name} install -pm 755 %{name}-bin/lib/libsigar-*.so \ %{buildroot}%{_libdir}/%{name}/ popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc ChangeLog README NOTICE AUTHORS %{_libdir}/libsigar.so %files devel %{_includedir}/sigar*.h %license LICENSE %doc NOTICE AUTHORS %files java -f bindings/java/.mfiles %{_libdir}/%{name} %license LICENSE %doc NOTICE %files javadoc -f bindings/java/.mfiles-javadoc %license LICENSE %doc NOTICE bindings/java/examples %changelog * Fri Aug 07 2020 maminjie <maminjie1@huawei.com> - 1.6.5-1 - package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2