Compare commits
No commits in common. "rawhide" and "f39" have entirely different histories.
5 changed files with 26 additions and 31 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,6 +1,2 @@
|
|||
/SwiftLint-0.53.0-bundled-deps.tar.gz
|
||||
/SwiftLint-0.53.0.tar.gz
|
||||
/SwiftLint-0.57.1-bundled-deps.tar.gz
|
||||
/SwiftLint-0.57.1.tar.gz
|
||||
/SwiftLint-0.61.0-bundled-deps.tar.gz
|
||||
/SwiftLint-0.61.0.tar.gz
|
||||
|
|
|
|||
8
SwiftLint-0.53.0-bundled-provides.txt
Normal file
8
SwiftLint-0.53.0-bundled-provides.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Provides: bundled(collectionconcurrencykit) = 0.2.0
|
||||
Provides: bundled(cryptoswift) = 1.7.2
|
||||
Provides: bundled(sourcekitten) = 0.34.1
|
||||
Provides: bundled(swift-argument-parser) = 1.2.1
|
||||
Provides: bundled(swift-syntax) = 509.0.0
|
||||
Provides: bundled(swiftytexttable) = 0.9.0
|
||||
Provides: bundled(swxmlhash) = 7.0.1
|
||||
Provides: bundled(yams) = 5.0.6
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
Provides: bundled(collectionconcurrencykit) = 0.2.0
|
||||
Provides: bundled(cryptoswift) = 1.9.0
|
||||
Provides: bundled(sourcekitten) = 0.37.2
|
||||
Provides: bundled(swift-argument-parser) = 1.6.1
|
||||
# Original version: 602.0.0-prerelease-2025-08-11
|
||||
Provides: bundled(swift-syntax) = 602.0.0.prerelease.2025.08.11
|
||||
Provides: bundled(swiftytexttable) = 0.9.0
|
||||
Provides: bundled(swxmlhash) = 7.0.2
|
||||
Provides: bundled(yams) = 6.1.0
|
||||
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
|||
SHA512 (SwiftLint-0.61.0-bundled-deps.tar.gz) = d2447bc999bf7037f0fa4554136a5d0d2fb9ec6ab056cff448aabc40fa2c290ae041c245d8f19433c57a6217fb7dc0cafae22fb32fe20eed67aed72f97939cd5
|
||||
SHA512 (SwiftLint-0.61.0.tar.gz) = 7f32de574ef48a61184b311fd95c22207e5e6cade394c8415e3929d5feb341421e81806453acb29399e5ff07087a1f278e7ec02526774816d6cf9efe24c83e4f
|
||||
SHA512 (SwiftLint-0.53.0-bundled-deps.tar.gz) = cb0c86abf052a28c2a70f2c14f28313804368a4cb7b4628ab4b84fe15dd077c8ed78e8f903b46bdbecc0ffb75c89bc1bbd63e98d9649e8553e4f95d27fc919e4
|
||||
SHA512 (SwiftLint-0.53.0.tar.gz) = 3564926de52f557b43093b97634c90aad9da69e9f44566e293b8273ddbab17a4cd146c6e978dbf2234b7681e58853efb50689ae3408c6a3430354fd707fd20c6
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%bcond tests 1
|
||||
%bcond_without tests
|
||||
|
||||
%global srcname SwiftLint
|
||||
%global forgeurl https://github.com/realm/%{srcname}
|
||||
|
|
@ -9,11 +9,23 @@
|
|||
# Whether to do release or debug builds
|
||||
%global config release
|
||||
|
||||
%global swift_version 6.2
|
||||
%global swift_version 5.8.1
|
||||
|
||||
# Normally we would fail the build because:
|
||||
# ERROR 0008: file '/usr/bin/swiftlint' contains the $ORIGIN runpath
|
||||
# specifier at the wrong position in
|
||||
# [/usr/libexec/swift/5.8.1/lib/swift/linux:$ORIGIN]
|
||||
# but in this case rpath is necessary because of
|
||||
# swiftlint: error while loading shared libraries: libswiftGlibc.so: cannot
|
||||
# open shared object file: No such file or directory
|
||||
# As this in an internal library, this is allowed by policy per
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_rpath_for_internal_libraries
|
||||
# so neuter the check instead
|
||||
%global __brp_check_rpaths %{nil}
|
||||
|
||||
Name: swiftlint
|
||||
# To update: bump this Version, then run swiftlint-get-bundled-deps.sh
|
||||
Version: 0.61.0
|
||||
Version: 0.53.0
|
||||
Release: %autorelease
|
||||
Summary: Tool to enforce Swift style and conventions
|
||||
|
||||
|
|
@ -92,23 +104,11 @@ echo '-Xcc -gdwarf-4 -Xcxx -gdwarf-4' >> build.sh
|
|||
sh -x build.sh
|
||||
|
||||
%install
|
||||
# Normally we would fail the build because:
|
||||
# ERROR 0008: file '/usr/bin/swiftlint' contains the $ORIGIN runpath
|
||||
# specifier at the wrong position in
|
||||
# [/usr/libexec/swift/5.8.1/lib/swift/linux:$ORIGIN]
|
||||
# but in this case rpath is necessary because of
|
||||
# swiftlint: error while loading shared libraries: libswiftGlibc.so: cannot
|
||||
# open shared object file: No such file or directory
|
||||
# As this in an internal library, this is allowed by policy per
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_rpath_for_internal_libraries
|
||||
# so neuter the check instead
|
||||
export QA_RPATHS=$(( 0x0008 ))
|
||||
install -Dpm0755 -t %{buildroot}%{_bindir} .build/%{config}/%{name}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
# The test suite is fickle, swallow failures for now
|
||||
swift test -v || true
|
||||
swift test -v
|
||||
|
||||
# Make sure the binary actually runs
|
||||
%{buildroot}%{_bindir}/swiftlint --help
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue