Skip to content

Commit

Permalink
Upgrade: rubygem-pkg-config version to 1.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
akhila-guruju committed Jan 9, 2025
1 parent db2fd14 commit 5fdfe68
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"pkg-config-1.4.5.tar.gz": "83b92b6e10d38faaede39fa815cc407400ae852e2badfc5b81d318b73861328b"
"pkg-config-1.5.7.gem": "713671c6af034325dc7e7c12026b02570fbb1358d9f3a023d3a001ce0159b1c7"
}
}
}
130 changes: 86 additions & 44 deletions SPECS-EXTENDED/rubygem-pkg-config/rubygem-pkg-config.spec
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
# Generated from pkg-config-1.0.3.gem by gem2rpm -*- rpm-spec -*-
%global gem_name pkg-config

%undefine _changelog_trimtime
%undefine __brp_mangle_shebangs
%undefine __brp_mangle_shebangs

Summary: A pkg-config implementation by Ruby
Name: rubygem-%{gem_name}
Version: 1.5.7
Release: 2%{?dist}
# SPDX confirmed
License: LGPL-2.0-or-later
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: http://github.com/rcairo/pkg-config

Summary: A pkg-config implementation by Ruby
Name: rubygem-%{gem_name}
Version: 1.4.5
Release: 4%{?dist}
License: LGPLv2+
URL: https://github.com/rcairo/pkg-config
Source0: https://github.com/ruby-gnome/pkg-config/archive/refs/tags/%{version}.tar.gz#/%{gem_name}-%{version}.tar.gz
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# Observe test failure on test_cflags test_cflags_only_I
# with pkgconf 1.4.2
Patch0: rubygem-pkg-config-1.4.4-cflags-result-sort.patch
Patch0: rubygem-pkg-config-1.4.4-cflags-result-sort.patch

Requires: ruby(release)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
%if 0%{?with_check}
# For %%check
BuildRequires: rubygem(test-unit)
# mkmf.rb requires ruby-devel
BuildRequires: ruby-devel
BuildRequires: cairo-devel
%endif
Requires: rubygems

BuildArch: noarch
Expand All @@ -41,59 +43,99 @@ This package contains documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}
mv ../%{gem_name}-%{version}.gemspec .

%patch -P0 -p1

%build
gem build %{gem_name}
gem build ./%{gem_name}-%{version}.gemspec
%gem_install

%install
gem install %{gem_name}-%{version}.gem
rm -rf %{buildroot}

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}/%{gem_dir}/

# Kill unneeded file
rm -f %{buildroot}%{gem_instdir}/extconf.rb
pushd %{buildroot}%{gem_instdir}
rm -rf \
Gemfile \
Rakefile \
test/ \
%{nil}
popd
rm -f %{buildroot}%{gem_cache}

%check
pushd .%{gem_instdir}
#rake test --verbose --trace
#ruby -Ilib -rubygems test/run-test.rb
cat > test.rb <<EOF
require "rubygems"
gem "test-unit"
require "test/unit"
Dir.glob("test/**/test-*.rb") do |file|
require file
end
EOF
ruby -Ilib:test:. ./test.rb
ruby test/run-test.rb
popd

%files
%license LGPL-2.1
%dir %{gem_instdir}
%doc %{gem_instdir}/[A-Z]*
%exclude %{gem_instdir}/Rakefile
%exclude %{gem_instdir}/setup.rb
%dir %{gem_instdir}
%doc %{gem_instdir}/NEWS.md
%license %{gem_instdir}/README.rdoc
%license %{gem_instdir}/LGPL-2.1
%{gem_libdir}/
%{gem_cache}

%{gem_spec}

%files doc
%{gem_instdir}/test/
%files doc
%{gem_docdir}

%changelog
* Tue Mar 22 2022 Neha Agarwal <[email protected]> - 1.4.5-4
- Build from .tar.gz source.

* Thu Feb 24 2022 Pawel Winogrodzki <[email protected]> - 1.4.5-3
* Fri Dec 20 2024 Akhila Guruju <[email protected]> - 1.5.7-2
- Initial Azure Linux import from Fedora 41 (license: MIT).
- License verified.

* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 1.4.5-2
- Initial CBL-Mariner import from Fedora 34 (license: MIT).
* Fri Oct 25 2024 Mamoru TASAKA <[email protected]> - 1.5.7-1
- 1.5.7

* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 1.5.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 1.5.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Sun Nov 19 2023 Mamoru TASAKA <[email protected]> - 1.5.6-1
- 1.5.6

* Tue Sep 5 2023 Mamoru TASAKA <[email protected]> - 1.5.5-1
- 1.5.5

* Thu Aug 31 2023 Mamoru TASAKA <[email protected]> - 1.5.3-1
- 1.5.3

* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

* Fri Jun 16 2023 Mamoru TASAKA <[email protected]> - 1.5.2-1
- 1.5.2

* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 1.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Wed Nov 30 2022 Mamoru TASAKA <[email protected]> - 1.5.1-1
- 1.5.1

* Sun Jul 31 2022 Mamoru TASAKA <[email protected]> - 1.4.9-1
- 1.4.9

* Sat Jul 23 2022 Fedora Release Engineering <[email protected]> - 1.4.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 1.4.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Mon Jan 17 2022 Mamoru TASAKA <[email protected]> - 1.4.7-1
- 1.4.7

* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 1.4.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Mon Apr 19 2021 Mamoru TASAKA <[email protected]> - 1.4.6-1
- 1.4.6

* Fri Feb 5 2021 Mamoru TASAKA <[email protected]> - 1.4.5-1
- 1.4.5
Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26674,8 +26674,8 @@
"type": "other",
"other": {
"name": "rubygem-pkg-config",
"version": "1.4.5",
"downloadUrl": "https://github.com/ruby-gnome/pkg-config/archive/refs/tags/1.4.5.tar.gz"
"version": "1.5.7",
"downloadUrl": "https://rubygems.org/downloads/pkg-config-1.5.7.gem"
}
}
},
Expand Down

0 comments on commit 5fdfe68

Please sign in to comment.