Группа :: Разработка/Прочее
Пакет: eautomake
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define bname automake
Name: e%bname
Version: 1.0
Release: alt2
Summary: Automake tool for Erlang
URL: http://www.process-one.net/en/blogs/article/erlang_automake_project/
License: EPL
Group: Development/Other
Source: http://www.process-one.net/downloads/contribs/%bname-%version.tar
BuildArch: noarch
Requires: erlang-otp-common
# Automatically added by buildreq on Sat Aug 16 2008
BuildRequires: erlang-docbuilder erlang-otp-devel
BuildRequires: rpm-build-erlang symlinks
%description
This tool is designed to remove the burden of writing and maintaining
pure Erlang "Emakefile" build file manually.
%prep
%setup -n %bname
%build
erlc %{?eoptflags:%eoptflags} -o ebin -I include src/*.erl
cd doc
erl -noshell -run docb_gen users_guide "overview.edoc" -run docb_transform file "chapter.xml" -run init stop
rm -f chapter.xml
mv chapter.html overview.html
%install
install -d -m 0755 %buildroot{%_otplibdir/%bname-%version/{doc,ebin,include},%_docdir/%name-%version,%_bindir}
install -m 0644 ebin/*.beam %buildroot%_otplibdir/%bname-%version/ebin/
install -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/
install -m 0644 doc/*.{html,sample} %buildroot%_otplibdir/%bname-%version/doc/
install -m 0644 EPLICENCE README TODO %buildroot%_otplibdir/%bname-%version/
install -m 0755 bin/%name %buildroot%_bindir/
ln -sf %buildroot%_otplibdir/%bname-%version/{EPLICENCE,README,TODO,doc/*.{html,sample}} %buildroot%_docdir/%name-%version/
symlinks -csd %buildroot%_docdir/%name-%version
%files
%_bindir/*
%_otplibdir/%bname-%version
%_docdir/%name-%version
%changelog
…
Полный changelog можно просмотреть здесь
Name: e%bname
Version: 1.0
Release: alt2
Summary: Automake tool for Erlang
URL: http://www.process-one.net/en/blogs/article/erlang_automake_project/
License: EPL
Group: Development/Other
Source: http://www.process-one.net/downloads/contribs/%bname-%version.tar
BuildArch: noarch
Requires: erlang-otp-common
# Automatically added by buildreq on Sat Aug 16 2008
BuildRequires: erlang-docbuilder erlang-otp-devel
BuildRequires: rpm-build-erlang symlinks
%description
This tool is designed to remove the burden of writing and maintaining
pure Erlang "Emakefile" build file manually.
%prep
%setup -n %bname
%build
erlc %{?eoptflags:%eoptflags} -o ebin -I include src/*.erl
cd doc
erl -noshell -run docb_gen users_guide "overview.edoc" -run docb_transform file "chapter.xml" -run init stop
rm -f chapter.xml
mv chapter.html overview.html
%install
install -d -m 0755 %buildroot{%_otplibdir/%bname-%version/{doc,ebin,include},%_docdir/%name-%version,%_bindir}
install -m 0644 ebin/*.beam %buildroot%_otplibdir/%bname-%version/ebin/
install -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/
install -m 0644 doc/*.{html,sample} %buildroot%_otplibdir/%bname-%version/doc/
install -m 0644 EPLICENCE README TODO %buildroot%_otplibdir/%bname-%version/
install -m 0755 bin/%name %buildroot%_bindir/
ln -sf %buildroot%_otplibdir/%bname-%version/{EPLICENCE,README,TODO,doc/*.{html,sample}} %buildroot%_docdir/%name-%version/
symlinks -csd %buildroot%_docdir/%name-%version
%files
%_bindir/*
%_otplibdir/%bname-%version
%_docdir/%name-%version
%changelog
…
Полный changelog можно просмотреть здесь