diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a84fba9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/glassfish-annotation-api-1.2-src-svn.tar.gz diff --git a/.rh-maven33-glassfish-annotation-api.metadata b/.rh-maven33-glassfish-annotation-api.metadata new file mode 100644 index 0000000..7b9371f --- /dev/null +++ b/.rh-maven33-glassfish-annotation-api.metadata @@ -0,0 +1 @@ +7699cd0404ef68ee1ddda5dfea1d953ead1663d3 SOURCES/glassfish-annotation-api-1.2-src-svn.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +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/SPECS/glassfish-annotation-api.spec b/SPECS/glassfish-annotation-api.spec new file mode 100644 index 0000000..2bf96f0 --- /dev/null +++ b/SPECS/glassfish-annotation-api.spec @@ -0,0 +1,106 @@ +%global pkg_name glassfish-annotation-api +%{?scl:%scl_package %{pkg_name}} +%{?maven_find_provides_and_requires} + +%global namedreltag %{nil} +%global namedversion %{version}%{?namedreltag} +%global oname javax.annotation-api + +Name: %{?scl_prefix}%{pkg_name} +Version: 1.2 +Release: 9.2%{?dist} +Summary: Common Annotations API Specification (JSR 250) +License: CDDL or GPLv2 with exceptions +# http://jcp.org/en/jsr/detail?id=250 +URL: http://glassfish.java.net/ +# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.annotation-api-1.2/ glassfish-annotation-api-1.2 +# tar czf glassfish-annotation-api-1.2-src-svn.tar.gz glassfish-annotation-api-1.2 +Source0: %{pkg_name}-%{namedversion}-src-svn.tar.gz + +BuildRequires: %{?scl_prefix}jvnet-parent +BuildRequires: %{?scl_prefix}glassfish-legal + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix}maven-plugin-bundle +BuildRequires: %{?scl_prefix}maven-remote-resources-plugin +BuildRequires: %{?scl_prefix}maven-source-plugin +BuildRequires: %{?scl_prefix}spec-version-maven-plugin + +BuildArch: noarch + +%description +Common Annotations APIs for the Java Platform (JSR 250). + +%package javadoc +Summary: Javadoc for %{pkg_name} + +%description javadoc +This package contains javadoc for %{pkg_name}. + +%prep +%setup -q -n %{pkg_name}-%{namedversion} + +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin +%mvn_file :%{oname} %{pkg_name} +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +%mvn_build +%{?scl:EOF} + +sed -i 's/\r//' target/classes/META-INF/LICENSE.txt +cp -p target/classes/META-INF/LICENSE.txt . + +%install +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +%mvn_install +%{?scl:EOF} + +%files -f .mfiles +%doc LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt + +%changelog +* Mon Feb 08 2016 Michal Srb - 1.2-9.2 +- Fix BR on maven-local & co. + +* Mon Jan 11 2016 Mikolaj Izdebski - 1.2-9.1 +- SCL-ize package + +* Wed Jun 17 2015 Fedora Release Engineering - 1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Feb 03 2015 gil cattaneo 1.2-8 +- introduce license macro + +* Sat Jun 07 2014 Fedora Release Engineering - 1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 28 2014 Michael Simacek - 1.2-6 +- Use Requires: java-headless rebuild (#1067528) + +* Sat Aug 03 2013 Fedora Release Engineering - 1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 08 2013 gil cattaneo 1.2-4 +- switch to XMvn +- minor changes to adapt to current guideline + +* Sun May 26 2013 gil cattaneo 1.2-3 +- rebuilt with spec-version-maven-plugin support + +* Wed May 22 2013 gil cattaneo 1.2-2 +- fixed manifest + +* Tue May 07 2013 gil cattaneo 1.2-1 +- update to 1.2 + +* Tue Apr 02 2013 gil cattaneo 1.2-0.1.b04 +- initial rpm