Compare commits

..

No commits in common. "rawhide" and "f38" have entirely different histories.

2 changed files with 2 additions and 95 deletions

View file

@ -1,42 +0,0 @@
Without this change, GCC 14 will fail compilation with an error:
XADRAR5Parser.m: In function +[XADRAR5Parser recognizeFileWithHandle:firstBytes:name:]: XADRAR5Parser.m:79:5: warning: XADRAR5Parser may not respond to +signatureLocationInData:
79 | off_t signatureLocation = [self signatureLocationInData:data];
| ^~~~~
XADRAR5Parser.m:79:5: warning: (messages without a matching method signature will be assumed to return id and accept ... as arguments)
XADRAR5Parser.m:79:31: error: initialization of off_t {aka long int} from id makes integer from pointer without a cast
79 | off_t signatureLocation = [self signatureLocationInData:data];
| ^
Submitted upstream: <https://github.com/MacPaw/XADMaster/pull/161>
diff --git a/XADMaster-1.10.8/XADRAR5Parser.m b/XADMaster-1.10.8/XADRAR5Parser.m
index b89d841c959b4b9d..9f609d4cf05994c6 100644
--- a/XADMaster-1.10.8/XADRAR5Parser.m
+++ b/XADMaster-1.10.8/XADRAR5Parser.m
@@ -74,12 +74,6 @@ static inline BOOL IsZeroHeaderBlock(RAR5HeaderBlock block) { return IsZeroBlock
return 8;
}
-+(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name
-{
- off_t signatureLocation = [self signatureLocationInData:data];
- return signatureLocation != RAR5SignatureNotFound;
-}
-
+ (off_t)signatureLocationInData:(NSData *)data {
const uint8_t *bytes=[data bytes];
int length=[data length];
@@ -98,6 +92,12 @@ static inline BOOL IsZeroHeaderBlock(RAR5HeaderBlock block) { return IsZeroBlock
return RAR5SignatureNotFound;
}
++(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name
+{
+ off_t signatureLocation = [self signatureLocationInData:data];
+ return signatureLocation != RAR5SignatureNotFound;
+}
+
+(NSArray *)volumesForHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name
{
// Check if multipart

View file

@ -2,14 +2,12 @@
Name: unar
Version: 1.10.8
Release: 17%{?dist}
Release: 1%{?dist}
Summary: Multi-format extractor
# Automatically converted from old format: LGPLv2+ - review is highly recommended.
License: LicenseRef-Callaway-LGPLv2+
License: LGPLv2+
URL: https://theunarchiver.com/command-line
Source0: https://github.com/MacPaw/XADMaster/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/MacPaw/universal-detector/archive/%{detectorver}/universal-detector-%{detectorver}.tar.gz
Patch1: unar-int-conversion.patch
BuildRequires: bzip2-devel
BuildRequires: gcc-objc
BuildRequires: gcc-c++
@ -27,7 +25,6 @@ replacement of unrar.
%prep
%setup -q -c
tar -xf %{SOURCE1}
%patch -P1 -p1
mv universal-detector-%{detectorver} UniversalDetector
rm -fr __MACOSX The\ Unarchiver
# recursively remove executable bit from every file, skipping directories
@ -65,54 +62,6 @@ popd
%{_datadir}/bash-completion/completions/*
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Mon Jun 08 2026 František Zatloukal <fzatlouk@redhat.com> - 1.10.8-16
- Rebuilt for icu 78.3
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Aug 06 2025 František Zatloukal <fzatlouk@redhat.com> - 1.10.8-14
- Rebuilt for icu 77.1
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Wed Feb 26 2025 Adam Williamson <awilliam@redhat.com> - 1.10.8-12
- Really rebuild for gnustep-base 1.31.0
* Sun Feb 23 2025 Antonio Trande <sagitter@fedoraproject.org> - 1.10.8-11
- Rebuild for gnustep-base 1.31.0
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Dec 08 2024 Pete Walter <pwalter@fedoraproject.org> - 1.10.8-9
- Rebuild for ICU 76
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.10.8-8
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sun Jun 16 2024 Antonio Trande <sagitter@fedoraproject.org> - 1.10.8-6
- Rebuild for gnustep-base 1.30.0
* Wed Jan 31 2024 Pete Walter <pwalter@fedoraproject.org> - 1.10.8-5
- Rebuild for ICU 74
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Dec 22 2023 Florian Weimer <fweimer@redhat.com> - 1.10.8-3
- Fix int-conversion error
* Sun Nov 19 2023 Antonio Trande <sagitter@fedoraproject.org> - 1.10.8-2
- Rebuild for gnustep-base-1.29.0
* Thu Oct 12 2023 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.10.8-1
- Update to 1.10.8 (#2243653)