3b69969
Name:          activeio
3b69969
Version:       3.1.4
fba19a4
Release:       10%{?dist}
3b69969
Summary:       Apache ActiveMQ ActiveIO :: Core
3b69969
License:       ASL 2.0
3b69969
Url:           http://activemq.apache.org/
3b69969
# svn export http://svn.apache.org/repos/asf/activemq/activeio/tags/activeio-parent-3.1.4/ activeio-3.1.4
3b69969
# tar czf activeio-3.1.4-src-svn.tar.gz activeio-3.1.4
3b69969
Source0:       activeio-3.1.4-src-svn.tar.gz
fde059f
# build fix for howl-logger 1.0.2
fde059f
Patch0:        activeio-3.1.4-howl-logger.patch
fde059f
3b69969
BuildRequires: apache-commons-logging
fde059f
%if 0
fde059f
BuildRequires: howl-logger
fde059f
%endif
3b69969
BuildRequires: jboss-j2eemgmt-1.1-api
fde059f
BuildRequires: junit
Stanislav Ochotnicky ac5e8c4
BuildRequires: maven-local
3b69969
BuildRequires: maven-enforcer-plugin
3b69969
BuildRequires: maven-plugin-bundle
3b69969
3b69969
BuildArch:     noarch
3b69969
3b69969
%description
3b69969
A high performance IO abstraction framework.
3b69969
3b69969
%package javadoc
3b69969
Summary:       Javadoc for %{name}
3b69969
3b69969
%description javadoc
3b69969
This package contains javadoc for %{name}.
3b69969
3b69969
%prep
3b69969
%setup -q
abf3bd8
%pom_remove_plugin :ianal-maven-plugin
abf3bd8
%pom_remove_plugin :rat-maven-plugin
abf3bd8
%pom_remove_plugin :taglist-maven-plugin
abf3bd8
%pom_remove_plugin :maven-assembly-plugin
fde059f
fde059f
%pom_remove_dep org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec
fde059f
%pom_xpath_inject "pom:project/pom:dependencyManagement/pom:dependencies" "
abf3bd8
<dependency>
abf3bd8
  <groupId>org.jboss.spec.javax.management.j2ee</groupId>
abf3bd8
  <artifactId>jboss-j2eemgmt-api_1.1_spec</artifactId>
abf3bd8
  <version>1.0.1.Final</version>
abf3bd8
</dependency>"
fde059f
abf3bd8
%pom_remove_dep org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec %{name}-core
abf3bd8
%pom_add_dep org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec %{name}-core
abf3bd8
abf3bd8
%pom_add_dep junit:junit::test %{name}-core
fde059f
fde059f
# TODO remove when howl-logger is available
ad8dda9
%pom_remove_dep howl:howl-logger
ad8dda9
%pom_remove_dep howl:howl-logger %{name}-core/pom.xml
fde059f
%if 0
fde059f
sed -i "s|<howl-version>0.1.8|<howl-version>1.0.2|" pom.xml
fde059f
%pom_xpath_inject "pom:project/pom:dependencyManagement/pom:dependencies" '
abf3bd8
<dependency>
abf3bd8
  <groupId>org.objectweb.howl</groupId>
abf3bd8
  <artifactId>howl</artifactId>
abf3bd8
  <version>${howl-version}</version>
abf3bd8
</dependency>'
fde059f
%pom_xpath_inject "pom:project/pom:dependencies" "
abf3bd8
<dependency>
abf3bd8
  <groupId>org.objectweb.howl</groupId>
abf3bd8
  <artifactId>howl</artifactId>
abf3bd8
  <optional>true</optional>
abf3bd8
</dependency>" %{name}-core/pom.xml
fde059f
%patch0 -p0
fde059f
%else
abf3bd8
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin  %{name}-core "
abf3bd8
<executions>
abf3bd8
  <execution>
abf3bd8
    <id>default-compile</id>
abf3bd8
    <phase>compile</phase>
abf3bd8
    <configuration>
abf3bd8
      <excludes>
abf3bd8
	<exclude>**/HowlJournal.*</exclude>
abf3bd8
      </excludes>
abf3bd8
    </configuration>
abf3bd8
    <goals>
abf3bd8
      <goal>compile</goal>
abf3bd8
    </goals>
abf3bd8
  </execution>
abf3bd8
  <execution>
abf3bd8
    <id>default-testCompile</id>
abf3bd8
    <phase>test-compile</phase>
abf3bd8
    <configuration>
abf3bd8
      <testExcludes>
abf3bd8
	<exclude>**/JournalPerfTool.*</exclude>
abf3bd8
      </testExcludes>
abf3bd8
    </configuration> 
abf3bd8
    <goals>
abf3bd8
      <goal>testCompile</goal>
abf3bd8
    </goals>
abf3bd8
  </execution>
abf3bd8
</executions>"
fde059f
%endif
3b69969
3b69969
sed -i 's/\r//' NOTICE
3b69969
fba19a4
%mvn_file :%{name}-core activemq/%{name}-core
fba19a4
3b69969
%build
3b69969
abf3bd8
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
3b69969
3b69969
%install
abf3bd8
%mvn_install
3b69969
3b69969
install -m 644 %{name}-core/target/%{name}-core-%{version}-tests.jar \
3b69969
   %{buildroot}%{_javadir}/activemq/%{name}-core-tests.jar
abf3bd8
   
abf3bd8
%files -f .mfiles
abf3bd8
%{_javadir}/activemq/%{name}-core-tests.jar
fba19a4
%license LICENSE NOTICE
3b69969
abf3bd8
%files javadoc -f .mfiles-javadoc
fba19a4
%license LICENSE NOTICE
3b69969
3b69969
%changelog
fba19a4
* Thu Jan 29 2015 gil cattaneo <puntogil@libero.it> 3.1.4-10
fba19a4
- introduce license macro
fba19a4
d492379
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.4-9
d492379
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d492379
260cef8
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 3.1.4-8
260cef8
- Use Requires: java-headless rebuild (#1067528)
260cef8
7f3d0e5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.4-7
7f3d0e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7f3d0e5
abf3bd8
* Sat Jul 06 2013 gil cattaneo <puntogil@libero.it> 3.1.4-6
abf3bd8
- switch to XMvn
abf3bd8
- minor changes to adapt to current guideline
abf3bd8
d4e4c75
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.4-5
d4e4c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d4e4c75
Stanislav Ochotnicky ac5e8c4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.1.4-4
Stanislav Ochotnicky ac5e8c4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky ac5e8c4
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky ac5e8c4
ad8dda9
* Fri Sep 14 2012 gil cattaneo <puntogil@libero.it> 3.1.4-3
ad8dda9
- Fix parent pom
ad8dda9
fde059f
* Fri Sep 14 2012 gil cattaneo <puntogil@libero.it> 3.1.4-2
fde059f
- Convert patch to POM macros
fde059f
3b69969
* Fri May 18 2012 gil cattaneo <puntogil@libero.it> 3.1.4-1
260cef8
- initial rpm