Adding the `gflags` and `rocksdb` packages. (#183)

* Adding the 'rocksdb' package.

* Adding the 'gflags' package.
This commit is contained in:
Pawel Winogrodzki 2020-10-08 20:15:12 +02:00 коммит произвёл GitHub
Родитель 9e6952ff3c
Коммит 71ce404b2b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 163 добавлений и 1 удалений

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,5 @@
{
"Signatures": {
"gflags-2.2.2.tar.gz": "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf"
}
}

65
SPECS/gflags/gflags.spec Normal file
Просмотреть файл

@ -0,0 +1,65 @@
Name: gflags
Summary: The gflags package contains a C++ library that implements commandline flags processing.
Version: 2.2.2
Release: 3%{?dist}
License: BSD
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://gflags.github.io/gflags/
#Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: build-essential
%description
The gflags package contains a C++ library that implements commandline flags processing.
It includes built-in support for standard types such as string and the ability to define
flags in the source file in which they are used.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}
%description devel
Development files for %{name}
%prep
%setup -q
%build
mkdir build
cd build
%cmake -DBUILD_SHARED_LIBS=ON ..
make %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
# Remove unused files
rm %{buildroot}/root/.cmake/packages/gflags/*
%files
%doc README.md
%license COPYING.txt
%{_bindir}/*
%{_libdir}/*.so*
%files devel
%{_includedir}/*
%{_libdir}/cmake/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/gflags.pc
%changelog
* Thu Oct 08 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 2.2.2-3
- License verified.
- Added %%license macro.
- Added debug package.
- Fixed extra file exclude.
- Fixed 'Source0' URL.
* Fri Jun 05 2020 Jonathan Chiu <jochi@microsoft.com> 2.2.2-2
- Exclude extra files
* Thu Apr 09 2020 Jonathan Chiu <jochi@microsoft.com> 2.2.2-1
- Original version for CBL-Mariner.

Просмотреть файл

@ -0,0 +1,5 @@
{
"Signatures": {
"rocksdb-6.7.3.tar.gz" : "c4d1397b58e4801b5fd7c3dd9175e6ae84541119cbebb739fe17d998f1829e81"
}
}

Просмотреть файл

@ -0,0 +1,67 @@
%define _build_id_links none
Name: rocksdb
Summary: A library that provides an embeddable, persistent key-value store for fast storage.
Version: 6.7.3
Release: 2%{?dist}
License: GPLv2+ and ASL 2.0 and BSD
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://rocksdb.org
#Source0: https://github.com/facebook/%{name}/archive/v%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: build-essential
BuildRequires: gflags-devel
%description
RocksDB is developed and maintained by Facebook Database Engineering Team. It is built on
earlier work on LevelDB by Sanjay Ghemawat (sanjay@google.com) and Jeff Dean (jeff@google.com)
This code is a library that forms the core building block for a fast key-value server,
especially suited for storing data on flash drives. It has a Log-Structured-Merge-Database
(LSM) design with flexible tradeoffs between Write-Amplification-Factor (WAF),
Read-Amplification-Factor (RAF) and Space-Amplification-Factor (SAF). It has multi-threaded
compactions, making it especially suitable for storing multiple terabytes of data in a single
database.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}
%description devel
Development files for %{name}
%prep
%setup -q
%build
mkdir build
cd build
%cmake -DPORTABLE=1 ..
make %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
%files
%license COPYING
%license LICENSE.Apache
%license LICENSE.leveldb
%doc README.md
%{_libdir}/*.so.*
%files devel
%{_includedir}/rocksdb
%{_libdir}/{*.so,*.a}
%{_libdir}/cmake/rocksdb
/usr/src/debug/*
%changelog
* Thu Oct 08 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 6.7.3-2
- Fixed 'Source0' URL.
- License verified.
* Mon Mar 30 2020 Jonathan Chiu <jochi@microsoft.com> 6.7.3-1
- Original version for CBL-Mariner.

Просмотреть файл

@ -1171,6 +1171,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "gflags",
"version": "2.2.2",
"downloadUrl": "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz"
}
}
},
{
"component": {
"type": "other",
@ -4971,6 +4981,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "rocksdb",
"version": "6.7.3",
"downloadUrl": "https://github.com/facebook/rocksdb/archive/v6.7.3.tar.gz"
}
}
},
{
"component": {
"type": "other",