SampleSpecs/rubymodule: различия между версиями

Материал из ALT Linux Wiki
(Пример спека на основе ruby-module.erb (см. http://git.altlinux.org/people/solo/public/specs.git?p=specs.git;a=commit;h=05ab17adda62abd9f4838d3335c22a55ba6a4450))
 
Нет описания правки
Строка 19: Строка 19:
Patch: %pkgname-%version-%release.patch
Patch: %pkgname-%version-%release.patch


# Automatically added by buildreq on Sun Sep 32 3001 (-bi)
BuildRequires(pre): rpm-build-ruby
BuildRequires: rpm-build-ruby ruby-test-unit ruby-tool-rdoc ruby-tool-setup
BuildRequires: ruby-test-unit ruby-tool-rdoc ruby-tool-setup


%description
%description
Строка 46: Строка 46:
%ruby_install
%ruby_install
%rdoc lib/
%rdoc lib/


%check
%check
%ruby_test_unit -Ilib:test test
%ruby_test_unit -Ilib:test test
# Remove unnecessary files
rm -f %buildroot%ruby_ri_sitedir/{Object/cdesc-Object.ri,cache.ri,created.rid}


%files
%files

Версия от 15:35, 5 марта 2014

# vim: set ft=spec: -*- rpm-spec -*-

%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
Patch: %pkgname-%version-%release.patch

BuildRequires(pre): rpm-build-ruby
BuildRequires: ruby-test-unit ruby-tool-rdoc ruby-tool-setup

%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
%patch -p1
%update_setup_rb

%build
%ruby_config
%ruby_build

%install
%ruby_install
%rdoc lib/


%check
%ruby_test_unit -Ilib:test test
# Remove unnecessary files
rm -f %buildroot%ruby_ri_sitedir/{Object/cdesc-Object.ri,cache.ri,created.rid}

%files
%doc README
%ruby_sitelibdir/*
# For arch-specific files
#%%ruby_sitearchdir/*

%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