1 Star 0 Fork 2

allen7593/orientdb

forked from src-oepkgs/orientdb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
orientdb-3.2.5.spec 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
张一诺 提交于 2022-12-06 17:35 . 3.2.5
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
-
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/allen7593/orientdb.git
git@gitee.com:allen7593/orientdb.git
allen7593
orientdb
orientdb
master

搜索帮助