%global reltag -M3 %global namedversion %{version}%{?reltag} Name: apacheds-jdbm Version: 2.0.0 Release: 0.4.M3%{?dist} Summary: ApacheDS specific JDBM Implementation # This package is a fork of http://jdbm.sourceforge.net/ the original/more files # are under BSD license. License: ASL 2.0 and BSD Url: http://directory.apache.org/ # svn export http://svn.apache.org/repos/asf/directory/jdbm/tags/2.0.0-M3/ apacheds-jdbm-2.0.0-M3 # tar cJf apacheds-jdbm-2.0.0-M3.tar.xz apacheds-jdbm-2.0.0-M3 Source0: %{name}-%{namedversion}.tar.xz # apacheds-jdbm package don't include the license file # https://issues.apache.org/jira/browse/DIR-318 Source1: http://www.apache.org/licenses/LICENSE-2.0.txt # wget -O jdbm-LICENSE.txt http://jdbm.cvs.sourceforge.net/viewvc/jdbm/jdbm/LICENSE.txt Source2: jdbm-LICENSE.txt BuildRequires: maven-local BuildRequires: mvn(com.google.code.findbugs:annotations) BuildRequires: mvn(log4j:log4j:1.2.17) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-log4j12) BuildArch: noarch %description A JDBM entry store which does not have any dependency on core interfaces. The JDBM partition will use this store and build on it to adapt this to server specific partition interfaces. Having this separate module without dependencies on core interfaces makes it easier to avoid cyclic dependencies between modules. This is especially important for use within the bootstrap plugin which needs to build the schema partition used for bootstrapping the server. %package -n %{name}1 Summary: ApacheDS Original JDBM Implementation # https://fedorahosted.org/fpc/ticket/564 Provides: bundled(jdbm1) %description -n %{name}1 Original JDBM Implementation. %package -n %{name}2 Summary: ApacheDS JDBM Implementation MVCC %description -n %{name}2 Specific JDBM Implementation with Multi Version Concurrency Control (MVCC). %package -n %{name}-parent Summary: ApacheDS JDBM Parent POM %description -n %{name}-parent Specific ApacheDS JDBM Implementation - Parent POM. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{namedversion} find . -name "*.jar" -print -delete find . -name "*.class" -print -delete %pom_remove_parent %pom_remove_plugin -r :maven-checkstyle-plugin %pom_remove_plugin -r :maven-site-plugin %pom_remove_dep -r :junit-addons %pom_change_dep -r findbugs:annotations com.google.code.findbugs:annotations cp -p %{SOURCE1} . cp -p %{SOURCE2} LICENSE.txt sed -i 's/\r//' LICENSE* %build # No test dep org.apache.directory.junit:junit-addons:0.1 %mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -n %{name}1 -f .mfiles-%{name}1 %license LICENSE* %files -n %{name}2 -f .mfiles-%{name}2 %license LICENSE* %files -n %{name}-parent -f .mfiles-%{name}-parent %license LICENSE* %files javadoc -f .mfiles-javadoc %license LICENSE* %changelog * Wed Oct 07 2015 gil cattaneo 2.0.0-0.4.M3 - fpc#564. add Provides: bundled(jdbm1) * Sun Aug 23 2015 gil cattaneo 2.0.0-0.3.M3 - fix license field * Sat Aug 22 2015 gil cattaneo 2.0.0-0.2.M3 - add orignal jdbm license file * Sat Mar 14 2015 gil cattaneo 2.0.0-0.1.M3 - update to 2.0.0-M3 * Wed Aug 21 2013 gil cattaneo 2.0.0-0.1.M2 - initial rpm