Skip to content

Commit 7ffacec

Browse files
Upgrade: rubygem-pkg-config version to 1.5.7 (#11601)
1 parent 6b03e40 commit 7ffacec

3 files changed

Lines changed: 87 additions & 49 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"pkg-config-1.4.5.tar.gz": "83b92b6e10d38faaede39fa815cc407400ae852e2badfc5b81d318b73861328b"
3+
"rubygem-pkg-config-1.5.7.tar.gz": "06fbbe133becb56bb440123792235d2558123ffb181745bc651c306d6b5edb42"
44
}
5-
}
5+
}

SPECS-EXTENDED/rubygem-pkg-config/rubygem-pkg-config.spec

Lines changed: 83 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1-
Vendor: Microsoft Corporation
2-
Distribution: Azure Linux
1+
# Generated from pkg-config-1.0.3.gem by gem2rpm -*- rpm-spec -*-
32
%global gem_name pkg-config
43

5-
%undefine _changelog_trimtime
6-
%undefine __brp_mangle_shebangs
4+
%undefine __brp_mangle_shebangs
5+
6+
Summary: A pkg-config implementation by Ruby
7+
Name: rubygem-%{gem_name}
8+
Version: 1.5.7
9+
Release: 2%{?dist}
10+
# SPDX confirmed
11+
License: LGPL-2.0-or-later
12+
Vendor: Microsoft Corporation
13+
Distribution: Azure Linux
14+
URL: https://github.com/rcairo/pkg-config
715

8-
Summary: A pkg-config implementation by Ruby
9-
Name: rubygem-%{gem_name}
10-
Version: 1.4.5
11-
Release: 4%{?dist}
12-
License: LGPLv2+
13-
URL: https://github.com/rcairo/pkg-config
14-
Source0: https://github.com/ruby-gnome/pkg-config/archive/refs/tags/%{version}.tar.gz#/%{gem_name}-%{version}.tar.gz
16+
Source0: https://github.com/ruby-gnome/%{gem_name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
1517
# Observe test failure on test_cflags test_cflags_only_I
1618
# with pkgconf 1.4.2
17-
Patch0: rubygem-pkg-config-1.4.4-cflags-result-sort.patch
19+
Patch0: rubygem-pkg-config-1.4.4-cflags-result-sort.patch
1820

1921
Requires: ruby(release)
2022
BuildRequires: ruby(release)
2123
BuildRequires: rubygems-devel
22-
%if 0%{?with_check}
24+
# For %%check
2325
BuildRequires: rubygem(test-unit)
26+
# mkmf.rb requires ruby-devel
2427
BuildRequires: ruby-devel
2528
BuildRequires: cairo-devel
26-
%endif
2729
Requires: rubygems
28-
2930
BuildArch: noarch
3031
Provides: rubygem(%{gem_name}) = %{version}-%{release}
3132

@@ -40,60 +41,97 @@ Requires: %{name} = %{version}-%{release}
4041
This package contains documentation for %{name}.
4142

4243
%prep
43-
%setup -q -n %{gem_name}-%{version}
44+
%autosetup -p1 -n %{gem_name}-%{version}
4445

4546
%build
4647
gem build %{gem_name}
4748
%gem_install
4849

4950
%install
50-
gem install %{gem_name}-%{version}.gem
51+
rm -rf %{buildroot}
5152

5253
mkdir -p %{buildroot}%{gem_dir}
5354
cp -a .%{gem_dir}/* \
5455
%{buildroot}/%{gem_dir}/
5556

56-
# Kill unneeded file
57-
rm -f %{buildroot}%{gem_instdir}/extconf.rb
57+
pushd %{buildroot}%{gem_instdir}
58+
rm -rf \
59+
Gemfile \
60+
Rakefile \
61+
test/ \
62+
%{nil}
63+
popd
64+
rm -f %{buildroot}%{gem_cache}
5865

5966
%check
6067
pushd .%{gem_instdir}
61-
#rake test --verbose --trace
62-
#ruby -Ilib -rubygems test/run-test.rb
63-
cat > test.rb <<EOF
64-
require "rubygems"
65-
gem "test-unit"
66-
require "test/unit"
67-
68-
Dir.glob("test/**/test-*.rb") do |file|
69-
require file
70-
end
71-
EOF
72-
ruby -Ilib:test:. ./test.rb
68+
ruby test/run-test.rb
69+
popd
7370

7471
%files
75-
%license LGPL-2.1
76-
%dir %{gem_instdir}
77-
%doc %{gem_instdir}/[A-Z]*
78-
%exclude %{gem_instdir}/Rakefile
79-
%exclude %{gem_instdir}/setup.rb
72+
%dir %{gem_instdir}
73+
%doc %{gem_instdir}/NEWS.md
74+
%license %{gem_instdir}/README.rdoc
75+
%license %{gem_instdir}/LGPL-2.1
8076
%{gem_libdir}/
81-
%{gem_cache}
77+
8278
%{gem_spec}
8379

84-
%files doc
85-
%{gem_instdir}/test/
80+
%files doc
8681
%{gem_docdir}
8782

8883
%changelog
89-
* Tue Mar 22 2022 Neha Agarwal <nehaagarwal@microsoft.com> - 1.4.5-4
90-
- Build from .tar.gz source.
91-
92-
* Thu Feb 24 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.4.5-3
84+
* Fri Dec 20 2024 Akhila Guruju <v-guakhila@microsoft.com> - 1.5.7-2
85+
- Initial Azure Linux import from Fedora 41 (license: MIT).
9386
- License verified.
9487

95-
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.4.5-2
96-
- Initial CBL-Mariner import from Fedora 34 (license: MIT).
88+
* Fri Oct 25 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.7-1
89+
- 1.5.7
90+
91+
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6-3
92+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
93+
94+
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6-2
95+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
96+
97+
* Sun Nov 19 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.6-1
98+
- 1.5.6
99+
100+
* Tue Sep 5 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.5-1
101+
- 1.5.5
102+
103+
* Thu Aug 31 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.3-1
104+
- 1.5.3
105+
106+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
107+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
108+
109+
* Fri Jun 16 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.2-1
110+
- 1.5.2
111+
112+
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
113+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
114+
115+
* Wed Nov 30 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.1-1
116+
- 1.5.1
117+
118+
* Sun Jul 31 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.9-1
119+
- 1.4.9
120+
121+
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.7-3
122+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
123+
124+
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.7-2
125+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
126+
127+
* Mon Jan 17 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.7-1
128+
- 1.4.7
129+
130+
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-2
131+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
132+
133+
* Mon Apr 19 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.6-1
134+
- 1.4.6
97135

98136
* Fri Feb 5 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.5-1
99137
- 1.4.5

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26974,8 +26974,8 @@
2697426974
"type": "other",
2697526975
"other": {
2697626976
"name": "rubygem-pkg-config",
26977-
"version": "1.4.5",
26978-
"downloadUrl": "https://github.com/ruby-gnome/pkg-config/archive/refs/tags/1.4.5.tar.gz"
26977+
"version": "1.5.7",
26978+
"downloadUrl": "https://github.com/ruby-gnome/pkg-config/archive/refs/tags/1.5.7.tar.gz"
2697926979
}
2698026980
}
2698126981
},

0 commit comments

Comments
 (0)