f558747
# Generated from lockfile-1.4.3.gem by gem2rpm -*- rpm-spec -*-
9f6df3b
%global gem_name lockfile
f558747
f558747
Summary: Ruby library for creating NFS safe lockfiles
9f6df3b
Name: rubygem-%{gem_name}
f558747
Version: 1.4.3
f36c4ce
Release: 8%{?dist}
f558747
Group: Development/Languages
f558747
License: GPLv2 or Ruby
f558747
URL: http://codeforpeople.com/lib/ruby/lockfile/
9f6df3b
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
f558747
Source1: http://codeforpeople.com/lib/license.txt
f558747
9f6df3b
Requires: ruby(abi) = 1.9.1
9f6df3b
Requires: ruby(rubygems)
f558747
BuildRequires: ruby
9f6df3b
BuildRequires: rubygems-devel
f558747
BuildArch: noarch
9f6df3b
Provides: rubygem(%{gem_name}) = %{version}
f558747
f558747
%package doc
f558747
Summary: Documentation for %{name}
f558747
Group: Documentation
f558747
Requires:%{name} = %{version}-%{release}
f558747
f558747
%description doc
f558747
Documentation for %{name}
f558747
f558747
%description
f558747
rlock creates NFS resistant lockfiles
f558747
f558747
f558747
%prep
f558747
f558747
%build
f558747
f558747
%install
f558747
9f6df3b
mkdir -p %{buildroot}%{gem_dir}
9f6df3b
gem install --local --install-dir %{buildroot}%{gem_dir} \
f558747
            --force --rdoc %{SOURCE0}
9f6df3b
cp -p %{SOURCE1} %{buildroot}%{gem_instdir}
f558747
f558747
mkdir -p %{buildroot}/%{_bindir}
9f6df3b
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
9f6df3b
rmdir %{buildroot}%{gem_dir}/bin
9f6df3b
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
9f6df3b
chmod 755 %{buildroot}%{gem_instdir}/samples/lock.sh
9f6df3b
chmod 755 %{buildroot}%{gem_instdir}/samples/a.rb
9f6df3b
chmod 755 %{buildroot}%{gem_instdir}/bin/*
f558747
f558747
# Remove unnecessary files
9f6df3b
rm -f %{buildroot}/%{gem_instdir}/install.rb
9f6df3b
rm -f %{buildroot}/%{gem_instdir}/gemspec.rb
9f6df3b
rm -f %{buildroot}/%{gem_instdir}/rlock
f558747
f558747
f558747
%files
f558747
%defattr(-, root, root, -)
9f6df3b
%dir %{gem_instdir}
f558747
%{_bindir}/rlock
f558747
%{_bindir}/rlock-1.4.3
9f6df3b
%doc %{gem_instdir}/README
9f6df3b
%doc %{gem_instdir}/license.txt
9f6df3b
%{gem_libdir}
9f6df3b
%{gem_instdir}/bin
9f6df3b
%{gem_cache}
9f6df3b
%{gem_spec}
f558747
f558747
%files doc
f558747
%defattr(-, root, root, -)
9f6df3b
%{gem_docdir}
9f6df3b
%{gem_instdir}/samples
9f6df3b
%{gem_instdir}/doc
f558747
f558747
%changelog
f36c4ce
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-8
f36c4ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f36c4ce
9f6df3b
* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 1.4.3-7
9f6df3b
- Rebuilt for Ruby 1.9.3.
9f6df3b
14e8d24
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-6
14e8d24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
14e8d24
b7cfb50
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-5
b7cfb50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b7cfb50
e0d4ca5
* Tue Jun 08 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-4
e0d4ca5
- Using cp -p instead of install -p to preserve perms
e0d4ca5
f558747
* Tue Jun 08 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-3
f558747
- Using install -p instead of cp for installing license.txt
f558747
f558747
* Mon Jun 07 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-2
f558747
- Changed license to GPLv2 from GPLv2+
f558747
- Added license.txt file to main package
f558747
- Left /bin in main package, update permissions.
f558747
f558747
* Tue Jun 02 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-1
f558747
- Initial package