package init
This commit is contained in:
parent
eda1ff8e38
commit
66b1f652ea
BIN
pkg-config-1.4.1.gem
Normal file
BIN
pkg-config-1.4.1.gem
Normal file
Binary file not shown.
16
rubygem-pkg-config-1.1.3-cflags-result-sort.patch
Normal file
16
rubygem-pkg-config-1.1.3-cflags-result-sort.patch
Normal file
@ -0,0 +1,16 @@
|
||||
--- pkg-config-1.1.3/test/test_pkg_config.rb.newpkgconfig 2012-08-02 14:18:08.216508255 +0900
|
||||
+++ pkg-config-1.1.3/test/test_pkg_config.rb 2012-08-02 15:14:58.597886753 +0900
|
||||
@@ -109,7 +109,12 @@
|
||||
def assert_pkg_config(package, pkg_config_args, actual)
|
||||
result = pkg_config(package, *pkg_config_args)
|
||||
result = nil if result.empty?
|
||||
- assert_equal(result, actual)
|
||||
+ begin
|
||||
+ assert_equal(result, actual)
|
||||
+ rescue
|
||||
+ puts "Did not match, retry with sorting"
|
||||
+ assert_equal(result.split(" ").sort.join(" "), actual.split(" ").sort.join(" "))
|
||||
+ end
|
||||
end
|
||||
|
||||
def assert_override_variables(expected, override_variables)
|
||||
69
rubygem-pkg-config.spec
Normal file
69
rubygem-pkg-config.spec
Normal file
@ -0,0 +1,69 @@
|
||||
%global gem_name pkg-config
|
||||
%undefine _changelog_trimtime
|
||||
%undefine __brp_mangle_shebangs
|
||||
Summary: A pkg-config implementation by Ruby
|
||||
Name: rubygem-pkg-config
|
||||
Version: 1.4.1
|
||||
Release: 1
|
||||
License: LGPLv2+
|
||||
URL: http://github.com/rcairo/pkg-config
|
||||
Source0: http://rubygems.org/gems/pkg-config-%{version}.gem
|
||||
Patch0: rubygem-pkg-config-1.1.3-cflags-result-sort.patch
|
||||
Requires: ruby(release)
|
||||
BuildRequires: ruby(release) rubygems-devel rubygem(test-unit) ruby-devel cairo-devel
|
||||
Requires: rubygems
|
||||
BuildArch: noarch
|
||||
Provides: rubygem(pkg-config) = %{version}-%{release}
|
||||
%description
|
||||
This gem contains a pkg-config implementation by Ruby
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for rubygem-pkg-config
|
||||
Requires: rubygem-pkg-config = %{version}-%{release}
|
||||
%description doc
|
||||
This package contains documentation for rubygem-pkg-config.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
%gem_install -n %{SOURCE0}
|
||||
find . -name \*.gem | xargs chmod 0644
|
||||
pushd .%{gem_instdir}
|
||||
%patch0 -p1
|
||||
popd
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* %{buildroot}/%{gem_dir}/
|
||||
rm -f %{buildroot}%{gem_instdir}/extconf.rb
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
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
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%doc %{gem_instdir}/[A-Z]*
|
||||
%exclude %{gem_instdir}/Rakefile
|
||||
%exclude %{gem_instdir}/setup.rb
|
||||
%{gem_libdir}/
|
||||
%{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%{gem_instdir}/test/
|
||||
%{gem_docdir}
|
||||
|
||||
%changelog
|
||||
* Tue Jul 28 2020 yaokai <yaokai13@huawei.com> - 1.4.1-1
|
||||
- package init
|
||||
5
rubygem-pkg-config.yaml
Normal file
5
rubygem-pkg-config.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/ruby-gnome/pkg-config
|
||||
version_control: github
|
||||
src_repo: ruby-gnome/pkg-config
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user