From 4cf2ed713d5f46921875bde3ffaf6d83bc8e8c0d Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 25 2013 09:44:03 +0000 Subject: import jsr-311-1.1.1-4.el7.src.rpm --- diff --git a/.jsr-311.metadata b/.jsr-311.metadata new file mode 100644 index 0000000..b4ba833 --- /dev/null +++ b/.jsr-311.metadata @@ -0,0 +1 @@ +8905a5a7432f8ec877efe0534a79047c2df88dc3 SOURCES/jsr-311-1.1.1.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/jsr-311-pom.patch b/SOURCES/jsr-311-pom.patch new file mode 100644 index 0000000..1c4b2a1 --- /dev/null +++ b/SOURCES/jsr-311-pom.patch @@ -0,0 +1,57 @@ +--- pom.xml 2009-11-09 13:43:21.000000000 +0100 ++++ pom.xml-gil 2012-02-10 17:23:47.881823249 +0100 +@@ -83,7 +83,7 @@ + + + +- ++ + + org.apache.maven.plugins + maven-javadoc-plugin ++ 2.8 + + + validate +@@ -116,6 +117,7 @@ + + org.apache.maven.plugins + maven-source-plugin ++ 2.1.2 + + + attach-sources +@@ -129,6 +131,7 @@ + + org.apache.felix + maven-bundle-plugin ++ 2.0.0 + true + + +@@ -148,13 +151,13 @@ + + + +- ++ + + + + diff --git a/SPECS/jsr-311.spec b/SPECS/jsr-311.spec new file mode 100644 index 0000000..545f94e --- /dev/null +++ b/SPECS/jsr-311.spec @@ -0,0 +1,102 @@ +Name: jsr-311 +Version: 1.1.1 +Release: 4%{?dist} +Summary: JAX-RS: Java API for RESTful Web Services +Group: Development/Libraries +License: CDDL +Url: http://jsr311.java.net + +# svn export https://svn.java.net/svn/jsr311~svn/tags/jsr311-api-1.1.1 jsr-311-1.1.1 +# tar cvzf jsr-311-1.1.1.tgz jsr-311-1.1.1 +Source0: %{name}-%{version}.tgz + +# Patch the POM: +Patch0: %{name}-pom.patch + +BuildRequires: java-devel +BuildRequires: jpackage-utils + +BuildRequires: buildnumber-maven-plugin +BuildRequires: junit +BuildRequires: maven-local +BuildRequires: maven-compiler-plugin +BuildRequires: maven-jar-plugin +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-plugin-bundle +BuildRequires: maven-source-plugin + +Requires: jpackage-utils +Requires: java + +BuildArch: noarch + + +%description +JAX-RS: Java API for RESTful Web Services + + +%package javadoc +Summary: Javadocs for %{name} +Group: Documentation +Requires: jpackage-utils + + +%description javadoc +This package contains javadoc for %{name}. + + +%prep +%setup -q +%patch0 + + +%build +mvn-rpmbuild \ + -Dproject.build.sourceEncoding=UTF-8 \ + install \ + javadoc:aggregate + + +%install + +# Jar files: +install -d -m 755 %{buildroot}%{_javadir} +install -pm 644 target/jsr311-api-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar + +# POM files: +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom + +# Javadoc files: +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/. + +# Dependencies map: +%add_maven_depmap JPP-%{name}.pom %{name}.jar + + +%files +%{_javadir}/*.jar +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/* + + +%files javadoc +%{_javadocdir}/%{name} + + +%changelog +* Thu Feb 14 2013 Fedora Release Engineering - 1.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 1.1.1-3 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Thu Jul 19 2012 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Feb 10 2011 Juan Hernandez 1.1.1-1 +- Adapted (mostly copied, in fact) from the corresponding package from Mageia + (http://www.mageia.org) with support from Gil Cattaneo . +