SampleSpecs/rubymodule: различия между версиями
Нет описания правки |
Зануда (обсуждение | вклад) Нет описания правки |
||
(не показано 6 промежуточных версий 1 участника) | |||
Строка 1: | Строка 1: | ||
<source lang="Spec"> | <source lang="Spec"> | ||
%define pkgname < | %define pkgname gemmodule | ||
Name: gem-%pkgname | |||
Version: 0.0.0 | |||
Release: alt1 | |||
Summary: <summary> | |||
Group: Development/Ruby | |||
License: <LICENSE> | |||
Url: https://site.org/ | |||
Vcs: https://github.com/user/gemmodule.git | |||
Source: %name-%version.tar | |||
BuildRequires(pre): rpm-build-ruby | |||
BuildRequires: gem(another_gem_name) | |||
%description | |||
%summary | |||
%package -n %pkgname | |||
Summary: %summary | |||
Group: <required group> | |||
BuildArch: noarch | |||
%description -n %pkgname | |||
%summary | |||
%package doc | |||
Summary: Documentation for %gemname gem | |||
Group: Development/Documentation | |||
BuildArch: noarch | |||
%description | %description doc | ||
Documentation for %gemname gem. | |||
BuildArch: noarch | %package devel | ||
Summary: Development files for %gemname gem | |||
Group: Development/Documentation | |||
BuildArch: noarch | |||
%description | %description devel | ||
Development files for %gemname gem. | |||
%prep | %prep | ||
%setup | %setup | ||
%build | %build | ||
%ruby_build | %ruby_build | ||
%install | %install | ||
%ruby_install | %ruby_install | ||
%check | %check | ||
% | %ruby_test | ||
%files | %files | ||
% | %ruby_gemspec | ||
% | %ruby_gemlibdir | ||
%ruby_gemextdir | |||
%files -n %pkgname | |||
%_bindir/* | |||
%files devel | |||
%ruby_includedir/* | |||
%files doc | %files doc | ||
% | %ruby_gemdocdir | ||
%changelog | %changelog | ||
Строка 64: | Строка 74: | ||
- initial build for ALT Linux Sisyphus</source> | - initial build for ALT Linux Sisyphus</source> | ||
PS: За основу взят [ | PS: За основу взят [https://packages.altlinux.org/en/sisyphus/specfiles/alexandria] | ||
{{Category navigation|title=SampleSpecs|category=SampleSpecs|sortkey={{SUBPAGENAME}}}} | {{Category navigation|title=SampleSpecs|category=SampleSpecs|sortkey={{SUBPAGENAME}}}} | ||
[[Категория:SampleSpecs]] | [[Категория:SampleSpecs]] | ||
[[Категория:Ruby]] | [[Категория:Ruby]] |
Текущая версия от 20:18, 4 марта 2020
%define pkgname gemmodule
Name: gem-%pkgname
Version: 0.0.0
Release: alt1
Summary: <summary>
Group: Development/Ruby
License: <LICENSE>
Url: https://site.org/
Vcs: https://github.com/user/gemmodule.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-ruby
BuildRequires: gem(another_gem_name)
%description
%summary
%package -n %pkgname
Summary: %summary
Group: <required group>
BuildArch: noarch
%description -n %pkgname
%summary
%package doc
Summary: Documentation for %gemname gem
Group: Development/Documentation
BuildArch: noarch
%description doc
Documentation for %gemname gem.
%package devel
Summary: Development files for %gemname gem
Group: Development/Documentation
BuildArch: noarch
%description devel
Development files for %gemname gem.
%prep
%setup
%build
%ruby_build
%install
%ruby_install
%check
%ruby_test
%files
%ruby_gemspec
%ruby_gemlibdir
%ruby_gemextdir
%files -n %pkgname
%_bindir/*
%files devel
%ruby_includedir/*
%files doc
%ruby_gemdocdir
%changelog
* Sun Sep 32 3001 Sample Packager <sample@altlinux.org> 0.1-alt1
- initial build for ALT Linux Sisyphus
PS: За основу взят [1]