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

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

Name: junit
Version: 3.8.1
Release: alt2.M24.1

Summary: Java regression testing framework
License: CPL
Group: Development/Java
Url: http://www.junit.org

Packager: Mikhail Zabaluev <mhz at altlinux.ru>

Source: %name%version.tar.bz2
Source1: junit.properties

Patch1: junit-build.xml.patch

BuildPreReq: /proc
BuildPreReq: ant j2se1.4-sun-devel rpm-build-java
BuildArch: noarch

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

%description
JUnit is a regression testing framework written by Erich Gamma and Kent
Beck. It is used by the developer who implements unit tests in Java.

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

%description manual
Documentation for %name

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

%description javadoc
Javadoc for %name

%package samples
Summary: Samples for %name
Group: Development/Java
Requires: %name = %version-%release

%description samples
Samples for %name

%prep
%setup -qn %name%version
jar xvf src.jar
%patch1
%__cp %{SOURCE1} .

%build
%__ant dist

%install
%__mkdir_p %buildroot%_javadir
%__mkdir_p %buildroot%_javadocdir/%name
%__mkdir_p %buildroot%_datadir/%name
%__mkdir_p %buildroot%_docdir/%name-%version

#Fixing filenames

%__mv %name%version/doc/Changes34.html %name%version/doc/changes34.html

%__install -m644 %name%version/junit.jar %buildroot%_javadir
%__mv  %name%version/javadoc/* %buildroot%_javadocdir/%name
%__mv  %name%version/doc %buildroot%_docdir/%name-%version
%__mv  %name%version/%name/samples %buildroot%_datadir/%name
%__install -m644 cpl-v10.html %buildroot%_docdir/%name-%version
%__install -m644 README.html %buildroot%_docdir/%name-%version
%__ln_s %_javadocdir/%name %buildroot%_docdir/%name-%version/javadoc

%files
%_javadir/junit.jar
%dir %_docdir/%name-%version
%_docdir/%name-%version/cpl-v10.html

%files manual
%_docdir/%name-%version/README.html
%_docdir/%name-%version/doc
%dir %_docdir/%name-%version/javadoc

%files javadoc
%_javadocdir/%name

%files samples
%_datadir/%name

%changelog

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

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