SampleSpecs/rubymodule: различия между версиями
Нет описания правки |
Нет описания правки |
||
Строка 53: | Строка 53: | ||
%doc README* | %doc README* | ||
%ruby_sitelibdir/* | %ruby_sitelibdir/* | ||
%files doc | %files doc |
Версия от 11:28, 23 апреля 2014
%define pkgname <pkgname>
Name: ruby-%pkgname
Version: 0.1
Release: alt1
Summary: FILL ME
Group: Development/Ruby
License: MIT/Ruby
Url: http://rubyforge.org/projects/%pkgname
Packager: Ruby Maintainers Team <ruby@packages.altlinux.org>
BuildArch: noarch
Source: %pkgname-%version.tar
BuildRequires(pre): rpm-build-ruby
BuildRequires: ruby-tool-setup
# For arch-specific package
#BuildRequires: libruby-devel
%description
FILL ME.
%package doc
Summary: Documentation files for %name
Group: Documentation
BuildArch: noarch
%description doc
Documentation files for %{name}.
%prep
%setup -n %pkgname-%version
%update_setup_rb
%build
%ruby_config
%ruby_build
%install
%ruby_install
%rdoc lib/
# Remove unnecessary files
rm -f %buildroot%ruby_ri_sitedir/{Object/cdesc-Object.ri,cache.ri,created.rid}
%check
%ruby_test_unit -Ilib:test test
%files
%doc README*
%ruby_sitelibdir/*
%files doc
%ruby_ri_sitedir/*
%changelog
* Sun Sep 32 3001 Sample Packager <sample@altlinux.org> 0.1-alt1
- initial build for ALT Linux Sisyphus
PS: За основу взят ruby-module.erb