Группа :: Разработка/Java
Пакет: apache-logging-log4j
Главная Изменения Спек Патчи Загрузить Bugs and FR
Name: apache-logging-log4j
Version: 1.2.9
Release: alt0.M24.1
Summary: Java logging package
License: Apache Software License
Group: Development/Java
Packager: Alexey Borovskoy <alb at altlinux.ru>
Url: http://logging.apache.org/log4j/docs
Source0: http://www.apache.org/dist/logging/log4j/1.2.9/logging-log4j-%version.tar.gz
Source1: %name-build.properties
Patch1: %name-build.patch
BuildPreReq: /proc
BuildPreReq: j2se1.4-sun-devel jaf javamail ant rpm-build-java
#Временно. До заливки новой сборки явамашины.
#BuildPreReq: j2se1.4-sun-javadoc
BuildArch: noarch
Obsoletes: jakarta-log4j
Requires: java-common >= 1.2 j2se >= 1.4.2 jaf javamail jaxp_parser_impl
%description
Log4j is a tool to help the programmer output log statements to a
variety of output targets.
%package manual
Summary: Manual for %name
Group: Development/Java
Requires: %name = %version-%release
%description manual
Documentation for %name
%package javadoc
Summary: Javadoc for %name
Group: Development/Java
Requires: java-common >= 1.2
#Requires: j2se1.4-sun-javadoc
%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 logging-log4j-%version
%patch1
%__cp %SOURCE1 build.properties
%build
%__ant jar
%install
%__mkdir_p %buildroot%_javadir
%__mkdir_p %buildroot%_javadocdir
%__mkdir_p %buildroot%_docdir/%name-%version
%__mkdir_p %buildroot%_datadir/%name
%__install -m644 dist/lib/log4j-%version.jar %buildroot%_javadir/%name.jar
%__mv docs/api %buildroot%_javadocdir/%name
%__mv docs %buildroot%_docdir/%name-%version
%__cp *.txt %buildroot%_docdir/%name-%version
%__mv examples %buildroot%_datadir/%name/samples
%__ln_s %_javadocdir/%name %buildroot%_docdir/%name-%version/docs/api
%files
%dir %_docdir/%name-%version
%_javadir/*.jar
%_docdir/%name-%version/LICENSE.txt
%files manual
%_docdir/%name-%version/docs
%files javadoc
%_javadocdir/%name
%files samples
%_datadir/%name
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.2.9
Release: alt0.M24.1
Summary: Java logging package
License: Apache Software License
Group: Development/Java
Packager: Alexey Borovskoy <alb at altlinux.ru>
Url: http://logging.apache.org/log4j/docs
Source0: http://www.apache.org/dist/logging/log4j/1.2.9/logging-log4j-%version.tar.gz
Source1: %name-build.properties
Patch1: %name-build.patch
BuildPreReq: /proc
BuildPreReq: j2se1.4-sun-devel jaf javamail ant rpm-build-java
#Временно. До заливки новой сборки явамашины.
#BuildPreReq: j2se1.4-sun-javadoc
BuildArch: noarch
Obsoletes: jakarta-log4j
Requires: java-common >= 1.2 j2se >= 1.4.2 jaf javamail jaxp_parser_impl
%description
Log4j is a tool to help the programmer output log statements to a
variety of output targets.
%package manual
Summary: Manual for %name
Group: Development/Java
Requires: %name = %version-%release
%description manual
Documentation for %name
%package javadoc
Summary: Javadoc for %name
Group: Development/Java
Requires: java-common >= 1.2
#Requires: j2se1.4-sun-javadoc
%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 logging-log4j-%version
%patch1
%__cp %SOURCE1 build.properties
%build
%__ant jar
%install
%__mkdir_p %buildroot%_javadir
%__mkdir_p %buildroot%_javadocdir
%__mkdir_p %buildroot%_docdir/%name-%version
%__mkdir_p %buildroot%_datadir/%name
%__install -m644 dist/lib/log4j-%version.jar %buildroot%_javadir/%name.jar
%__mv docs/api %buildroot%_javadocdir/%name
%__mv docs %buildroot%_docdir/%name-%version
%__cp *.txt %buildroot%_docdir/%name-%version
%__mv examples %buildroot%_datadir/%name/samples
%__ln_s %_javadocdir/%name %buildroot%_docdir/%name-%version/docs/api
%files
%dir %_docdir/%name-%version
%_javadir/*.jar
%_docdir/%name-%version/LICENSE.txt
%files manual
%_docdir/%name-%version/docs
%files javadoc
%_javadocdir/%name
%files samples
%_datadir/%name
%changelog
…
Полный changelog можно просмотреть здесь