2007-01-15 23:18:26 +00:00
|
|
|
#
|
2013-09-14 18:30:59 +00:00
|
|
|
# spec file for package jakarta-commons-modeler
|
2007-01-15 23:18:26 +00:00
|
|
|
#
|
2019-02-07 07:32:45 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:18:26 +00:00
|
|
|
#
|
2009-06-18 22:32:54 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:18:26 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2009-06-18 22:32:54 +00:00
|
|
|
|
2007-01-15 23:18:26 +00:00
|
|
|
%define base_name modeler
|
|
|
|
%define short_name commons-%{base_name}
|
2017-05-20 18:20:43 +00:00
|
|
|
Name: jakarta-commons-modeler
|
2007-03-20 07:34:53 +00:00
|
|
|
Version: 2.0
|
2013-09-14 18:30:59 +00:00
|
|
|
Release: 0
|
2007-01-15 23:18:26 +00:00
|
|
|
Summary: Jakarta Commons Modeler Package
|
2011-12-06 17:20:15 +00:00
|
|
|
License: Apache-2.0
|
2007-01-15 23:18:26 +00:00
|
|
|
Group: Development/Libraries/Java
|
2009-06-18 22:32:54 +00:00
|
|
|
Url: http://jakarta.apache.org/commons/modeler/
|
2017-05-20 18:20:43 +00:00
|
|
|
Source0: %{short_name}-%{version}-src.tar.bz2
|
|
|
|
BuildRequires: ant
|
2017-09-18 11:46:56 +00:00
|
|
|
BuildRequires: fdupes
|
2017-05-20 18:20:43 +00:00
|
|
|
BuildRequires: jakarta-commons-digester
|
|
|
|
BuildRequires: javapackages-tools
|
|
|
|
BuildRequires: junit
|
|
|
|
BuildRequires: mx4j
|
|
|
|
BuildRequires: xalan-j2
|
|
|
|
BuildRequires: xml-commons-apis
|
2009-06-18 22:32:54 +00:00
|
|
|
Requires: jakarta-commons-beanutils >= 1.3
|
|
|
|
Requires: jakarta-commons-collections >= 2.0
|
|
|
|
Requires: jakarta-commons-digester >= 1.2
|
|
|
|
Requires: jakarta-commons-logging >= 1.0
|
2013-09-14 18:30:59 +00:00
|
|
|
Requires: jaxp_parser_impl
|
|
|
|
Requires: jaxp_transform_impl
|
|
|
|
Requires: mx4j
|
|
|
|
Requires: xml-commons-apis
|
2017-09-18 11:46:56 +00:00
|
|
|
Provides: %{short_name} = %{version}-%{release}
|
|
|
|
Obsoletes: %{short_name} < %{version}-%{release}
|
2017-05-20 18:20:43 +00:00
|
|
|
BuildArch: noarch
|
2007-01-15 23:18:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Modeler project creates and maintains a set of Java classes to
|
|
|
|
provide a number of facilities for Model MBeans plus unit tests and
|
|
|
|
small examples of using these facilities to instrument Java classes
|
|
|
|
with Model MBean support.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for jakarta-commons-modeler
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
The Modeler project shall create and maintain a set of Java classes to
|
|
|
|
provide the facilities described in the preceeding section, plus unit
|
|
|
|
tests and small examples of using these facilities to instrument Java
|
|
|
|
classes with Model MBean support.
|
|
|
|
|
|
|
|
This package contains the javadoc documentation for the Jakarta Commons
|
|
|
|
Modeler Package.
|
|
|
|
|
|
|
|
%prep
|
2017-05-20 18:20:43 +00:00
|
|
|
%setup -q -n %{short_name}-%{version}-src
|
2007-01-15 23:18:26 +00:00
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
|
|
|
|
%build
|
2017-09-18 11:46:56 +00:00
|
|
|
ant \
|
|
|
|
-Dant.jar=$(build-classpath ant) \
|
|
|
|
-Djaxp.parser.jar=$(build-classpath jaxp_parser_impl) \
|
|
|
|
-Djaxp.xalan.jar=$(build-classpath jaxp_trasform_impl) \
|
|
|
|
-Djmx.jar=$(build-classpath mx4j/mx4j-jmx) \
|
|
|
|
-Djunit.jar=$(build-classpath junit) \
|
|
|
|
-Dcommons-digester.jar=$(build-classpath commons-digester) \
|
|
|
|
-Dcommons-logging.jar=$(build-classpath commons-logging) \
|
|
|
|
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
|
|
|
dist
|
2007-01-15 23:18:26 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-05-20 18:20:43 +00:00
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
cp -a dist/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -s ${jar} `echo $jar| sed "s|jakarta-||g"`; done)
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -s ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
2007-01-15 23:18:26 +00:00
|
|
|
# javadoc
|
2017-05-20 18:20:43 +00:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -a dist/docs/* %{buildroot}%{_javadocdir}/%{name}
|
2017-09-18 11:46:56 +00:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2007-01-15 23:18:26 +00:00
|
|
|
|
|
|
|
%files
|
2017-05-20 18:20:43 +00:00
|
|
|
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt xdocs
|
2007-01-15 23:18:26 +00:00
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%files javadoc
|
2013-09-14 18:30:59 +00:00
|
|
|
%{_javadocdir}/%{name}
|
2007-01-15 23:18:26 +00:00
|
|
|
|
2007-03-20 07:34:53 +00:00
|
|
|
%changelog
|