Skip to content

Commit

Permalink
temporary testing on karimeldegwy/* prs
Browse files Browse the repository at this point in the history
  • Loading branch information
Karim Eldegwy committed Apr 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8e4cd5d commit 4713c88
Showing 2 changed files with 242 additions and 0 deletions.
115 changes: 115 additions & 0 deletions SPECS/abseil-cpp/abseil-cpp-2.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
Summary: C++ Common Libraries
Name: abseil-cpp
Version: 20220624.0
Release: 1%{?dist}
License: ASL 2.0
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://abseil.io
Source0: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: cmake >= 3.20.0
BuildRequires: gcc
BuildRequires: make

%if %{with_check}
BuildRequires: gmock >= 1.12.0
BuildRequires: gmock-devel >= 1.12.0
BuildRequires: gtest >= 1.12.0
BuildRequires: gtest-devel >= 1.12.0
%endif

%description
Abseil is an open-source collection of C++ library code designed to augment
the C++ standard library. The Abseil library code is collected from
Google's own C++ code base, has been extensively tested and used in
production, and is the same code we depend on in our daily coding lives.

In some cases, Abseil provides pieces missing from the C++ standard; in
others, Abseil provides alternatives to the standard for special needs we've
found through usage in the Google code base. We denote those cases clearly
within the library code we provide you.

Abseil is not meant to be a competitor to the standard library; we've just
found that many of these utilities serve a purpose within our code base,
and we now want to provide those resources to the C++ community as a whole.

%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}

%description devel
Development headers for %{name}

%prep
%autosetup -p1

%build
mkdir build
pushd build
%cmake \
-DABSL_PROPAGATE_CXX_STD=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
%if %{with_check}
-DABSL_BUILD_TESTING=ON \
-DABSL_FIND_GOOGLETEST=ON \
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
-DBUILD_TESTING=ON \
%else
-DBUILD_TESTING=OFF \
%endif
..
%make_build

%install
pushd build
%make_install

%check
pushd build
ctest --output-on-failure

%files
%license LICENSE
%doc FAQ.md README.md UPGRADES.md
%{_libdir}/libabsl_*.so.2206.*

%files devel
%{_includedir}/absl
%{_libdir}/cmake/absl
%{_libdir}/libabsl_*.so
%{_libdir}/pkgconfig/*.pc

%changelog
* Thu Jun 30 2022 Pawel Winogrodzki <[email protected]> - 20220623.0-1
- Updating to 20220623.0 to remove workaround patches for GTest.

* Mon Nov 15 2021 Pawel Winogrodzki <[email protected]> - 20211102.0-1
- Initial CBL-Mariner import from Fedora 34 (license: MIT).
- License verified.
- Updating to version 20211102.0.
- Removing redundant type fix patch.
- Adding patches removing use of unpublished GTest macros and matchers from the test code.

* Mon Mar 08 2021 Rich Mattes <[email protected]> - 20200923.3-1
- Update to release 20200923.3

* Mon Jan 25 2021 Fedora Release Engineering <[email protected]> - 20200923.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Sat Dec 19 2020 Rich Mattes <[email protected]> - 20200923.2-1
- Update to release 20200923.2
- Rebuild to fix tagging in koji (rhbz#1885561)

* Fri Jul 31 2020 Fedora Release Engineering <[email protected]> - 20200225.2-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Mon Jul 27 2020 Fedora Release Engineering <[email protected]> - 20200225.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed May 27 2020 Rich Mattes <[email protected]> - 20200225.2-2
- Don't remove buildroot in install

* Sun May 24 2020 Rich Mattes <[email protected]> - 20200225.2-1
- Initial package.
127 changes: 127 additions & 0 deletions SPECS/acl/acl-3.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
Summary: Access control list utilities
Name: acl
Version: 2.3.1
Release: 2%{?dist}
License: GPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
Group: System Environment/Base
URL: https://savannah.nongnu.org/projects/acl/
Source0: https://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz

BuildRequires: attr-devel

Requires: libacl = %{version}-%{release}

%description
This package contains the getfacl and setfacl utilities needed for
manipulating access control lists.

%package -n libacl
Summary: Dynamic library for access control list support
License: LGPLv2+
Group: System Environment/Libraries
Requires: attr

%description -n libacl
This package contains the libacl.so dynamic library which contains
the POSIX 1003.1e draft standard 17 functions for manipulating access
control lists.

%package -n libacl-devel
Summary: Files needed for building programs with libacl
License: LGPLv2+
Group: Development/Libraries
Requires: libacl = %{version}-%{release}

%description -n libacl-devel
This package contains header files and documentation needed to develop
programs which make use of the access control list programming interface
defined in POSIX 1003.1e draft standard 17.

%prep
%autosetup

%build
%configure

%make_build LIBTOOL="libtool --tag=CC"

%install
%make_install

find %{buildroot} -type f -name "*.la" -delete -print

chmod 0755 %{buildroot}%{_libdir}/libacl.so.*.*.*

%find_lang %{name}

%check
# Skip following four tests which fail due to lack of ACL support in tools like cp from coreutils
# As noted in coreutils build log: "configure: WARNING: GNU coreutils will be built without ACL support."
sed -e 's|test/cp.test||' -i test/Makemodule.am Makefile.in Makefile
sed -e 's|test/root/permissions.test||' -i test/Makemodule.am Makefile.in Makefile
sed -e 's|test/root/setfacl.test||' -i test/Makemodule.am Makefile.in Makefile
sed -e 's|test/misc.test||' -i test/Makemodule.am Makefile.in Makefile
%make_build check

%ldconfig_scriptlets -n libacl

%files -f %{name}.lang
%license doc/COPYING*
%{_bindir}/chacl
%{_bindir}/getfacl
%{_bindir}/setfacl
%{_mandir}/man1/chacl.1*
%{_mandir}/man1/getfacl.1*
%{_mandir}/man1/setfacl.1*
%{_mandir}/man5/acl.5*

%files -n libacl-devel
%{_libdir}/libacl.so
%{_includedir}/acl
%{_includedir}/sys/acl.h
%{_mandir}/man3/acl_*
%{_libdir}/libacl.a
%{_docdir}/acl/*
%{_libdir}/pkgconfig/libacl.pc

%files -n libacl
%{_libdir}/libacl.so.*

%changelog
* Wed Sep 20 2023 Jon Slobodzian <[email protected]> - 2.3.1-2
- Recompile with stack-protection fixed gcc version (CVE-2023-4039)

* Wed Nov 24 2021 Pawel Winogrodzki <[email protected]> - 2.3.1-1
- Updating to version 2.3.1.

* Tue Jan 26 2021 Andrew Phelps <[email protected]> - 2.2.53-5
- Fix check tests.

* Tue Apr 14 2020 Henry Beberman <[email protected]> - 2.2.53-4
- Update files to include license

* Fri Mar 03 2020 Jon Slobodzian <[email protected]> - 2.2.53-3
- Replaced dead link. Fixed Source URL. Verified license.

* Tue Sep 03 2019 Mateusz Malisz <[email protected]> - 2.2.53-2
- Initial CBL-Mariner import from Photon (license: Apache2).

* Mon Sep 17 2018 Ankit Jain <[email protected]> - 2.2.53-1
- Updated to version 2.2.53

* Fri Jul 28 2017 Chang Lee <[email protected]> - 2.2.52-5
- Fixed %check for filtering unsupported check env

* Thu Nov 24 2016 Alexey Makhalov <[email protected]> - 2.2.52-4
- BuildRequired attr-devel.

* Wed Oct 05 2016 ChangLee <[email protected]> - 2.2.52-3
- Modified %check

* Tue May 24 2016 Priyesh Padmavilasom <[email protected]> - 2.2.52-2
- GA - Bump release of all rpms

* Thu Feb 26 2015 Divya Thaluru <[email protected]> - 2.2.52-1
- Initial version

0 comments on commit 4713c88

Please sign in to comment.