-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display version and modify the packaging script (#639)
* Display version and modify the packaging script * Fix error msg
- Loading branch information
1 parent
e3b6e52
commit 2e51cd8
Showing
7 changed files
with
58 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,60 +6,51 @@ | |
%global project_name nebula | ||
|
||
Name: %{project_name} | ||
Version: @VERSION@ | ||
Release: @RELEASE@%{?dist} | ||
Version: %{_version} | ||
Release: %{_release}%{?dist} | ||
Summary: %{project_name} | ||
License: Apache 2.0 + Common Clause 1.0 | ||
# the url to get tar.gz | ||
#URL: http:// | ||
# tar name, this is a temp name | ||
Source: %{project_name}-@[email protected] | ||
|
||
# BuildRoot dir | ||
BuildRoot:%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | ||
|
||
# TODO: we should check dependence's version after adapt to different system versions | ||
BuildRequires: gcc, gcc-c++ | ||
BuildRequires: libstdc++-static | ||
BuildRequires: cmake | ||
BuildRequires: make | ||
BuildRequires: autoconf | ||
BuildRequires: automake | ||
BuildRequires: flex | ||
BuildRequires: gperf | ||
BuildRequires: libtool | ||
BuildRequires: bison | ||
BuildRequires: unzip | ||
BuildRequires: boost | ||
BuildRequires: boost-devel | ||
BuildRequires: boost-static | ||
BuildRequires: openssl | ||
BuildRequires: openssl-devel | ||
BuildRequires: libunwind | ||
BuildRequires: libunwind-devel | ||
BuildRequires: readline | ||
BuildRequires: ncurses | ||
BuildRequires: ncurses-devel | ||
BuildRequires: readline | ||
BuildRequires: readline-devel | ||
BuildRequires: python | ||
BuildRequires: java-1.8.0-openjdk | ||
BuildRequires: java-1.8.0-openjdk-devel | ||
#Requires: krb5 | ||
|
||
%description | ||
A high performance distributed graph database | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
cmake ./ | ||
cmake -DCMAKE_BUILD_TYPE=Release -DNEBULA_BUILD_VERSION=%{_version} -DCMAKE_INSTALL_PREFIX=%{_install_dir} ./ | ||
make -j2 | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
make install DESTDIR=%{buildroot} | ||
|
||
# After install, if config file is non-existent, copy default config file | ||
%post | ||
daemons=(metad graphd storaged) | ||
for daemon in ${daemons[@]} | ||
do | ||
if [[ ! -f %{_install_dir}/etc/nebula-${daemon}.conf ]]; then | ||
cp %{_install_dir}/etc/nebula-${daemon}.conf.default %{_install_dir}/etc/nebula-${daemon}.conf | ||
fi | ||
done | ||
|
||
%package metad | ||
Summary: nebula meta server daemon | ||
Group: Applications/Databases | ||
|
@@ -92,70 +83,41 @@ Group: Applications/Databases | |
# the files include exe, config file, scripts | ||
# base rpm include files | ||
%files | ||
%{_datadir}/nebula.service | ||
%{_datadir}/utils.sh | ||
%attr(0755,root,root) %{_datadir}/nebula.service | ||
%attr(0755,root,root) %{_datadir}/utils.sh | ||
|
||
# metad rpm include files | ||
%files metad | ||
%defattr(-,root,root,-) | ||
%{_bindir}/nebula-metad | ||
%{_sysconfdir}/nebula-metad.conf.default | ||
%{_datadir}/nebula-metad.service | ||
|
||
# after install , arg 1:install new packet, arg 2: update exist packet | ||
#%%post metad | ||
#%%systemd_post nebula-metad.service | ||
|
||
# before uninstall, arg 0:delete arg 1:update | ||
#%%preun metad | ||
#%%systemd_preun nebula-metad.service | ||
|
||
# upgrade, arg 0:delete arg 1:update | ||
#%%postun metad | ||
#%%systemd_postun nebula-metad.service | ||
%attr(0755,root,root) %{_bindir}/nebula-metad | ||
%attr(0644,root,root) %{_sysconfdir}/nebula-metad.conf.default | ||
%attr(0755,root,root) %{_datadir}/nebula-metad.service | ||
|
||
# graphd rpm include files | ||
%files graphd | ||
%defattr(-,root,root,-) | ||
%{_bindir}/nebula-graphd | ||
%config%{_sysconfdir}/nebula-graphd.conf.default | ||
%{_datadir}/nebula-graphd.service | ||
|
||
#%%post graphd | ||
#%%systemd_post nebula-graphd.service | ||
|
||
#%%preun graphd | ||
#%%systemd_preun nebula-graphd.service | ||
|
||
#%%postun graphd | ||
#%%systemd_postun nebula-graphd.service | ||
%attr(0755,root,root) %{_bindir}/nebula-graphd | ||
%attr(0644,root,root) %config%{_sysconfdir}/nebula-graphd.conf.default | ||
%attr(0755,root,root) %{_datadir}/nebula-graphd.service | ||
|
||
# storaged rpm include files | ||
%files storaged | ||
%defattr(-,root,root,-) | ||
%{_bindir}/nebula-storaged | ||
%config%{_sysconfdir}/nebula-storaged.conf.default | ||
%{_datadir}/nebula-storaged.service | ||
|
||
#%%post storaged | ||
#%%systemd_post nebula-storaged.service | ||
|
||
#%%preun storaged | ||
#%%systemd_preun nebula-storaged.service | ||
|
||
#%%postun storaged | ||
#%%systemd_postun nebula-storaged.service | ||
%attr(0755,root,root) %{_bindir}/nebula-storaged | ||
%attr(0644,root,root) %config%{_sysconfdir}/nebula-storaged.conf.default | ||
%attr(0755,root,root) %{_datadir}/nebula-storaged.service | ||
|
||
%files nebula | ||
%defattr(-,root,root,-) | ||
%{_bindir}/nebula | ||
%{_resourcesdir}/completion.json | ||
%attr(0755,root,root) %{_bindir}/nebula | ||
%attr(0644,root,root) %{_resourcesdir}/completion.json | ||
|
||
|
||
# storage_perf rpm | ||
#%%files storage_perf | ||
#%%defattr(-,root,root,-) | ||
#%%{_bindir}/storage_perf | ||
|
||
%debug_package | ||
|
||
# missing third-part ids | ||
%undefine _missing_build_ids_terminate_build | ||
|
||
%changelog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
add_library(hdfs_helper_obj OBJECT HdfsCommandHelper.cpp) | ||
|
||
add_dependencies(process_obj fs_obj base_obj) | ||
add_dependencies(hdfs_helper_obj fs_obj base_obj) | ||
|
||
add_subdirectory(test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters