3 %bcond_with tests # build without tests
5 %define pkgname pkg-config
6 Summary: pkg-config module for Ruby
7 Summary(pl.UTF-8): Moduł pkg-config dla języka Ruby
12 Group: Development/Languages
13 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
14 # Source0-md5: c32204c8d6f0d1cae84f6c67b3e0fd92
15 Patch0: %{name}-avoid-cycle.patch
17 URL: https://github.com/ruby-gnome2/pkg-config
18 BuildRequires: pkgconfig
19 BuildRequires: rpm-rubyprov
20 BuildRequires: rpmbuild(macros) >= 1.656
22 BuildRequires: ruby-bundler
23 BuildRequires: ruby-rake
24 BuildRequires: ruby-test-unit
25 BuildRequires: ruby-test-unit-notify
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 pkg-config module for Ruby.
33 %description -l pl.UTF-8
34 Moduł pkg-config dla języka Ruby.
37 %setup -q -n %{pkgname}-%{version}
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
48 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
49 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{ruby_vendorlibdir}/%{pkgname}.rb
58 %{ruby_vendorlibdir}/%{pkgname}
59 %{ruby_specdir}/%{pkgname}-%{version}.gemspec