Sisyphus repository
Last update: 21 july 2018 | SRPMs: 18626 | Visits: 11917970
en ru br
ALT Linux repos
5.0: 0.9-alt1_1jpp5

Group :: Development/Java
RPM: rome

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: rpm-build-java
# END SourceDeps(oneline)
AutoReq: yes,noosgi
BuildRequires: rpm-build-java-osgi
BuildRequires: /proc
BuildRequires: jpackage-generic-compat
# see
%define _localstatedir %{_var}
Name:          rome
Version:       1.7.0
Release:       alt1_4jpp8
Summary:       RSS and Atom Utilities
License:       ASL 2.0
# Original source archive 73,8 MB
# sh < VERSION >
# Repackaged source archive 575 KB
Source0:       %{name}-%{version}.tar.xz
Source1:       %{name}

BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-httpclient:commons-httpclient)
BuildRequires: mvn(javax.persistence:persistence-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.oauth.core:oauth)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.xmlrpc:xmlrpc-client)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.jdom:jdom2)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(xmlunit:xmlunit)

BuildArch:     noarch

ROME is an set of open source Java tools for parsing, generating and
publishing RSS and Atom feeds.

%package certiorem
Group: Development/Java
Summary:       A PubSubHubub implementation for Java based on ROME

%description certiorem
PubSubHubub protocol implementation based on ROME.

%package fetcher
Group: Development/Java
Summary:       Retrieves RSS feeds via HTTP conditional gets using ROME

%description fetcher
ROME Fetcher is a caching feed fetcher that supports retrieval of
feeds via HTTP conditional GET. Supports ETags, GZip compression,
and RFC3229 Delta encoding.

%package modules
Group: Development/Java
Summary:       Plugin collection for the ROME RSS and Atom Utilities
# rome-modules/src/main/java/com/rometools/modules/base/
# rome-modules/src/main/java/com/rometools/modules/base/
# rome-modules/src/main/java/com/rometools/modules/content/
# rome-modules/src/main/java/com/rometools/modules/itunes/types/
# rome-modules/src/main/java/com/rometools/modules/photocast/
# rome-modules/src/main/java/com/rometools/modules/slash/
# rome-modules/src/main/java/com/rometools/modules/yahooweather/
License:       ASL 2.0 and LGPLv2

%description modules
This module contains extensions that enable ROME to
handle several feed extensions like MediaRSS,
GeoRSS and others.

%package opml
Group: Development/Java
Summary:       Support for OPML 1 and OPML 2 in ROME

%description opml
This module contains Outline Processor Markup Language parser and tools.

#%%package parent

#Summary:       Parent for all ROME projects

#%%description parent

#Parent POM for all ROME projects.

%package propono
Group: Development/Java
Summary:       ROME Propono

%description propono
The ROME Propono sub-project is a Java class library that
supports publishing protocols, specifically the Atom Publishing Protocol
and the legacy MetaWeblog API. Propono includes an Atom client library,
Atom server framework and a Blog client that supports both Atom protocol
and the MetaWeblog API.

%package utils
Group: Development/Java
Summary:       Utility classes for ROME projects

%description utils
This modules provides utility classes for all ROME projects.

%package javadoc
Group: Development/Java
Summary:       Javadoc for %{name}
BuildArch: noarch

%description javadoc
This package contains javadoc for %{name}.

%setup -q

# Unneeded tasks

%pom_remove_plugin -r :maven-scm-publish-plugin

%pom_xpath_remove -r "pom:Embed-Dependency" %{name} %{name}-modules
%pom_xpath_remove "pom:Embed-Transitive" %{name}-modules

%pom_change_dep -r com.rometools: ::'${project.version}'

# Force servlet 3.1

%pom_change_dep -r :servlet-api javax.servlet:javax.servlet-api:3.1.0
sed -i "s|String, Object|String, String[]|" \
%{name}-propono/src/main/java/com/rometools/propono/atom/server/ \


%pom_disable_module rome-certiorem-webapp
# No test deps (contains only tests)
# org.ops4j.pax.exam:pax-exam-container-native:4.8.0
# org.ops4j.pax.exam:pax-exam-junit4:4.8.0
# org.ops4j.pax.exam:pax-exam-link-mvn:4.8.0
# org.ops4j.pax.url:pax-url-wrap:2.4.5
%pom_disable_module rome-osgi-test

# No test dep

# jetty:jetty:4.2.12
%pom_remove_dep -r jetty:jetty
rm %{name}-fetcher/src/test/java/com/rometools/fetcher/ \
%{name}-fetcher/src/test/java/com/rometools/fetcher/impl/ \
%{name}-fetcher/src/test/java/com/rometools/fetcher/impl/ \
%{name}-propono/src/test/java/com/rometools/propono/atom/server/ \
%{name}-propono/src/test/java/com/rometools/propono/atom/server/ \

# Convert from dos to unix line ending

sed -i.orig 's|\r||g'
touch -r

#  at  random fails: AssertionError

rm %{name}-modules/src/test/java/com/rometools/modules/cc/types/

%mvn_alias com.rometools:%{name} %{name}:%{name}{name}:%{name}
# Avoid problems with old rome-parent-1.5.0 package
%mvn_package :%{name}-parent %{name}


%mvn_build -s


%files -f .mfiles-%{name}
%files certiorem -f .mfiles-%{name}-certiorem
%files fetcher -f .mfiles-%{name}-fetcher
%files modules -f .mfiles-%{name}-modules
%files opml -f .mfiles-%{name}-opml

#%%files parent -f .mfiles-%%{name}-parent

#%%license LICENSE

%files propono -f .mfiles-%{name}-propono
%doc --no-dereference %{name}-propono/NOTICE

%files utils -f .mfiles-%{name}-utils
%doc --no-dereference LICENSE

%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin