Adding the 'tracelogging' and 'zipper' packages. (#208)
This commit is contained in:
Родитель
c2c7f85327
Коммит
a7682dd26d
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"tracelogging-0.2.tar.gz": "8c77ffe696e31d640b2de599b937e7797e64a2b49f98eae55e0b6a514efb1002"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
Summary: tracelogging one-line structure logging API on top of LTTNG
|
||||
Name: tracelogging
|
||||
Version: 0.2
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
URL: https://github.com/microsoft/tracelogging
|
||||
Group: System Environment
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
|
||||
#Source0: https://github.com/microsoft/%{name}/archive/v%{version}.tar.gz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: catch-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: lttng-ust-devel
|
||||
|
||||
%if %{with_check}
|
||||
BuildRequires: catch-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
The tracelogging for LTTNG project enables structured event emission through
|
||||
LTTNG via the same set of macros that are supported by the publicly
|
||||
available tracelogging for ETW project in the Windows SDK.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for tracelogging
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
Requires: tracelogging = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the headers and symlinks for instrumenting
|
||||
applications and libraries with tracelogging.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
mkdir build && cd build
|
||||
%cmake ..
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test -C build
|
||||
|
||||
%install
|
||||
%make_install -C build
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_libdir}/liblttngh.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/lttngh
|
||||
%{_includedir}/tracelogging
|
||||
%{_libdir}/liblttngh.so
|
||||
%{_libdir}/cmake/tracelogging
|
||||
|
||||
%changelog
|
||||
* Wed Oct 14 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 0.2-2
|
||||
- Added source URL.
|
||||
- License verified.
|
||||
* Tue Feb 11 2020 Nick Bopp <nichbop@microsoft.com> 0.2-1
|
||||
- Original version for CBL-Mariner.
|
Двоичный файл не отображается.
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"zipper-1.0.1.tar.gz": "f181eae749428cf72dd94ea66f887982794c831652bd35b928cdac87bdd38ac0",
|
||||
"minizip.tar.gz": "e8f5e597db260876975591e899a8ffd325d3749978b46967850c286cde9f2c1c"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,119 @@
|
|||
Name: zipper
|
||||
Summary: C++ wrapper around minizip compression library
|
||||
Version: 1.0.1
|
||||
Release: 2%{?dist}
|
||||
URL: https://github.com/sebastiandev/zipper
|
||||
Group: Applications/File
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
# zlib licenses comes from minizip/ source code
|
||||
License: MIT and zlib
|
||||
|
||||
#Source0: https://github.com/sebastiandev/%{name}/archive/v%{version}.tar.gz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
# The 1.0.1 version requires the 'minizip' sources from the following commit: https://github.com/sebastiandev/minizip/tree/0b46a2b4ca317b80bc53594688883f7188ac4d08
|
||||
Source1: minizip.tar.gz
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
Provides: bundled(minizip) = 1.2.8
|
||||
|
||||
%description
|
||||
Zipper's goal is to bring the power and simplicity of minizip to a more
|
||||
object oriented/c++ user friendly library.
|
||||
It was born out of the necessiyty of a compression library that would be
|
||||
reliable, simple and flexible.
|
||||
By flexibility I mean supporting all kinds of inputs and outputs,
|
||||
but specifically been able to compress into memory instead of being
|
||||
restricted to file compression only, and using data from memory instead
|
||||
of just files as well.
|
||||
|
||||
Features:
|
||||
- Create zip in memory
|
||||
- Allow files, vector and generic streams as input to zip
|
||||
- File mappings for replacing strategies (overwrite if exists or use alternative name from mapping)
|
||||
- Password protected zip
|
||||
- Multi platform
|
||||
|
||||
%package devel
|
||||
Summary: Development files of %{name}
|
||||
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides header files, shared and static library files of %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# Fix library destination
|
||||
sed -e 's|DESTINATION lib|DESTINATION %{_lib}|g' -i CMakeLists.txt
|
||||
|
||||
# Extract 'minizip' sources dependency
|
||||
tar -xf %{SOURCE1}
|
||||
|
||||
# Fix permissions
|
||||
find minizip -name '*.c' -exec chmod 0644 '{}' \;
|
||||
|
||||
%build
|
||||
mkdir build && cd build
|
||||
export CXXFLAGS="%{optflags} -Wl,--as-needed"
|
||||
%cmake .. \
|
||||
-Wno-cpp \
|
||||
-DBUILD_SHARED_VERSION:BOOL=ON \
|
||||
-DBUILD_STATIC_VERSION:BOOL=ON \
|
||||
-DBUILD_TEST:BOOL=ON
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install -C build
|
||||
# Tests still want the static library, but we're not going to package it.
|
||||
rm %{buildroot}%{_libdir}/libZipper-static.a
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%check
|
||||
make test -C build
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.md VERSION.txt
|
||||
%license LICENSE.md minizip/LICENSE
|
||||
%{_libdir}/libZipper.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libZipper.so
|
||||
%{_includedir}/zipper/
|
||||
|
||||
%changelog
|
||||
* Wed Oct 14 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 1.0.1-2
|
||||
- Added source URL.
|
||||
- Switching to published GitHub source from the custom-made one.
|
||||
- Added a separate minizip.tar.gz source.
|
||||
- License verified.
|
||||
|
||||
* Fri Feb 14 2020 Nick Bopp <nichbop@microsoft.com> - 1.0.1-1
|
||||
- Initial CBL-Mariner import from Fedora 31 (license: MIT).
|
||||
- Update to 1.0.1
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-6.20170831giteee877a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-5.20170831giteee877a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-4.20170831giteee877a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu May 03 2018 Antonio Trande <sagitter@fedoraproject.org> - 0.9.1-3.20170831giteee877a
|
||||
- Rebuild for batched updates
|
||||
|
||||
* Sun Apr 29 2018 Antonio Trande <sagitter@fedoraproject.org> - 0.9.1-2.20170831giteee877a
|
||||
- Specify bundled code's license and version
|
||||
|
||||
* Thu Apr 19 2018 Antonio Trande <sagitter@fedoraproject.org> - 0.9.1-1.20170831giteee877a
|
||||
- First package
|
|
@ -5441,6 +5441,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"other": {
|
||||
"name": "tracelogging",
|
||||
"version": "0.2",
|
||||
"downloadUrl": "https://github.com/microsoft/tracelogging/archive/v0.2.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
|
@ -5751,6 +5761,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"other": {
|
||||
"name": "zipper",
|
||||
"version": "1.0.1",
|
||||
"downloadUrl": "https://github.com/sebastiandev/zipper/archive/v1.0.1.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
|
|
Загрузка…
Ссылка в новой задаче