代码拉取完成,页面将自动刷新
同步操作将从 src-oepkgs/orientdb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: orientdb
Version: 3.2.5
Release: 1%{?dist}
Summary: xx
Source0: %{name}-%{version}.tar.gz
License: GPL
URL: https://github.com/orientechnologies/orientdb
BuildRequires: java-1.8.0-openjdk, javacc
Requires: make
%description
%prep
%autosetup
%build
%global debug_package %{nil}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/usr/local/bin/
#wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.1.0-beta1/orientdb-3.1.0-beta1.tar.gz -O orientdb-community-3.1.0-beta1.tar.gz
cp -r ./orientdb-3.2.5 $RPM_BUILD_ROOT/usr/local/
%post
#cp /usr/local/orientdb-3.2.5/bin/orientdb.sh /etc/init.d/orientdb
tee -a /etc/profile <<EOF
export ORIENTDB_HOME=/usr/local/orientdb-3.2.5
EOF
source /etc/profile
tee -a /etc/profile <<EOF
export PATH=$ORIENTDB_HOME/bin:$PATH
EOF
source /etc/profile
cp /usr/local/orientdb-3.2.5/bin/orientdb.sh /usr/local/orientdb-3.2.5/bin/orientdb
ln -s /usr/local/orientdb-3.2.5/bin/orientdb /etc/init.d/
service start orientdb
systemctl daemon-reload
systemctl start orientdb.service
systemctl enable orientdb.service
%postun
rm -rf /usr/local/orientdb-3.2.5
rm -rf /etc/init.d/orientdb
sed -i '/orientdb/d' /etc/profile
source /etc/profile
%files
%defattr(-,root,root,-)
%license
%doc
/usr/local/orientdb-3.2.5
%changelog
* Thu Feb 17 2022 root
-
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。