]> git.pld-linux.org Git - packages/ruby-re2.git/blob - ruby-re2.spec
- updated to 1.6.0
[packages/ruby-re2.git] / ruby-re2.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # unit tests
4
5 %define pkgname re2
6 Summary:        Ruby bindings to re2
7 Summary(pl.UTF-8):      Wiązania języka Ruby do re2
8 Name:           ruby-%{pkgname}
9 Version:        1.6.0
10 Release:        1
11 License:        BSD
12 Group:          Development/Languages
13 Source0:        http://rubygems.org/downloads/%{pkgname}-%{version}.gem
14 # Source0-md5:  b587f794c54434e232a1df9b227f4dd4
15 URL:            https://github.com/mudge/re2
16 BuildRequires:  libstdc++-devel >= 6:4.8
17 BuildRequires:  re2-devel >= 20200302
18 BuildRequires:  rpm-rubyprov
19 BuildRequires:  rpmbuild(macros) >= 1.656
20 BuildRequires:  ruby-devel >= 1:1.8.7
21 %if %{with tests}
22 BuildRequires:  ruby-minitest < 6
23 BuildRequires:  ruby-minitest >= 5.4
24 BuildRequires:  ruby-rake-compiler < 1
25 BuildRequires:  ruby-rake-compiler >= 0.9
26 %endif
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Ruby bindings to re2, an efficient, principled regular expression
31 library.
32
33 %description -l pl.UTF-8
34 Wiązania języka Ruby do re2 - wydajnej, zasadniczej biblioteki
35 wyrażeń regularnych.
36
37 %prep
38 %setup -q -n %{pkgname}-%{version}
39
40 # required by gem helper
41 %{__tar} xf %{SOURCE0} metadata.gz
42
43 %build
44 # write .gemspec
45 %__gem_helper spec
46
47 cd ext/%{pkgname}
48 %{__ruby} extconf.rb
49 %{__make} \
50         CC="%{__cc}" \
51         LDFLAGS="%{rpmldflags}" \
52         CFLAGS="%{rpmcflags} -fPIC"
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir},%{ruby_specdir}}
57
58 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
59 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
60 install -p ext/re2/re2.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc LICENSE.txt README.md
68 %attr(755,root,root) %{ruby_vendorarchdir}/re2.so
69 %{ruby_vendorlibdir}/re2.rb
70 %{ruby_vendorlibdir}/re2
71 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
This page took 0.062131 seconds and 3 git commands to generate.