]> git.pld-linux.org Git - packages/gem2rpm.git/blobdiff - gem2rpm.spec
tests (no longer?) need utf8 locale
[packages/gem2rpm.git] / gem2rpm.spec
index 710b1b3a31323fb8c541e9705d3a9c5f5c220136..8e46718c212cb857b5b742c41ff8396313024c65 100644 (file)
@@ -4,23 +4,23 @@
 
 Summary:       Generate rpm specfiles from gems
 Name:          gem2rpm
-Version:       0.11.1
+Version:       0.11.3
 Release:       1
 License:       GPL v2+
 Group:         Development/Languages
 Source0:       https://github.com/fedora-ruby/gem2rpm/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: b1b60ade93fd61c22c17cfe4b95c3609
+# Source0-md5: 5d81c9a3a9849f905819781fb61f86aa
 Source2:       pld.spec.erb
 Patch0:                gems.patch
+Patch1:                os-release-quotes.patch
 Patch2:                style.patch
 URL:           https://github.com/fedora-ruby/gem2rpm
 BuildRequires: rpm-rubyprov
 BuildRequires: rpmbuild(macros) >= 1.656
 %if %{with tests}
-%if %(locale -a | grep -q '^en_US$'; echo $?)
-BuildRequires: glibc-localedb-all
-%endif
+BuildRequires: ruby-rake
 %endif
+Requires:      pld-release
 Requires:      ruby-rubygems
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,6 +42,7 @@ Documentation for %{name}.
 %setup -q
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 %patch0 -p1
+%patch1 -p1
 %patch2 -p1
 cp -p %{SOURCE2} templates
 
@@ -50,9 +51,7 @@ find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
 %build
 %if %{with tests}
-# tests need UTF-8 locale
-LC_ALL=en_US.UTF-8 \
-testrb -Itest test/
+rake test
 %endif
 
 %install
This page took 0.098851 seconds and 4 git commands to generate.