Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtar: Fixup spec formatting, remove .la files, remove explicit provides #3698

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions SPECS/libtar/libtar.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: C library for manipulating tar files
Name: libtar
Version: 1.2.20
Release: 9%{?dist}
Release: 10%{?dist}
License: BSD
Vendor: Microsoft Corporation
Distribution: Mariner
Expand All @@ -15,11 +15,14 @@ Patch0: libtar-gen-debuginfo.patch
Patch1: libtar-CVE-2013-4420.patch
# CVE patches + other fixes from Redhat
Patch2: libtar-1.2.11-mem-deref.patch
# CVE-2021-33643
# CVE-2021-33644
Patch3: libtar-1.2.20-CVE-2021-33643-CVE-2021-33644.patch
# CVE-2021-33645
# CVE-2021-33646
Patch4: libtar-1.2.20-CVE-2021-33645-CVE-2021-33646.patch
Patch5: libtar-1.2.20-fix-resource-leaks.patch
Patch6: libtar-1.2.20-static-analysis.patch
Provides: libtar.so.0()(64bit)

%description
libtar is a library for manipulating tar files from within C programs.
Expand All @@ -30,7 +33,7 @@ Group: Development/Libraries
Requires: libtar = %{version}-%{release}

%description devel
The litar-devel package contains libraries and header files for
The libtar-devel package contains libraries and header files for
developing applications that use libtar.

%prep
Expand All @@ -45,6 +48,7 @@ make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
chmod +x %{buildroot}/%{_libdir}/libtar.so.*
find %{buildroot} -type f -name "*.la" -delete -print

#%check
#Commented out %check due to no test existence
Expand All @@ -63,33 +67,37 @@ chmod +x %{buildroot}/%{_libdir}/libtar.so.*
%{_includedir}/*
%{_mandir}/man3/*
%{_libdir}/libtar.so
%{_libdir}/libtar.la

%changelog
* Tue Sep 06 2022 Daniel McIlvaney <[email protected]> - 1.2.20-10
- Remove undesirable .la files
- Rely on generators to provide libtar.so.0()(64bit)
- Add CVE comments to correctly track CVE status

* Mon Sep 05 2022 Daniel McIlvaney <[email protected]> - 1.2.20-9
- Add various CVE and correctness patches from Fedora 37
- Fixes CVE-2021-33643, CVE-2021-33644, CVE-2021-33645, CVE-2021-33646

* Sat May 09 2020 Nick Samson <[email protected]> - 1.2.20-8
- Added %%license line automatically

* Thu Apr 23 2020 Nick Samson <[email protected]> 1.2.20-7
- Updated Source0, URL, removed sha1 line. License verified.
* Thu Apr 23 2020 Nick Samson <[email protected]> 1.2.20-7
- Updated Source0, URL, removed sha1 line. License verified.

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

* Thu Nov 02 2017 Xiaolin Li <[email protected]> 1.2.20-5
- Fix CVE-2013-4420
* Thu Nov 02 2017 Xiaolin Li <[email protected]> 1.2.20-5
- Fix CVE-2013-4420

* Thu Jun 29 2017 Chang Lee <[email protected]> 1.2.20-4
- Removed %check due to no test existence.
* Thu Jun 29 2017 Chang Lee <[email protected]> 1.2.20-4
- Removed %check due to no test existence.

* Tue Apr 25 2017 Priyesh Padmavilasom <[email protected]> 1.2.20-3
- Ensure non empty debuginfo
* Tue Apr 25 2017 Priyesh Padmavilasom <[email protected]> 1.2.20-3
- Ensure non empty debuginfo

* Fri Mar 10 2017 Xiaolin Li <[email protected]> 1.2.20-2
- Provides libtar.so.0()(64bit).
* Fri Mar 10 2017 Xiaolin Li <[email protected]> 1.2.20-2
- Provides libtar.so.0()(64bit).

* Fri Mar 03 2017 Xiaolin Li <[email protected]> 1.2.20-1
- Initial packaging for Photon
* Fri Mar 03 2017 Xiaolin Li <[email protected]> 1.2.20-1
- Initial packaging for Photon