[concurrentlinkedhashmap-lru] Initial import (#865890).
by gil
commit 49ebf935c2eb9bc93faa80434136d6abba15a7c0
Author: gil <puntogil(a)libero.it>
Date: Tue May 28 22:32:53 2013 +0200
Initial import (#865890).
.gitignore | 1 +
concurrentlinkedhashmap-lru.spec | 120 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 122 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..26d5c57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/concurrentlinkedhashmap-lru-1.3.2-src-git.tar.gz
diff --git a/concurrentlinkedhashmap-lru.spec b/concurrentlinkedhashmap-lru.spec
new file mode 100644
index 0000000..1bf7f03
--- /dev/null
+++ b/concurrentlinkedhashmap-lru.spec
@@ -0,0 +1,120 @@
+Name: concurrentlinkedhashmap-lru
+Version: 1.3.2
+Release: 1%{?dist}
+Summary: A ConcurrentLinkedHashMap for Java
+Group: Development/Libraries
+License: ASL 2.0
+Url: http://code.google.com/p/concurrentlinkedhashmap/
+# git clone https://code.google.com/p/concurrentlinkedhashmap/ concurrentlinkedhashmap-lru-1.3.2
+# (cd concurrentlinkedhashmap-lru-1.3.2 && git checkout concurrentlinkedhashmap-lru-1.3.2)
+# find concurrentlinkedhashmap-lru-1.3.2 -name "*.class" -delete
+# find concurrentlinkedhashmap-lru-1.3.2 -name "*.jar" -type f -delete
+# lib/cache-benchmark/benchmark-fwk.jar
+# rm -rf concurrentlinkedhashmap-lru-1.3.2/.git
+# tar czf concurrentlinkedhashmap-lru-1.3.2-src-git.tar.gz concurrentlinkedhashmap-lru-1.3.2
+Source0: %{name}-%{version}-src-git.tar.gz
+
+BuildRequires: java-devel
+BuildRequires: sonatype-oss-parent
+
+# test deps
+%if 0
+BuildRequires: apache-commons-lang
+BuildRequires: ehcache-core
+BuildRequires: ehcache-parent
+BuildRequires: guava
+BuildRequires: mockito
+BuildRequires: testng
+BuildRequires: mvn(org.hamcrest:hamcrest-library) >= 1.3
+# unavailable test deps
+# require cache-benchmark == r7903 from http://sourceforge.net/projects/cachebenchfwk/
+BuildRequires: mvn(org.cachebench:cache-benchmark)
+BuildRequires: mvn(com.google.caliper:caliper)
+# https://bugzilla.redhat.com/show_bug.cgi?id=865893
+BuildRequires: mvn(com.github.stephenc.high-scale-lib:high-scale-lib)
+BuildRequires: mvn(com.jayway.awaitility:awaitility)
+%endif
+# com.google.code.findbugs:jsr305:2.0.1 scope: provided
+BuildRequires: jsr-305
+
+BuildRequires: maven-local
+BuildRequires: maven-enforcer-plugin
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-site-plugin
+#BuildRequires: animal-sniffer
+#BuildRequires: mojo-signatures
+
+Requires: java
+BuildArch: noarch
+
+%description
+A high performance version of java.util.LinkedHashMap
+for use as a software cache.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+
+# Unavailable
+%pom_remove_plugin :findbugs-maven-plugin
+%pom_remove_plugin :taglist-maven-plugin
+%pom_remove_plugin :emma-maven-plugin
+
+# Unwanted
+%pom_remove_plugin :maven-source-plugin
+
+# Remove org.jvnet.wagon-svn:wagon-svn
+%pom_xpath_remove "pom:build/pom:extensions"
+
+%pom_xpath_remove "pom:dependencies/pom:dependency[pom:scope='test']"
+
+# Fix http://jira.codehaus.org/browse/MCOMPILER-130
+%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:compilerArgument"
+%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" "
+<compilerArgument>-Werror</compilerArgument>"
+%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" "
+<compilerArgument>-Xlint:all</compilerArgument>"
+
+# Fix mojo-signatures aId
+sed -i "s|jdk.version}-sun</artifactId>|jdk.version}</artifactId>|" pom.xml
+# Disabled currently is broken
+%pom_remove_plugin :animal-sniffer-maven-plugin
+
+%build
+
+# test skipped for unavailable test deps
+mvn-rpmbuild -Dmaven.test.skip=true package javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc README
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu May 23 2013 gil cattaneo <puntogil(a)libero.it> 1.3.2-1
+- update to 1.3.2
+
+* Wed Sep 26 2012 gil cattaneo <puntogil(a)libero.it> 1.3.1-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..7548be5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+63398b3e7ada46cd89a92c4b771686aa concurrentlinkedhashmap-lru-1.3.2-src-git.tar.gz
10 years, 11 months
[maven-osgi/f19] Build with xmvn
by Mikolaj Izdebski
Summary of changes:
f00031a... Build with xmvn (*)
(*) This commit already existed in another branch; no separate mail sent
10 years, 12 months
[maven-osgi] Build with xmvn
by Mikolaj Izdebski
commit f00031a56d1013796ed4d5e6c3958f1e20565f44
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Mon May 27 11:10:04 2013 +0200
Build with xmvn
- Remove bundled test JARs from sources
- Use POM macros instead of sed
maven-osgi.spec | 69 +++++++++++++++++++-----------------------------------
sources | 2 +-
2 files changed, 25 insertions(+), 46 deletions(-)
---
diff --git a/maven-osgi.spec b/maven-osgi.spec
index 5eacdc1..024c71e 100644
--- a/maven-osgi.spec
+++ b/maven-osgi.spec
@@ -1,30 +1,25 @@
Name: maven-osgi
Version: 0.2.0
-Release: 4%{?dist}
+Release: 5%{?dist}
# Maven-shared defines maven-osgi version as 0.3.0
Epoch: 1
Summary: Library for Maven-OSGi integration
License: ASL 2.0
URL: http://maven.apache.org/shared/maven-osgi
+BuildArch: noarch
+
# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-osgi-0.2.0 maven-osgi-0.2.0
+# find -name *.jar -delete
# tar caf maven-osgi-0.2.0.tar.xz maven-osgi-0.2.0/
Source0: %{name}-%{version}.tar.xz
# ASL mandates that the licence file be included in redistributed source
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
-BuildArch: noarch
-
-BuildRequires: java-devel
-BuildRequires: jpackage-utils
BuildRequires: maven-local
-BuildRequires: maven-plugin-testing-harness
-BuildRequires: maven-surefire-provider-junit
-BuildRequires: maven-shared
-Requires: aqute-bndlib
-Requires: java
-Requires: jpackage-utils
-Requires: maven-project
-Requires: maven-shared
+BuildRequires: mvn(biz.aQute:bndlib)
+BuildRequires: mvn(org.apache.maven.shared:maven-plugin-testing-harness)
+BuildRequires: mvn(org.apache.maven.shared:maven-shared-components)
+BuildRequires: mvn(org.apache.maven:maven-project)
Obsoletes: maven-shared-osgi < %{epoch}:%{version}-%{release}
Provides: maven-shared-osgi = %{epoch}:%{version}-%{release}
@@ -45,49 +40,33 @@ API documentation for %{name}.
%prep
%setup -q
+cp -p %{SOURCE1} LICENSE
# Replace plexus-maven-plugin with plexus-component-metadata
-find -name 'pom.xml' -exec sed \
- -i 's/<artifactId>plexus-maven-plugin<\/artifactId>/<artifactId>plexus-component-metadata<\/artifactId>/' '{}' ';'
-find -name 'pom.xml' -exec sed \
- -i 's/<goal>descriptor<\/goal>/<goal>generate-metadata<\/goal>/' '{}' ';'
-
-cp %{SOURCE1} LICENSE.txt
-
-# There are binary jars in test resources
-find -iname '*.jar' -exec rm '{}' ';'
+%pom_xpath_set "pom:plugin[pom:artifactId[text()='plexus-maven-plugin']]//pom:goal[text()='descriptor']" generate-metadata
+%pom_xpath_set "pom:artifactId[text()='plexus-maven-plugin']" plexus-component-metadata
%build
-# Binary jars were removed, thus some tests fail
-mvn-rpmbuild install javadoc:aggregate -Dmaven.test.failure.ignore
+# Tests depend on binary JARs which were removed from sources
+%mvn_build -f
%install
-# JAR
-install -Ddm 755 %{buildroot}/%{_javadir}
-install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
-
-# POM
-install -Ddm 755 %{buildroot}/%{_mavenpomdir}
-install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
-
-# JavaDoc
-install -Ddm 755 %{buildroot}/%{_javadocdir}/%{name}
-cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+%mvn_install
-%add_maven_depmap JPP-%{name}.pom %{name}.jar
+%files -f .mfiles
+%doc LICENSE
+%dir %{_javadir}/%{name}
-%files
-%doc LICENSE.txt
-%{_javadir}/%{name}.jar
-%{_mavenpomdir}/JPP-%{name}.pom
-%{_mavendepmapfragdir}/%{name}
-
-%files javadoc
-%doc LICENSE.txt
-%doc %{_javadocdir}/%{name}
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE
%changelog
+* Mon May 27 2013 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 1:0.2.0-5
+- Build with xmvn
+- Remove bundled test JARs from sources
+- Use POM macros instead of sed
+
* Wed Feb 20 2013 Tomas Radej <tradej(a)redhat.com> - 1:0.2.0-4
- Added B/R on maven-shared and maven-local
diff --git a/sources b/sources
index fb511b2..d8be4c1 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
3b83ef96387f14655fc854ddc3c6bd57 LICENSE-2.0.txt
-ae43e35257505eb48292333fe011f90b maven-osgi-0.2.0.tar.xz
+02a4af248fa7650131b58e030d5163fe maven-osgi-0.2.0.tar.xz
10 years, 12 months