Blame SPECS/jackson-core.spec

ec1aa0
%global pkg_name jackson-core
ec1aa0
%{?scl:%scl_package %{pkg_name}}
ec1aa0
%{?java_common_find_provides_and_requires}
ec1aa0
Name:          %{?scl_prefix}jackson-core
ec1aa0
Version:       2.5.0
ec1aa0
Release:       2.3%{?dist}
ec1aa0
Summary:       Core part of Jackson
ec1aa0
License:       ASL 2.0
ec1aa0
URL:           http://wiki.fasterxml.com/JacksonHome
ec1aa0
Source0:       https://github.com/FasterXML/jackson-core/archive/%{pkg_name}-%{version}.tar.gz
ec1aa0
ec1aa0
# test deps
ec1aa0
BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit)
ec1aa0
ec1aa0
BuildRequires: %{?scl_prefix_java_common}maven-local
ec1aa0
ec1aa0
BuildArch:     noarch
ec1aa0
ec1aa0
%description
ec1aa0
Core part of Jackson that defines Streaming API as well
ec1aa0
as basic shared abstractions.
ec1aa0
ec1aa0
%package javadoc
ec1aa0
Summary:       Javadoc for %{pkg_name}
ec1aa0
ec1aa0
%description javadoc
ec1aa0
This package contains javadoc for %{pkg_name}.
ec1aa0
ec1aa0
%prep
ec1aa0
ec1aa0
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
ec1aa0
%setup -q -n %{pkg_name}-%{pkg_name}-%{version}
ec1aa0
ec1aa0
# remove unavailable com.google.doclava doclava 1.0.3
ec1aa0
%pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration"
ec1aa0
%pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']" '
ec1aa0
<configuration>
ec1aa0
  <encoding>${project.reporting.outputEncoding}</encoding>
ec1aa0
  <quiet>true</quiet>
ec1aa0
  <source>${javac.src.version}</source>
ec1aa0
</configuration>'
ec1aa0
ec1aa0
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
ec1aa0
ec1aa0
cp -p src/main/resources/META-INF/LICENSE .
ec1aa0
cp -p src/main/resources/META-INF/NOTICE .
ec1aa0
sed -i 's/\r//' LICENSE NOTICE
ec1aa0
ec1aa0
%mvn_file : %{pkg_name}
ec1aa0
ec1aa0
%pom_remove_parent
ec1aa0
ec1aa0
%pom_xpath_inject "pom:build/pom:plugins" '
ec1aa0
        <plugin>
ec1aa0
          <groupId>org.apache.felix</groupId>
ec1aa0
          <artifactId>maven-bundle-plugin</artifactId>
ec1aa0
          <extensions>true</extensions>
ec1aa0
          <version>1.0.0</version>
ec1aa0
          <configuration>
ec1aa0
            <instructions>
ec1aa0
              <_nouses>true</_nouses>
ec1aa0
              <_removeheaders>Include-Resource,JAVA_1_3_HOME,JAVA_1_4_HOME,JAVA_1_5_HOME,JAVA_1_6_HOME,JAVA_1_7_HOME</_removeheaders>
ec1aa0
              <_versionpolicy>${osgi.versionpolicy}</_versionpolicy>
ec1aa0
              <Bundle-Name>${project.name}</Bundle-Name>
ec1aa0
              <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
ec1aa0
              <Bundle-Description>${project.description}</Bundle-Description>
ec1aa0
              <Export-Package>${osgi.export}</Export-Package>
ec1aa0
              <Private-Package>${osgi.private}</Private-Package>
ec1aa0
              <Import-Package>${osgi.import}</Import-Package>
ec1aa0
              <DynamicImport-Package>${osgi.dynamicImport}</DynamicImport-Package>
ec1aa0
              <Bundle-DocURL>${project.url}</Bundle-DocURL>
ec1aa0
              <Bundle-RequiredExecutionEnvironment>${osgi.requiredExecutionEnvironment}</Bundle-RequiredExecutionEnvironment>
ec1aa0
ec1aa0
              <Implementation-Build-Date>${maven.build.timestamp}</Implementation-Build-Date>
ec1aa0
              <X-Compile-Source-JDK>${javac.src.version}</X-Compile-Source-JDK>
ec1aa0
              <X-Compile-Target-JDK>${javac.target.version}</X-Compile-Target-JDK>
ec1aa0
ec1aa0
              <Implementation-Title>${project.name}</Implementation-Title>
ec1aa0
              <Implementation-Version>${project.version}</Implementation-Version>
ec1aa0
              <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
ec1aa0
              <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
ec1aa0
ec1aa0
              <Specification-Title>${project.name}</Specification-Title>
ec1aa0
              <Specification-Version>${project.version}</Specification-Version>
ec1aa0
              <Specification-Vendor>${project.organization.name}</Specification-Vendor>
ec1aa0
            </instructions>
ec1aa0
          </configuration>
ec1aa0
        </plugin>'
ec1aa0
ec1aa0
# Avoid using the replacer-plugin
ec1aa0
%pom_remove_plugin com.google.code.maven-replacer-plugin:replacer
ec1aa0
ec1aa0
file=`find -name PackageVersion.java.in`
ec1aa0
gid=`grep "<groupId>" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'`
ec1aa0
aid=`grep "<artifactId>" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'`
ec1aa0
v=`grep "<version>" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'`
ec1aa0
pkg=`echo ${file} | cut -d/ -f5- | rev | cut -d/ -f2- | rev | tr '/' '\.'`
ec1aa0
ec1aa0
sed -i "s/@projectversion@/${v}/
ec1aa0
        s/@projectgroupid@/${gid}/
ec1aa0
        s/@package@/${pkg}/
ec1aa0
        s/@projectartifactid@/${aid}/" ${file}
ec1aa0
ec1aa0
cp ${file} ${file%.in}
ec1aa0
ec1aa0
%{?scl:EOF}
ec1aa0
ec1aa0
%build
ec1aa0
ec1aa0
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
ec1aa0
ec1aa0
%mvn_build -- -Dmaven.test.skip=true
ec1aa0
ec1aa0
%{?scl:EOF}
ec1aa0
ec1aa0
%install
ec1aa0
ec1aa0
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
ec1aa0
%mvn_install
ec1aa0
ec1aa0
%{?scl:EOF}
ec1aa0
ec1aa0
%files -f .mfiles
ec1aa0
%doc README.md release-notes/* LICENSE NOTICE
ec1aa0
ec1aa0
%files javadoc -f .mfiles-javadoc
ec1aa0
%doc LICENSE NOTICE
ec1aa0
ec1aa0
%changelog
ec1aa0
* Tue Jul 28 2015 Alexander Kurtakov <akurtako@redhat.com> 2.5.0-2.3
ec1aa0
- Drop Provides/Obsoletes outside of dts namespace.
ec1aa0
ec1aa0
* Fri Jul 03 2015 Roland Grunberg <rgrunber@redhat.com> - 2.5.0-2.2
ec1aa0
- Replace %%license with %%doc.
ec1aa0
ec1aa0
* Thu Jul 02 2015 Roland Grunberg <rgrunber@redhat.com> - 2.5.0-2.1
ec1aa0
- SCL-ize.
ec1aa0
ec1aa0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-2
ec1aa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ec1aa0
ec1aa0
* Sat Jan 31 2015 gil cattaneo <puntogil@libero.it> 2.5.0-1
ec1aa0
- update to 2.5.0
ec1aa0
ec1aa0
* Sat Sep 20 2014 gil cattaneo <puntogil@libero.it> 2.4.2-1
ec1aa0
- update to 2.4.2
ec1aa0
ec1aa0
* Wed Jul 23 2014 gil cattaneo <puntogil@libero.it> 2.4.1.1-1
ec1aa0
- update to 2.4.1.1
ec1aa0
ec1aa0
* Wed Jul 02 2014 gil cattaneo <puntogil@libero.it> 2.4.1-1
ec1aa0
- update to 2.4.1
ec1aa0
ec1aa0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-5
ec1aa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ec1aa0
ec1aa0
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.2.2-4
ec1aa0
- Use Requires: java-headless rebuild (#1067528)
ec1aa0
ec1aa0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-3
ec1aa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ec1aa0
ec1aa0
* Mon Jul 22 2013 gil cattaneo <puntogil@libero.it> 2.2.2-2
ec1aa0
- review fixes
ec1aa0
ec1aa0
* Tue Jul 16 2013 gil cattaneo <puntogil@libero.it> 2.2.2-1
ec1aa0
- 2.2.2
ec1aa0
- renamed jackson-core
ec1aa0
ec1aa0
* Tue May 07 2013 gil cattaneo <puntogil@libero.it> 2.2.1-1
ec1aa0
- 2.2.1
ec1aa0
ec1aa0
* Wed Oct 24 2012 gil cattaneo <puntogil@libero.it> 2.1.0-1
ec1aa0
- update to 2.1.0
ec1aa0
- renamed jackson2-core
ec1aa0
ec1aa0
* Thu Sep 13 2012 gil cattaneo <puntogil@libero.it> 2.0.6-1
ec1aa0
- initial rpm