Update to current Java packaging guidelines
This commit is contained in:
parent
11e04d893c
commit
74c755b065
@ -16,7 +16,7 @@
|
|||||||
Summary: Protocol Buffers - Google's data interchange format
|
Summary: Protocol Buffers - Google's data interchange format
|
||||||
Name: protobuf
|
Name: protobuf
|
||||||
Version: 2.5.0
|
Version: 2.5.0
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: http://protobuf.googlecode.com/files/protobuf-%{version}.tar.bz2
|
Source: http://protobuf.googlecode.com/files/protobuf-%{version}.tar.bz2
|
||||||
@ -158,18 +158,9 @@ under GNU Emacs. You do not need to install this package to use
|
|||||||
%package java
|
%package java
|
||||||
Summary: Java Protocol Buffers runtime library
|
Summary: Java Protocol Buffers runtime library
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
BuildRequires: java-devel >= 1.6
|
|
||||||
BuildRequires: jpackage-utils
|
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: maven-compiler-plugin
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
BuildRequires: maven-install-plugin
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||||
BuildRequires: maven-jar-plugin
|
|
||||||
BuildRequires: maven-javadoc-plugin
|
|
||||||
BuildRequires: maven-resources-plugin
|
|
||||||
BuildRequires: maven-surefire-plugin
|
|
||||||
BuildRequires: maven-antrun-plugin
|
|
||||||
Requires: java-headless
|
|
||||||
Requires: jpackage-utils
|
|
||||||
Conflicts: %{name}-compiler > %{version}
|
Conflicts: %{name}-compiler > %{version}
|
||||||
Conflicts: %{name}-compiler < %{version}
|
Conflicts: %{name}-compiler < %{version}
|
||||||
|
|
||||||
@ -179,7 +170,6 @@ This package contains Java Protocol Buffers runtime library.
|
|||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadocs for %{name}-java
|
Summary: Javadocs for %{name}-java
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
Requires: jpackage-utils
|
|
||||||
Requires: %{name}-java = %{version}-%{release}
|
Requires: %{name}-java = %{version}-%{release}
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
@ -220,7 +210,8 @@ popd
|
|||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
pushd java
|
pushd java
|
||||||
mvn-rpmbuild install javadoc:javadoc
|
%mvn_file : %{name}
|
||||||
|
%mvn_build
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -244,15 +235,7 @@ install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/synt
|
|||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
pushd java
|
pushd java
|
||||||
install -d -m 755 %{buildroot}%{_javadir}
|
%mvn_install
|
||||||
install -pm 644 target/%{name}-java-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
||||||
|
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
||||||
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_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -336,19 +319,18 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||||||
%{emacs_lispdir}/protobuf-mode.el
|
%{emacs_lispdir}/protobuf-mode.el
|
||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
%files java
|
%files java -f java/.mfiles
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
%{_mavendepmapfragdir}/%{name}
|
|
||||||
%{_javadir}/%{name}.jar
|
|
||||||
%doc examples/AddPerson.java examples/ListPeople.java
|
%doc examples/AddPerson.java examples/ListPeople.java
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc -f java/.mfiles-javadoc
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{_javadocdir}/%{name}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.0-9
|
||||||
|
- Update to current Java packaging guidelines
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-8
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user