%global namedreltag .M3 %global namedversion %{version}%{?namedreltag} Name: narayana Version: 5.0.0 Release: 0.1%{namedreltag}%{?dist} Summary: Distributed Transaction Manager License: LGPLv2+ URL: http://www.jboss.org/narayana/ Source0: https://github.com/jbosstm/narayana/archive/%{namedversion}.tar.gz BuildArch: noarch BuildRequires: aether BuildRequires: junit BuildRequires: antlr-tool BuildRequires: ant BuildRequires: ant-junit BuildRequires: ant-contrib BuildRequires: apache-commons-codec BuildRequires: avalon-logkit BuildRequires: emma BuildRequires: cdi-api BuildRequires: hibernate-jpa-2.0-api BuildRequires: dom4j BuildRequires: byteman BuildRequires: ironjacamar BuildRequires: jacorb BuildRequires: jakarta-commons-httpclient BuildRequires: jboss-logging BuildRequires: jboss-logging-tools BuildRequires: jboss-transaction-1.2-api BuildRequires: jboss-transaction-spi BuildRequires: jboss-interceptors-1.2-api BuildRequires: jboss-servlet-3.0-api BuildRequires: jboss-ejb-3.1-api BuildRequires: jboss-annotations-1.1-api BuildRequires: jbossws-api >= 1.0.2 BuildRequires: jboss-integration BuildRequires: h2 BuildRequires: hornetq BuildRequires: mvn(org.hornetq:hornetq-journal) BuildRequires: jfreechart BuildRequires: publican-jboss BuildRequires: java-service-wrapper BuildRequires: slf4j BuildRequires: maven-local BuildRequires: maven-plugin-build-helper BuildRequires: maven-shade-plugin BuildRequires: maven-dependency-plugin BuildRequires: maven-war-plugin BuildRequires: idlj-maven-plugin BuildRequires: glassfish-annotation-api BuildRequires: jvnet-parent BuildRequires: jbossws-parent BuildRequires: resteasy BuildRequires: weld-core # This package replaced jboss-jts # Below you can find appropriate obsoletes/provides Provides: jboss-jts = %{version}-%{release} Obsoletes: jboss-jts < 4.16.6-12 %description A set of JBoss modules that fully supports ACID transactions spread across multiple resource managers and application servers. It implements a Distributed Transaction Manager (DTM) with support for two-phase commit (2PC) across XA resource managers, JBoss server instances, and CORBA OTS resources. JBossJTS implements the Java Transaction Service (JTS) and CORBA Transaction Service (OTS) specifications. %package javadoc Summary: Javadocs for %{name} %description javadoc This package contains the API documentation for %{name}. %prep # Extract the source: %setup -q -n narayana-%{namedversion} find . -name "*.jar" -type f -delete find . -name "*.class" -type f -delete %pom_remove_dep "orson:orson" ArjunaCore/arjuna/pom.xml %pom_remove_plugin "org.codehaus.mojo:findbugs-maven-plugin" # Remove the hardcoded path to emma.jar sed -i "s|||" pom.xml # Fix the gid of jfreechart %pom_remove_dep "jfree:jfreechart" ArjunaCore/arjuna/pom.xml %pom_add_dep "org.jfree:jfreechart" ArjunaCore/arjuna/pom.xml # Incompatibile with the jfreechart version in Fedora rm ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/stats/TxPerfGraph.java rm ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/stats/TxPerfPlugin.java # Remove war deps %pom_xpath_remove "pom:dependencies/pom:dependency[pom:type = 'war']" XTS/sar/pom.xml # Remove JConsole dep %pom_remove_dep "sun.jdk:jconsole" ArjunaCore/arjuna/pom.xml %pom_remove_dep "org.jboss.arquillian.junit:arquillian-junit-container" ArjunaJTA/cdi/pom.xml %pom_remove_dep "org.jboss.arquillian.junit:arquillian-junit-container" txframework/pom.xml %pom_disable_module localjunit XTS # No org.jboss.spec:jboss-javaee-6.0:pom:3.0.1.Final %pom_remove_dep "org.jboss.spec:jboss-javaee-6.0" txbridge/pom.xml %pom_remove_plugin ":maven-dependency-plugin" txbridge/pom.xml #%pom_disable_module txframework # No commons-transaction available %pom_disable_module fileio # Because of removed modules %pom_disable_module narayana-full # Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to find suitable installer to install project org.jboss.narayana.rts:restat-web, which has packaging type war %pom_disable_module webservice rest-tx %build # Some missing deps %mvn_build -f %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %doc README.md %doc copyright.txt %files javadoc -f .mfiles-javadoc %doc copyright.txt %changelog * Fri Jun 14 2013 Marek Goldmann - 5.0.0-0.1.M3 - Upstream release 5.0.0.M3 - Package rename from jboss-jts to narayana - New guidelines - Now using Maven instead of Ant * Thu Feb 14 2013 Fedora Release Engineering - 4.16.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Sep 18 2012 Marek Goldmann - 4.16.2-10 - Added jbosstxbridge, jbossxts and jbossxts-api to the build - Removed jbossjta artifacts from build * Fri Aug 31 2012 Marek Goldmann - 4.16.2-9 - Workaround for linking the wrapper.jar * Thu Aug 30 2012 Marek Goldmann - 4.16.2-8 - Added jbossjts to the build * Thu Jul 19 2012 Fedora Release Engineering - 4.16.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jul 03 2012 Marek Goldmann 4.16.2-6 - Updated patch to remove the jboss-as-parent dep from the correct files * Tue Jul 03 2012 Marek Goldmann 4.16.2-5 - Removed the jboss-as-parent dependency * Tue Jun 19 2012 Marek Goldmann 4.16.2-4 - Removed HornetQ patches, we have it now in Fedora * Tue Mar 20 2012 Juan Hernandez 4.16.2-3 - Use the namedversion macro in the source URLs - Fixed the version numbers in the changelog * Tue Mar 20 2012 Juan Hernandez 4.16.2-2 - Cleanup of the spec file * Mon Nov 21 2011 Marek Goldmann 4.16.2-1 - Initial packaging