Update to latest java packaging guidelines
This commit is contained in:
parent
a421fc82bf
commit
dc0e7eb912
@ -12,7 +12,7 @@
|
||||
Summary: Protocol Buffers - Google's data interchange format
|
||||
Name: protobuf
|
||||
Version: 2.4.1
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: BSD
|
||||
Group: Development/Libraries
|
||||
Source: http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
|
||||
@ -132,7 +132,7 @@ Summary: Java Protocol Buffers runtime library
|
||||
Group: Development/Languages
|
||||
BuildRequires: java-devel >= 1.6
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: maven2
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-compiler-plugin
|
||||
BuildRequires: maven-install-plugin
|
||||
BuildRequires: maven-jar-plugin
|
||||
@ -144,8 +144,6 @@ BuildRequires: maven-doxia
|
||||
BuildRequires: maven-doxia-sitetools
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
Requires(post): jpackage-utils
|
||||
Requires(postun): jpackage-utils
|
||||
Conflicts: %{name}-compiler > %{version}
|
||||
Conflicts: %{name}-compiler < %{version}
|
||||
|
||||
@ -193,9 +191,7 @@ popd
|
||||
|
||||
%if %{with java}
|
||||
pushd java
|
||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
||||
mkdir -p $MAVEN_REPO_LOCAL
|
||||
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL install javadoc:javadoc
|
||||
mvn-rpmbuild install javadoc:javadoc
|
||||
popd
|
||||
%endif
|
||||
|
||||
@ -225,7 +221,7 @@ cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_to_maven_depmap com.google.protobuf %{name}-java %{version} JPP %{name}
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||
|
||||
%endif
|
||||
|
||||
@ -238,14 +234,6 @@ install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%post compiler -p /sbin/ldconfig
|
||||
%postun compiler -p /sbin/ldconfig
|
||||
|
||||
%if %{with java}
|
||||
%post java
|
||||
%update_maven_depmap
|
||||
|
||||
%postun java
|
||||
%update_maven_depmap
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
@ -306,9 +294,9 @@ rm -rf %{buildroot}
|
||||
%if %{with java}
|
||||
%files java
|
||||
%defattr(-, root, root, -)
|
||||
%{_mavenpomdir}/JPP-protobuf.pom
|
||||
%{_mavendepmapfragdir}/protobuf
|
||||
%{_javadir}/*
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%{_javadir}/%{name}.jar
|
||||
%doc examples/AddPerson.java examples/ListPeople.java
|
||||
|
||||
%files javadoc
|
||||
@ -317,6 +305,9 @@ rm -rf %{buildroot}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Mar 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4.1-5
|
||||
- Update to latest java packaging guidelines
|
||||
|
||||
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
|
||||
- Rebuilt for c++ ABI breakage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user