From ec1aa0587e4f9743e7f5f018a79ab0a9d8572945 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 16 2015 14:52:57 +0000 Subject: import devtoolset-4-jackson-core-2.5.0-2.3.el7 --- diff --git a/.devtoolset-4-jackson-core.metadata b/.devtoolset-4-jackson-core.metadata new file mode 100644 index 0000000..a3537b6 --- /dev/null +++ b/.devtoolset-4-jackson-core.metadata @@ -0,0 +1 @@ +9de597800266dcb6cc02276c47c7eb4983f72241 SOURCES/jackson-core-2.5.0.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1598040 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jackson-core-2.5.0.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/jackson-core.spec b/SPECS/jackson-core.spec new file mode 100644 index 0000000..5009b82 --- /dev/null +++ b/SPECS/jackson-core.spec @@ -0,0 +1,178 @@ +%global pkg_name jackson-core +%{?scl:%scl_package %{pkg_name}} +%{?java_common_find_provides_and_requires} +Name: %{?scl_prefix}jackson-core +Version: 2.5.0 +Release: 2.3%{?dist} +Summary: Core part of Jackson +License: ASL 2.0 +URL: http://wiki.fasterxml.com/JacksonHome +Source0: https://github.com/FasterXML/jackson-core/archive/%{pkg_name}-%{version}.tar.gz + +# test deps +BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit) + +BuildRequires: %{?scl_prefix_java_common}maven-local + +BuildArch: noarch + +%description +Core part of Jackson that defines Streaming API as well +as basic shared abstractions. + +%package javadoc +Summary: Javadoc for %{pkg_name} + +%description javadoc +This package contains javadoc for %{pkg_name}. + +%prep + +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%setup -q -n %{pkg_name}-%{pkg_name}-%{version} + +# remove unavailable com.google.doclava doclava 1.0.3 +%pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration" +%pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']" ' + + ${project.reporting.outputEncoding} + true + ${javac.src.version} +' + +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" + +cp -p src/main/resources/META-INF/LICENSE . +cp -p src/main/resources/META-INF/NOTICE . +sed -i 's/\r//' LICENSE NOTICE + +%mvn_file : %{pkg_name} + +%pom_remove_parent + +%pom_xpath_inject "pom:build/pom:plugins" ' + + org.apache.felix + maven-bundle-plugin + true + 1.0.0 + + + <_nouses>true + <_removeheaders>Include-Resource,JAVA_1_3_HOME,JAVA_1_4_HOME,JAVA_1_5_HOME,JAVA_1_6_HOME,JAVA_1_7_HOME + <_versionpolicy>${osgi.versionpolicy} + ${project.name} + ${project.groupId}.${project.artifactId} + ${project.description} + ${osgi.export} + ${osgi.private} + ${osgi.import} + ${osgi.dynamicImport} + ${project.url} + ${osgi.requiredExecutionEnvironment} + + ${maven.build.timestamp} + ${javac.src.version} + ${javac.target.version} + + ${project.name} + ${project.version} + ${project.groupId} + ${project.organization.name} + + ${project.name} + ${project.version} + ${project.organization.name} + + + ' + +# Avoid using the replacer-plugin +%pom_remove_plugin com.google.code.maven-replacer-plugin:replacer + +file=`find -name PackageVersion.java.in` +gid=`grep "" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'` +aid=`grep "" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'` +v=`grep "" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'` +pkg=`echo ${file} | cut -d/ -f5- | rev | cut -d/ -f2- | rev | tr '/' '\.'` + +sed -i "s/@projectversion@/${v}/ + s/@projectgroupid@/${gid}/ + s/@package@/${pkg}/ + s/@projectartifactid@/${aid}/" ${file} + +cp ${file} ${file%.in} + +%{?scl:EOF} + +%build + +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} + +%mvn_build -- -Dmaven.test.skip=true + +%{?scl:EOF} + +%install + +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_install + +%{?scl:EOF} + +%files -f .mfiles +%doc README.md release-notes/* LICENSE NOTICE + +%files javadoc -f .mfiles-javadoc +%doc LICENSE NOTICE + +%changelog +* Tue Jul 28 2015 Alexander Kurtakov 2.5.0-2.3 +- Drop Provides/Obsoletes outside of dts namespace. + +* Fri Jul 03 2015 Roland Grunberg - 2.5.0-2.2 +- Replace %%license with %%doc. + +* Thu Jul 02 2015 Roland Grunberg - 2.5.0-2.1 +- SCL-ize. + +* Wed Jun 17 2015 Fedora Release Engineering - 2.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jan 31 2015 gil cattaneo 2.5.0-1 +- update to 2.5.0 + +* Sat Sep 20 2014 gil cattaneo 2.4.2-1 +- update to 2.4.2 + +* Wed Jul 23 2014 gil cattaneo 2.4.1.1-1 +- update to 2.4.1.1 + +* Wed Jul 02 2014 gil cattaneo 2.4.1-1 +- update to 2.4.1 + +* Sat Jun 07 2014 Fedora Release Engineering - 2.2.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 28 2014 Michael Simacek - 2.2.2-4 +- Use Requires: java-headless rebuild (#1067528) + +* Sat Aug 03 2013 Fedora Release Engineering - 2.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 22 2013 gil cattaneo 2.2.2-2 +- review fixes + +* Tue Jul 16 2013 gil cattaneo 2.2.2-1 +- 2.2.2 +- renamed jackson-core + +* Tue May 07 2013 gil cattaneo 2.2.1-1 +- 2.2.1 + +* Wed Oct 24 2012 gil cattaneo 2.1.0-1 +- update to 2.1.0 +- renamed jackson2-core + +* Thu Sep 13 2012 gil cattaneo 2.0.6-1 +- initial rpm