3 %bcond_without tests # build without tests
6 Summary: Library to read and write netrc files
11 Group: Development/Languages
12 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
13 # Source0-md5: 1322b2053484eec64992e00c7f71cd69
14 Patch0: https://github.com/glensc/netrc/commit/c4967ef0b3e6a9d4ffd491009e9caccdfb552a02.patch
15 # Patch0-md5: 1f865973c16d590a8be9c6b69282e7dc
16 URL: https://github.com/geemus/netrc
17 BuildRequires: rpm-rubyprov
18 BuildRequires: rpmbuild(macros) >= 1.656
21 BuildRequires: ruby-minitest
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This library can read and update netrc files, preserving formatting
28 including comments and whitespace.
31 Summary: Documentation for %{name}
33 Requires: %{name} = %{version}-%{release}
36 Documentation for %{name}
39 %setup -q -n %{gem_name}-%{version}
42 chmod 600 data/newlineless.netrc
44 # cleanup backups after patching
45 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
55 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc Readme.md LICENSE changelog.txt
63 %{ruby_vendorlibdir}/netrc.rb