Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1574704
 поиск   регистрация   авторизация 
 
Группа :: Разработка/Java
Пакет: antlr

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: antlr
Version: 2.7.5
Release: alt0.M24.1

Summary: ANother Tool for Language Recognition
Group: Development/Java
License: Public Domain
Url: http://www.antlr.org/

Packager: Mikhail Zabaluev <mhz at altlinux.ru>

#%define javalibdir %_datadir/java

#%define javadocdir %_datadir/javadoc/%name
#%define pkgdocdir  %_docdir/%name-%version

Source0: http://www.antlr.org/download/%name-%version.tar.gz
Source1: %name-build.xml
Source2: %name.sh

BuildPreReq: /proc
BuildPreReq: j2se1.4-sun-devel ant java-common >= 1.2 rpm-build-java

Requires: java-common >= 1.2 j2se >= 1.4.2

BuildArch: noarch

%description
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
language tool that provides a framework for constructing recognizers,
compilers, and translators from grammatical descriptions containing
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
parsers].

%package manual
Group: Development/Java
Summary: Manual for %name
Requires: %name = %version-%release

%description manual
Documentation for %name.

%package javadoc
Group: Development/Other
Summary: Javadoc for %name
Requires: java-common >= 1.2

%description javadoc
Javadoc-generated API documentation for %name.

%prep
%setup -q
%__cp %SOURCE1 build.xml

%build
%__ant

%install
# jars
%__mkdir_p %buildroot%_javadir
%__install -m644 work/lib/%name.jar %buildroot%_javadir/%name.jar

%__mkdir_p %buildroot%_bindir
%__install -m755 %SOURCE2 %buildroot%_bindir/%name

# javadoc

%__mkdir_p %buildroot%_javadocdir/%name
%__cp -a work/api/* %buildroot%_javadocdir/%name

# docs

%__mkdir_p %buildroot%_docdir/%name-%version/manual
%__cp -a doc/* %buildroot%_docdir/%name-%version/manual
%__cp {LICENSE.txt,README.txt} %buildroot%_docdir/%name-%version

%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/*.txt
%_bindir/*
%_javadir/*

%files manual
%_docdir/%name-%version/manual

%files javadoc
%_javadocdir/*

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005