]> git.pld-linux.org Git - packages/ruby-re2.git/blobdiff - ruby-re2.spec
- updated to 1.6.0
[packages/ruby-re2.git] / ruby-re2.spec
index e38b80be23a1d883a9be3919a26c6c72ae2f2267..9f4d3951d153541db2301ab507962e6c17815102 100644 (file)
@@ -1,22 +1,23 @@
 #
 # Conditional build:
-%bcond_with    tests           # build without tests
+%bcond_with    tests           # unit tests
 
 %define        pkgname re2
 Summary:       Ruby bindings to re2
+Summary(pl.UTF-8):     Wiązania języka Ruby do re2
 Name:          ruby-%{pkgname}
-Version:       0.7.0
-Release:       2
+Version:       1.6.0
+Release:       1
 License:       BSD
 Group:         Development/Languages
 Source0:       http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5: bc012bbef488bf365022e9cbbcb1ad3f
-URL:           http://mudge.name/re2/
-BuildRequires: libstdc++-devel
-BuildRequires: re2-devel
+# Source0-md5: b587f794c54434e232a1df9b227f4dd4
+URL:           https://github.com/mudge/re2
+BuildRequires: libstdc++-devel >= 6:4.8
+BuildRequires: re2-devel >= 20200302
 BuildRequires: rpm-rubyprov
 BuildRequires: rpmbuild(macros) >= 1.656
-BuildRequires: ruby-devel
+BuildRequires: ruby-devel >= 1:1.8.7
 %if %{with tests}
 BuildRequires: ruby-minitest < 6
 BuildRequires: ruby-minitest >= 5.4
@@ -29,9 +30,16 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Ruby bindings to re2, an efficient, principled regular expression
 library.
 
+%description -l pl.UTF-8
+Wiązania języka Ruby do re2 - wydajnej, zasadniczej biblioteki
+wyrażeń regularnych.
+
 %prep
 %setup -q -n %{pkgname}-%{version}
 
+# required by gem helper
+%{__tar} xf %{SOURCE0} metadata.gz
+
 %build
 # write .gemspec
 %__gem_helper spec
@@ -46,6 +54,7 @@ cd ext/%{pkgname}
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir},%{ruby_specdir}}
+
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
 install -p ext/re2/re2.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}
@@ -55,7 +64,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc LICENSE.txt README.md
+%attr(755,root,root) %{ruby_vendorarchdir}/re2.so
 %{ruby_vendorlibdir}/re2.rb
 %{ruby_vendorlibdir}/re2
-%{ruby_vendorarchdir}/re2.so
 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
This page took 0.101022 seconds and 4 git commands to generate.