diff --git a/pkg-config-1.4.1.gem b/pkg-config-1.4.1.gem new file mode 100644 index 0000000..98af3d6 Binary files /dev/null and b/pkg-config-1.4.1.gem differ diff --git a/rubygem-pkg-config-1.1.3-cflags-result-sort.patch b/rubygem-pkg-config-1.1.3-cflags-result-sort.patch new file mode 100644 index 0000000..4a94e7e --- /dev/null +++ b/rubygem-pkg-config-1.1.3-cflags-result-sort.patch @@ -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) diff --git a/rubygem-pkg-config.spec b/rubygem-pkg-config.spec new file mode 100644 index 0000000..0978387 --- /dev/null +++ b/rubygem-pkg-config.spec @@ -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 < - 1.4.1-1 +- package init diff --git a/rubygem-pkg-config.yaml b/rubygem-pkg-config.yaml new file mode 100644 index 0000000..19c5ebb --- /dev/null +++ b/rubygem-pkg-config.yaml @@ -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: "."