Blob Blame History Raw
# Generated from lockfile-1.4.3.gem by gem2rpm -*- rpm-spec -*-
%global gem_name lockfile

Summary: Ruby library for creating NFS safe lockfiles
Name: rubygem-%{gem_name}
Version: 1.4.3
Release: 8%{?dist}
Group: Development/Languages
License: GPLv2 or Ruby
URL: http://codeforpeople.com/lib/ruby/lockfile/
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
Source1: http://codeforpeople.com/lib/license.txt

Requires: ruby(abi) = 1.9.1
Requires: ruby(rubygems)
BuildRequires: ruby
BuildRequires: rubygems-devel
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}

%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires:%{name} = %{version}-%{release}

%description doc
Documentation for %{name}

%description
rlock creates NFS resistant lockfiles


%prep

%build

%install

mkdir -p %{buildroot}%{gem_dir}
gem install --local --install-dir %{buildroot}%{gem_dir} \
            --force --rdoc %{SOURCE0}
cp -p %{SOURCE1} %{buildroot}%{gem_instdir}

mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gem_dir}/bin
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
chmod 755 %{buildroot}%{gem_instdir}/samples/lock.sh
chmod 755 %{buildroot}%{gem_instdir}/samples/a.rb
chmod 755 %{buildroot}%{gem_instdir}/bin/*

# Remove unnecessary files
rm -f %{buildroot}/%{gem_instdir}/install.rb
rm -f %{buildroot}/%{gem_instdir}/gemspec.rb
rm -f %{buildroot}/%{gem_instdir}/rlock


%files
%defattr(-, root, root, -)
%dir %{gem_instdir}
%{_bindir}/rlock
%{_bindir}/rlock-1.4.3
%doc %{gem_instdir}/README
%doc %{gem_instdir}/license.txt
%{gem_libdir}
%{gem_instdir}/bin
%{gem_cache}
%{gem_spec}

%files doc
%defattr(-, root, root, -)
%{gem_docdir}
%{gem_instdir}/samples
%{gem_instdir}/doc

%changelog
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 1.4.3-7
- Rebuilt for Ruby 1.9.3.

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Tue Jun 08 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-4
- Using cp -p instead of install -p to preserve perms

* Tue Jun 08 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-3
- Using install -p instead of cp for installing license.txt

* Mon Jun 07 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-2
- Changed license to GPLv2 from GPLv2+
- Added license.txt file to main package
- Left /bin in main package, update permissions.

* Tue Jun 02 2010 Shreyank Gupta <sgupta@redhat.com> - 1.4.3-1
- Initial package