File apache-commons-parent.spec of Package apache-commons-parent
#
# spec file for package apache-commons-parent
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _mavenpomdir %{_datadir}/maven2/poms
%define base_name parent
%define short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 23
Release: 0
Summary: Apache Commons Parent Pom
License: Apache-2.0
Group: Development/Libraries/Java
Url: http://svn.apache.org/repos/asf/commons/proper/%{short_name}/tags/%{short_name}-%{version}/
# svn export http://svn.apache.org/repos/asf/commons/proper/commons-parent/tags/commons-parent-15
# tar caf commons-parent-23.tar.xz commons-parent-23
Source0: %{short_name}-%{version}.tar.bz2
#common-build-plugin not in fedora yet
Patch1: apache-commons-parent-remove-build-plugin.patch
BuildArch: noarch
BuildRequires: java-devel >= 1.6.0
BuildRequires: jpackage-utils
Requires: java >= 1.6.0
Requires: jpackage-utils
#Requires: maven2 >= 2.2.1
#Requires: maven-antrun-plugin
#Requires: maven-assembly-plugin
#Requires: maven-compiler-plugin
#Requires: maven-idea-plugin
#Requires: maven-install-plugin
#Requires: maven-jar-plugin
#Requires: maven-javadoc-plugin
#Requires: maven-plugin-bundle
#Requires: maven-resources-plugin
#Requires: maven-surefire-plugin
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Provides: jakarta-%{short_name} = %{version}-%{release}
Obsoletes: jakarta-%{short_name} < 23
Provides: %{short_name} = %{version}-%{release}
Obsoletes: %{short_name} < 23
%description
The Project Object Model files for the apache-commons packages.
%prep
%setup -q -n %{short_name}-%{version}
%patch1
%build
#nothing to do for the pom
%install
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt NOTICE.txt
%{_mavenpomdir}/*
%config %{_mavendepmapfragdir}/*
%dir %{_datadir}/maven2
%dir %{_datadir}/maven2/poms
%changelog