diff --git a/rocksdb.spec b/rocksdb.spec new file mode 100644 index 0000000000000000000000000000000000000000..5e1f0350b397e908b84419e0978eed0487208108 --- /dev/null +++ b/rocksdb.spec @@ -0,0 +1,43 @@ +Name: rocksdb +Version: 8.1.1 +Release: 1%{?dist} +Summary: A Persistent Key-Value Store for Flash and RAM Storage + +License: GPLv2 or ASL 2.0 and BSD +URL: https://www.example.com +Source0: %{name}.tar.gz + +BuildRequires: gcc gcc-c++ cmake make + +%description +A Persistent Key-Value Store for Flash and RAM Storage +%prep +tar -zxvf ../SOURCES/%{name}.tar.gz -C %_builddir/ + + +%build +cd %_builddir/%{name} +cmake -S . -B linux-build +cmake --build linux-build -j48 --verbose +#cmake --install linux-build/ + +%install +cd %_builddir/%{name}/linux-build +pwd +make install DESTDIR=%{buildroot} +mkdir %{buildroot}/usr/local +mv %{buildroot}/usr/lib64 %{buildroot}/usr/local +#cd build + +#make install BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir} +#make install DESTDIR=%{buildroot}%{_bindir}/%{name} +#make install DESTDIR=%{buildroot} +%files +/usr + + + + +%changelog +* Wed Jun 14 2023 zhaoliang - 8.1.1-1 +- create diff --git a/rocksdb.tar.gz b/rocksdb.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8d8de7bbd0bc0f0460739a9fb39ef334a3f9dedc Binary files /dev/null and b/rocksdb.tar.gz differ