Репозиторий Sisyphus
Последнее обновление: 29 сентября 2020 | Пакетов: 17704 | Посещений: 19314208
en ru br
Репозитории ALT
5.1: 3.2-alt2_2jpp5

Группа :: Разработка/Java
Пакет: sablecc

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

Epoch: 0
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
BuildRequires: unzip
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-1.8-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:           sablecc
Version:        3.7
Release:        alt1_9jpp8
Summary:        A parser generator written in Java
License:        LGPLv2+
URL:            http://sablecc.org
# https://github.com/SableCC/sablecc
Source0:        http://downloads.sourceforge.net/sablecc/sablecc-3.7.zip
#Source1:        http://repo1.maven.org/maven2/sablecc/sablecc/3.2/sablecc-3.2.pom
Patch0:         sablecc-fsf-addr.patch
BuildArch:      noarch

BuildRequires:  ant
BuildRequires:  javapackages-local
Source44: import.info

SableCC is a parser generator which generates object-oriented frameworks for
building compilers, interpreters and other text parsers. SableCC keeps a clean
separation between machine and user code which leads to a shorter development

%setup -q
%patch0 -p1
# The ant task has to be unpacked and sanitized prior to the main build.
tar xzf %{name}-anttask-1.0.1.tar.gz
find -name "*.jar" -delete
find -name "*.class" -delete
rm %{name}-anttask-1.0.1.tar.gz

sed -i "s|lib/%{name}.jar|%{_javadir}/%{name}.jar|" bin/%{name}

%mvn_file %{name}:%{name} %{name}

# Build the ant task and copy *only* that class into the main
# classes directory.  Don't copy everything, because there's a
# namespace collision that will break the build.
pushd %{name}-anttask-1.0.1
mkdir -p ../classes/org/sablecc/ant/taskdef/
cp classes/org/sablecc/ant/taskdef/Sablecc.class ../classes/org/sablecc/ant/taskdef/

# the define here prevents ant from redownloading the deleted tarball

ant -Dsablecc-anttask_available=true jar

%mvn_artifact %{name}:%{name}:%{version} lib/%{name}.jar

mkdir -p %{buildroot}%{_bindir}
install -pm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}

%files -f .mfiles
%doc --no-dereference LICENSE COPYING-LESSER
%doc doc/*


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

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin