- Do not depend on ant-nodeps.
OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-portlet-1_0-api?expand=0&rev=9
This commit is contained in:
parent
8f7329478c
commit
774e81104e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 8 11:00:39 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Do not depend on ant-nodeps.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 9 11:05:30 UTC 2013 - tchvatal@suse.com
|
Mon Sep 9 11:05:30 UTC 2013 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apache-portlet-1_0-api
|
# spec file for package apache-portlet-1_0-api
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -21,7 +21,6 @@
|
|||||||
%define with_maven 0
|
%define with_maven 0
|
||||||
%define short_name portlet
|
%define short_name portlet
|
||||||
%define base_name %{short_name}-1.0-api
|
%define base_name %{short_name}-1.0-api
|
||||||
|
|
||||||
Name: apache-portlet-1_0-api
|
Name: apache-portlet-1_0-api
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -35,9 +34,12 @@ Source1: apache-portlet-1.0-api-pom.xml
|
|||||||
Source2: apache-portlet-1.0-api-LICENSE.TXT
|
Source2: apache-portlet-1.0-api-LICENSE.TXT
|
||||||
Source3: apache-portlet-1.0-api-build.xml
|
Source3: apache-portlet-1.0-api-build.xml
|
||||||
BuildRequires: ant >= 1.6
|
BuildRequires: ant >= 1.6
|
||||||
BuildRequires: ant-nodeps
|
|
||||||
BuildRequires: java-devel >= 1.4
|
BuildRequires: java-devel >= 1.4
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
|
Provides: portlet = %{version}
|
||||||
|
Provides: portlet-1.0-api = %{version}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with_maven}
|
%if %{with_maven}
|
||||||
BuildRequires: maven2 >= 2.0.4-9
|
BuildRequires: maven2 >= 2.0.4-9
|
||||||
BuildRequires: maven2-plugin-compiler
|
BuildRequires: maven2-plugin-compiler
|
||||||
@ -48,28 +50,20 @@ BuildRequires: maven2-plugin-release
|
|||||||
BuildRequires: maven2-plugin-resources
|
BuildRequires: maven2-plugin-resources
|
||||||
BuildRequires: maven2-plugin-surefire
|
BuildRequires: maven2-plugin-surefire
|
||||||
%endif
|
%endif
|
||||||
PreReq: javapackages-tools
|
|
||||||
Provides: portlet = %{version}
|
|
||||||
Provides: portlet-1.0-api = %{version}
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Java Standard Portlet API accoring to JSR-168, from Jetspeed-2 .
|
Java Standard Portlet API accoring to JSR-168, from Jetspeed-2 .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Portlet API 1.0 from Jetspeed2
|
Summary: Portlet API 1.0 from Jetspeed2
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires(post): /bin/rm,/bin/ln
|
Requires(post): /bin/ln
|
||||||
|
Requires(post): /bin/rm
|
||||||
Requires(postun): /bin/rm
|
Requires(postun): /bin/rm
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
Java Standard Portlet API accoring to JSR-168, from Jetspeed-2 .
|
Java Standard Portlet API accoring to JSR-168, from Jetspeed-2 .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -90,25 +84,25 @@ ant jar javadoc
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
install -d -m 755 %{buildroot}%{_javadir}
|
||||||
install -m 0644 target/portlet-api-1.0.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
install -m 0644 target/portlet-api-1.0.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}-%{version}.jar %{base_name}-%{version}.jar)
|
(cd %{buildroot}%{_javadir} && ln -sf %{name}-%{version}.jar %{base_name}-%{version}.jar)
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}-%{version}.jar portlet-api-%{version}.jar)
|
(cd %{buildroot}%{_javadir} && ln -sf %{name}-%{version}.jar portlet-api-%{version}.jar)
|
||||||
# create unversioned symlinks
|
# create unversioned symlinks
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} $(echo $jar | sed -e 's+-%{version}\.jar+.jar+'); done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} $(echo $jar | sed -e 's+-%{version}\.jar+.jar+'); done)
|
||||||
|
|
||||||
#poms
|
#poms
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-portlet-api.pom
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-portlet-api.pom
|
||||||
%add_maven_depmap JPP-portlet-api.pom portlet-api.jar
|
%add_maven_depmap JPP-portlet-api.pom portlet-api.jar
|
||||||
|
|
||||||
#javadoc
|
#javadoc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
cp -pr target/site/apidocs/* \
|
cp -pr target/site/apidocs/* \
|
||||||
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
%{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
install -d -m 755 %{buildroot}%{_docdir}/%{name}-%{version}
|
||||||
cp %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/LICENSE.TXT
|
cp %{SOURCE2} %{buildroot}%{_docdir}/%{name}-%{version}/LICENSE.TXT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
|
Loading…
Reference in New Issue
Block a user