%bcond_with jp_minimal Name: rome Version: 1.7.0 Release: 1 Summary: RSS and Atom Utilities License: ASL 2.0 URL: http://rometools.github.io/rome/ Source0: https://github.com/rometools/rome/archive/v1.7.0.tar.gz BuildRequires: maven-local mvn(commons-beanutils:commons-beanutils) BuildRequires: mvn(commons-httpclient:commons-httpclient) BuildRequires: mvn(javax.persistence:persistence-api) mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(junit:junit) %if %{without jp_minimal} BuildRequires: mvn(net.oauth.core:oauth) %endif BuildRequires: mvn(org.apache.commons:commons-lang3) mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.xmlrpc:xmlrpc-client) mvn(org.hamcrest:hamcrest-library) BuildRequires: mvn(org.jdom:jdom2) mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) mvn(xmlunit:xmlunit) BuildArch: noarch %description ROME is an set of open source Java tools for parsing, generating and publishing RSS and Atom feeds. %package certiorem Summary: A PubSubHubub implementation for Java based on ROME %description certiorem PubSubHubub protocol implementation based on ROME. %package fetcher 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 Summary: Plugin collection for the ROME RSS and Atom Utilities 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 Summary: Support for OPML 1 and OPML 2 in ROME %description opml This module contains Outline Processor Markup Language parser and tools. %package propono 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 Summary: Utility classes for ROME projects %description utils This modules provides utility classes for all ROME projects. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q %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}' %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/AtomRequestImpl.java \ %{name}-propono/src/main/java/com/rometools/propono/atom/server/AtomRequest.java %pom_disable_module rome-certiorem-webapp %pom_disable_module rome-osgi-test %pom_remove_dep -r ch.qos.logback: %pom_remove_dep -r jetty:jetty rm %{name}-fetcher/src/test/java/com/rometools/fetcher/AbstractJettyTest.java \ %{name}-fetcher/src/test/java/com/rometools/fetcher/impl/HttpClientFeedFetcherTest.java \ %{name}-fetcher/src/test/java/com/rometools/fetcher/impl/HttpURLFeedFetcherTest.java \ %{name}-propono/src/test/java/com/rometools/propono/atom/server/AtomClientServerTest.java \ %{name}-propono/src/test/java/com/rometools/propono/atom/server/TestAtomHandlerImpl.java \ %{name}-propono/src/test/java/com/rometools/propono/atom/server/TestAtomHandlerFactory.java %if %{with jp_minimal} %pom_remove_dep net.oauth.core: rome-propono rm rome-propono/src/main/java/com/rometools/propono/atom/client/OAuthStrategy.java %endif sed -i.orig 's|\r||g' README.md touch -r README.md.orig README.md rm README.md.orig rm %{name}-modules/src/test/java/com/rometools/modules/cc/types/LicenseTest.java %mvn_alias com.rometools:%{name} %{name}:%{name} net.java.dev.%{name}:%{name} %mvn_package :%{name}-parent %{name} %build %mvn_build -s %install %mvn_install %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 propono -f .mfiles-%{name}-propono %license %{name}-propono/NOTICE %files utils -f .mfiles-%{name}-utils %doc README.md %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Tue Aug 11 2020 chengzihan - 1.7.0-1 - Package init