Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 606821 Details for
Bug 851490
Added maven pom - Fixes according to new guidelines
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Added maven pom - Fixes according to new guidelines for fc18
0001-Added-maven-pom-Fixes-according-to-new-guidelines.patch (text/plain), 4.52 KB, created by
gil cattaneo
on 2012-08-24 10:23:38 UTC
(
hide
)
Description:
Added maven pom - Fixes according to new guidelines for fc18
Filename:
MIME Type:
Creator:
gil cattaneo
Created:
2012-08-24 10:23:38 UTC
Size:
4.52 KB
patch
obsolete
>From df0ac8c2eae6f8225d721baa949e00d471a8891c Mon Sep 17 00:00:00 2001 >From: gil <puntogil@libero.it> >Date: Fri, 24 Aug 2012 12:21:10 +0200 >Subject: [PATCH] Added maven pom - Fixes according to new guidelines > >--- > dnsjava-2.0.6.pom | 6 +++ > dnsjava.spec | 89 +++++++++++++++++++++++++++++----------------------- > 2 files changed, 56 insertions(+), 39 deletions(-) > create mode 100644 dnsjava-2.0.6.pom > >diff --git a/dnsjava-2.0.6.pom b/dnsjava-2.0.6.pom >new file mode 100644 >index 0000000..6f1d4e3 >--- /dev/null >+++ b/dnsjava-2.0.6.pom >@@ -0,0 +1,6 @@ >+<project> >+ <modelVersion>4.0.0</modelVersion> >+ <groupId>dnsjava</groupId> >+ <artifactId>dnsjava</artifactId> >+ <version>2.0.6</version> >+</project> >\ No newline at end of file >diff --git a/dnsjava.spec b/dnsjava.spec >index a5f24f6..90b1709 100644 >--- a/dnsjava.spec >+++ b/dnsjava.spec >@@ -1,29 +1,32 @@ > # Test of properly function library need DNS querys. It work perfectly on my machine and pass all tests. > # But internet access is not allowed from mock chroot. So, I need disable it by default. Yo may enable it if you want. >-%define do_not_test 1 >- >-Name: dnsjava >-Version: 2.0.6 >-Release: 10%{?dist} >-Summary: Java DNS implementation >-License: BSD and MIT >-URL: http://www.dnsjava.org/ >-Source0: http://www.dnsjava.org/download/%{name}-%{version}.tar.gz >-Group: System Environment/Libraries >-#Epoch: 0 >-#Vendor: JPackage Project >-#Distribution: JPackage >-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot >- >-BuildRequires: ant, jpackage-utils >= 0:1.5 >- >-BuildRequires: java-devel >= 1.7 >-Requires: java >= 1.7 >-Requires: jpackage-utils >-BuildArch: noarch >+%global do_not_test 1 >+ >+Name: dnsjava >+Version: 2.0.6 >+Release: 11%{?dist} >+Summary: Java DNS implementation >+Group: System Environment/Libraries >+License: BSD and MIT >+URL: http://www.dnsjava.org/ >+Source0: http://www.dnsjava.org/download/%{name}-%{version}.tar.gz >+Source1: %{name}-%{version}.pom >+# bz#842582 >+Patch0: dnsjava-2.0.6-java1.5.target.patch >+#Epoch: 0 >+#Vendor: JPackage Project >+#Distribution: JPackage >+ >+BuildRequires: ant >+BuildRequires: java-devel >= 1.7 >+BuildRequires: jpackage-utils >= 0:1.5 > > # For tests >-BuildRequires: ant-junit >+BuildRequires: ant-junit >+ >+Requires: java >= 1.7 >+Requires: jpackage-utils >+BuildArch: noarch > > > %description >@@ -47,11 +50,12 @@ well as allowing additional resolver properties to be set. > A 'dig' clone and a dynamic update program are included, as well as a > primary-only server. > >-%package javadoc >-Summary: Javadoc for %{name} >-Group: Documentation >+%package javadoc >+Summary: Javadoc for %{name} >+Group: Documentation >+Requires: jpackage-utils > >-%description javadoc >+%description javadoc > Javadoc for %{name}. > > %prep >@@ -67,19 +71,18 @@ export CLASSPATH=%(build-classpath jce) > ant -Dj2se.javadoc=%{_javadocdir}/java clean docsclean jar docs > > %install >-rm -rf %{buildroot} >- > # jars > mkdir -p %{buildroot}%{_javadir} >-cp -p %{name}-%{version}.jar %{buildroot}%{_javadir} >-ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar >+cp -p %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar > >-# javadoc >-mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version} >-cp -pr doc/* %{buildroot}%{_javadocdir}/%{name}-%{version} >+# pom and depmap >+mkdir -p %{buildroot}%{_mavenpomdir} >+install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom >+%add_maven_depmap JPP-%{name}.pom %{name}.jar > >-%clean >-rm -rf %{buildroot} >+# javadoc >+mkdir -p %{buildroot}%{_javadocdir}/%{name} >+cp -pr doc/* %{buildroot}%{_javadocdir}/%{name} > > %if ! 0%{?do_not_test} > %check >@@ -89,16 +92,24 @@ ant -Dj2se.javadoc=%{_javadocdir}/java run_tests > %endif > > %files >-%defattr(-,root,root,-) > %doc Changelog README USAGE examples.html *.java > %{_javadir}/* >+%{_mavenpomdir}/JPP-%{name}.pom >+%{_mavendepmapfragdir}/%{name} > >-%files javadoc >-%defattr(-,root,root,-) >-%doc %{_javadocdir}/%{name}-%{version} >+%pre javadoc >+# workaround for rpm bug, can be removed in F-17 >+[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \ >+rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : > >+%files javadoc >+%doc %{_javadocdir}/%{name} > > %changelog >+* Fri Aug 24 2012 gil cattaneo <puntogil@libero.it> - 2.0.6-11 >+- Added maven pom >+- Fixes according to new guidelines (versionless jars, javadocs) >+ > * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-10 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild > >-- >1.7.7.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 851490
:
606820
| 606821 |
606824
|
606825