Blame concurrentlinkedhashmap-lru.spec

49ebf93
Name:          concurrentlinkedhashmap-lru
4b09983
Version:       1.4.2
d23b19e
Release:       6%{?dist}
49ebf93
Summary:       A ConcurrentLinkedHashMap for Java
49ebf93
License:       ASL 2.0
4b09983
Url:           https://github.com/ben-manes/concurrentlinkedhashmap
4b09983
Source0:       https://github.com/ben-manes/concurrentlinkedhashmap/archive/%{name}-%{version}.tar.gz
49ebf93
49ebf93
# test deps
49ebf93
%if 0
4b09983
BuildRequires: mvn(com.github.stephenc.high-scale-lib:high-scale-lib)
4b09983
BuildRequires: mvn(com.google.guava:guava)
4b09983
BuildRequires: mvn(commons-lang:commons-lang)
4b09983
BuildRequires: mvn(net.sf.ehcache:ehcache)
49ebf93
BuildRequires: mvn(org.hamcrest:hamcrest-library) >= 1.3
4b09983
BuildRequires: mvn(org.mockito:mockito-all)
4b09983
BuildRequires: mvn(org.testng:testng)
49ebf93
# unavailable test deps
49ebf93
BuildRequires: mvn(com.google.caliper:caliper)
49ebf93
BuildRequires: mvn(com.jayway.awaitility:awaitility)
4b09983
# require cache-benchmark == r7903 from http://sourceforge.net/projects/cachebenchfwk/
4b09983
BuildRequires: mvn(org.cachebench:cache-benchmark)
49ebf93
%endif
49ebf93
49ebf93
BuildRequires: maven-local
49ebf93
BuildRequires: maven-enforcer-plugin
49ebf93
BuildRequires: maven-plugin-bundle
49ebf93
BuildRequires: maven-site-plugin
4b09983
4b09983
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
4b09983
BuildRequires: mvn(com.google.code.findbugs:jsr305)
49ebf93
49ebf93
BuildArch:     noarch
49ebf93
49ebf93
%description
49ebf93
A high performance version of java.util.LinkedHashMap
49ebf93
for use as a software cache.
49ebf93
49ebf93
%package javadoc
49ebf93
Summary:       Javadoc for %{name}
49ebf93
49ebf93
%description javadoc
49ebf93
This package contains javadoc for %{name}.
49ebf93
49ebf93
%prep
4b09983
%setup -q -n concurrentlinkedhashmap-%{name}-%{version}
4b09983
find . -name "*.class" -delete
4b09983
find . -name "*.jar" -type f -print -delete
49ebf93
49ebf93
# Unavailable
49ebf93
%pom_remove_plugin :findbugs-maven-plugin
49ebf93
%pom_remove_plugin :taglist-maven-plugin
49ebf93
%pom_remove_plugin :emma-maven-plugin
49ebf93
49ebf93
# Unwanted
49ebf93
%pom_remove_plugin :maven-source-plugin
49ebf93
49ebf93
# Remove org.jvnet.wagon-svn:wagon-svn
49ebf93
%pom_xpath_remove "pom:build/pom:extensions"
49ebf93
49ebf93
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:scope='test']"
49ebf93
49ebf93
# Fix http://jira.codehaus.org/browse/MCOMPILER-130
49ebf93
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:compilerArgument"
963dbbe
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" "
963dbbe
<compilerArgument>-Werror</compilerArgument>"
49ebf93
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" "
49ebf93
<compilerArgument>-Xlint:all</compilerArgument>"
49ebf93
963dbbe
# remove bundled Doug Lea JCP JSR-166
963dbbe
rm -r src/main/java/com/googlecode/concurrentlinkedhashmap/ConcurrentHashMapV8.java
963dbbe
sed -i "s|ConcurrentHashMapV8|java.util.concurrent.ConcurrentHashMap|" \
963dbbe
 src/main/java/com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.java
963dbbe
49ebf93
# Fix mojo-signatures aId
4b09983
#sed -i "s|jdk.version}-sun</artifactId>|jdk.version}</artifactId>|" pom.xml
49ebf93
# Disabled currently is broken
49ebf93
%pom_remove_plugin :animal-sniffer-maven-plugin
49ebf93
ba100ad
%mvn_file :%{name} %{name}
8a8fb77
8a8fb77
%build
8a8fb77
49ebf93
# test skipped for unavailable test deps
ba100ad
%mvn_build -f
49ebf93
49ebf93
%install
ba100ad
%mvn_install
49ebf93
ba100ad
%files -f .mfiles
49ebf93
%doc README
4b09983
%license LICENSE NOTICE
49ebf93
ba100ad
%files javadoc -f .mfiles-javadoc
4b09983
%license LICENSE NOTICE
49ebf93
49ebf93
%changelog
d23b19e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-6
d23b19e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d23b19e
9c1ded3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-5
9c1ded3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9c1ded3
bea2132
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-4
bea2132
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bea2132
c111bc8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
c111bc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c111bc8
cc3347a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
cc3347a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cc3347a
4b09983
* Fri Mar 13 2015 gil cattaneo <puntogil@libero.it> 1.4.2-1
4b09983
- update to 1.4.2
4b09983
8a8fb77
* Fri Jan 30 2015 gil cattaneo <puntogil@libero.it> 1.3.2-6
8a8fb77
- introduce license macro
8a8fb77
5401a97
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-5
5401a97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5401a97
1effc96
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.3.2-4
1effc96
- Use Requires: java-headless rebuild (#1067528)
1effc96
ea00804
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-3
ea00804
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ea00804
ba100ad
* Sat Jul 06 2013 gil cattaneo <puntogil@libero.it> 1.3.2-2
ba100ad
- switch to XMvn
ba100ad
- minor changes to adapt to current guideline
ba100ad
49ebf93
* Thu May 23 2013 gil cattaneo <puntogil@libero.it> 1.3.2-1
49ebf93
- update to 1.3.2
49ebf93
49ebf93
* Wed Sep 26 2012 gil cattaneo <puntogil@libero.it> 1.3.1-1
1effc96
- initial rpm