Compare commits
68 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32761e1eff | ||
|
|
eb011eac26 |
||
|
|
24cd3a547b |
||
|
|
0c0867eeea |
||
|
|
c4a96d4be6 | ||
|
|
726db61a42 |
||
|
|
e3630d6236 |
||
|
|
bfa777c8cf |
||
|
|
001a888a13 |
||
|
|
99cda604e2 |
||
|
|
f8cf8ac5a8 |
||
|
|
3fa6ff7573 |
||
|
|
ab74199578 |
||
|
|
13b105fb6a |
||
|
|
b3c5a075d4 | ||
|
|
ef7f292a31 |
||
|
|
78bc58a054 |
||
|
|
106d862ec3 |
||
|
|
950a1b392f |
||
|
|
a9a4c76068 |
||
|
|
a6f84cef64 | ||
|
|
e0698f5d7d |
||
|
|
c0f7cf4fc3 |
||
|
|
8460bdb6a6 |
||
|
|
9610df7d99 |
||
|
|
dd07288182 |
||
|
|
0cf59e1dee |
||
|
|
31765dc0e7 |
||
|
|
bca10522d9 | ||
|
|
687b8ccc19 | ||
|
|
2498c7c2be |
||
|
|
e74c86b0df |
||
|
|
ce63cf1fa1 |
||
|
|
afce61b2a5 |
||
|
|
9d87d188a4 |
||
|
|
95abe6675d |
||
|
|
45f6935790 |
||
|
|
c55d93204b |
||
|
|
180d708d4d |
||
|
|
d76d88b03f |
||
|
|
9d7b8bf60b |
||
|
|
ce8883786b | ||
|
|
c0365fbb05 |
||
|
|
007a5028ef |
||
|
|
970d7de6f5 |
||
|
|
d3f3d432bb |
||
|
|
9a445eaaf5 |
||
|
|
296899d041 |
||
|
|
0df86daa4b |
||
|
|
bc58165cb9 | ||
|
|
d05878ab78 |
||
|
|
d339cc970b |
||
|
|
4e52ebdcb9 |
||
|
|
f9d36f2a96 |
||
|
|
60561e05a3 |
||
|
|
2d76349fa3 |
||
|
|
f49a22a639 |
||
|
|
d8a7f71c88 |
||
|
|
6869034b0c |
||
|
|
e1835b171a |
||
|
|
07cdef2a22 |
||
|
|
bfef80c5dd |
||
|
|
57ab6e944d |
||
|
|
371febf7d3 |
||
|
|
af13a7ecf1 | ||
|
|
adf300abeb |
||
|
|
3d1f22c830 |
||
|
|
e78e0b3d9f |
6 changed files with 54 additions and 32 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,3 +1 @@
|
|||
/vcpkg-2021.08.03.tar.gz
|
||||
/vcpkg-2021.08.12.tar.gz
|
||||
/vcpkg-2021.09.10.tar.gz
|
||||
/vcpkg-*.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
# vcpkg
|
||||
|
||||
The vcpkg package
|
||||
2
changelog
Normal file
2
changelog
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2023.06.22-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (vcpkg-2021.09.10.tar.gz) = 0bea4c7bdd91933d44a0214e2202eb5ef988826d32ae7a00a8868e510710e7de0b336b1cc6aa1ea20af2f6e24d92f2ab665046089bb4ec43bc2add94a901d5fc
|
||||
SHA512 (vcpkg-2025.12.16.tar.gz) = 49adbcfa37b8e349555f60a6bfcc3ba24bd1f17c69e7fd62e351f630afc3c944a535b559d2c122ec58d513cbe383408f16f6aa1f1857d7bf7a6033d0af54dcbd
|
||||
|
|
|
|||
5
vcpkg.sh
5
vcpkg.sh
|
|
@ -4,3 +4,8 @@
|
|||
if [ -z "$VCPKG_DISABLE_METRICS" ]; then
|
||||
export VCPKG_DISABLE_METRICS="1"
|
||||
fi
|
||||
|
||||
# Export the correct vcpkg root directory.
|
||||
if [ -z "$VCPKG_ROOT" ]; then
|
||||
export VCPKG_ROOT="$HOME/.local/share/vcpkg"
|
||||
fi
|
||||
|
|
|
|||
70
vcpkg.spec
70
vcpkg.spec
|
|
@ -1,15 +1,9 @@
|
|||
%undefine __cmake_in_source_build
|
||||
|
||||
%global version_year 2021
|
||||
%global version_month 09
|
||||
%global version_day 10
|
||||
|
||||
%global repo_name vcpkg-tool
|
||||
%global repo_tag %{version_year}-%{version_month}-%{version_day}
|
||||
%global repo_tag 2025-12-16
|
||||
|
||||
Name: vcpkg
|
||||
Version: %{version_year}.%{version_month}.%{version_day}
|
||||
Release: 1%{?dist}
|
||||
Version: %(echo %{repo_tag} | sed 's/-/./g')
|
||||
Release: %autorelease
|
||||
|
||||
License: MIT
|
||||
Summary: C++ Library Manager
|
||||
|
|
@ -17,23 +11,55 @@ URL: https://github.com/microsoft/%{repo_name}
|
|||
Source0: %{url}/archive/%{repo_tag}/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.sh
|
||||
|
||||
BuildRequires: catch-devel
|
||||
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
||||
%if 0%{?fedora} && 0%{?fedora} >= 42
|
||||
ExcludeArch: %{ix86}
|
||||
%endif
|
||||
|
||||
BuildRequires: catch-devel >= 2.13.0
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cmrc-devel
|
||||
BuildRequires: fmt-devel >= 11.0.0
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ninja-build
|
||||
|
||||
Requires: cmake%{?_isa}
|
||||
Requires: curl%{?_isa}
|
||||
Requires: gcc-c++%{?_isa}
|
||||
Requires: git-core%{?_isa}
|
||||
Requires: ninja-build%{?_isa}
|
||||
|
||||
Recommends: aria2%{?_isa}
|
||||
|
||||
%description
|
||||
Vcpkg is a package manager for the different C and C++ libraries.
|
||||
|
||||
Vcpkg can collect usage data. The data collected by Microsoft is anonymous.
|
||||
|
||||
Fedora package has telemetry disabled by default. If you want to enable
|
||||
telemetry, you should remove the %{_sysconfdir}/profile.d/%{name}.sh file
|
||||
or unset the VCPKG_DISABLE_METRICS environment variable.
|
||||
This package has telemetry disabled by default and doesn't ship the
|
||||
repository with recipes.
|
||||
|
||||
Please read README.fedora file for more information.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{repo_name}-%{repo_tag} -p1
|
||||
|
||||
# Adding a file with some useful information...
|
||||
cat << EOF >> README.fedora
|
||||
Fedora package has telemetry disabled by default. If you want to enable
|
||||
it, you should unset the VCPKG_DISABLE_METRICS environment variable
|
||||
from the %{_sysconfdir}/profile.d/%{name}.sh file.
|
||||
|
||||
Fedora can't ship the official Git repository with recipes for various
|
||||
reasons (especially legal), so you'll need to manually clone it into
|
||||
the \$HOME/.local/share/%{name} directory (the path can be changed in
|
||||
the %{_sysconfdir}/profile.d/%{name}.sh file):
|
||||
git clone https://github.com/microsoft/%{name}.git \$VCPKG_ROOT
|
||||
|
||||
You will have to update it manually too:
|
||||
git -C \$VCPKG_ROOT pull
|
||||
EOF
|
||||
|
||||
# Fixing line endings...
|
||||
sed -e "s,\r,," -i README.md
|
||||
|
||||
|
|
@ -46,8 +72,12 @@ ln -svf %{_includedir}/catch2/ include/
|
|||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
|
||||
-DBUILD_TESTING:BOOL=OFF \
|
||||
-DVCPKG_BASE_VERSION:STRING="%{repo_tag}" \
|
||||
-DVCPKG_VERSION:STRING="%{release}" \
|
||||
-DVCPKG_DEVELOPMENT_WARNINGS:BOOL=OFF \
|
||||
-DVCPKG_WARNINGS_AS_ERRORS:BOOL=OFF \
|
||||
-DVCPKG_DEPENDENCY_CMAKERC:BOOL=ON \
|
||||
-DVCPKG_DEPENDENCY_EXTERNAL_FMT:BOOL=ON \
|
||||
-DVCPKG_BUILD_TLS12_DOWNLOADER:BOOL=OFF \
|
||||
-DVCPKG_BUILD_FUZZING:BOOL=OFF \
|
||||
-DVCPKG_EMBED_GIT_SHA:BOOL=OFF \
|
||||
|
|
@ -62,20 +92,10 @@ ln -svf %{_includedir}/catch2/ include/
|
|||
install -D -m 0644 -p "%{SOURCE1}" "%{buildroot}%{_sysconfdir}/profile.d/%{name}.sh"
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%doc README.md README.fedora
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
%{_bindir}/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.sh
|
||||
|
||||
%changelog
|
||||
* Sun Sep 12 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 2021.09.10-1
|
||||
- Updated to version 2021.09.10.
|
||||
|
||||
* Tue Aug 17 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 2021.08.12-1
|
||||
- Updated to version 2021.08.12.
|
||||
|
||||
* Wed Aug 04 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 2021.08.03-1
|
||||
- Updated to version 2021.08.03.
|
||||
|
||||
* Sun Jul 25 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 2021.07.21-1
|
||||
- Initial SPEC release.
|
||||
%autochangelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue