%global git_tag mchange-commons-java-%{version} Name: mchange-commons Version: 0.2.11 Release: 9%{?dist} Summary: A collection of general purpose utilities for c3p0 License: LGPLv2 or EPL URL: https://github.com/swaldman/mchange-commons-java Source0: https://github.com/swaldman/mchange-commons-java/archive/%{git_tag}/mchange-commons-%{version}.tar.gz Source1: https://raw.github.com/willb/climbing-nemesis/master/climbing-nemesis.py # There is a missing dep in Fedora so cannot build tests Patch0: mchange-no-tests.patch BuildRequires: sbt BuildRequires: ivy-local BuildRequires: maven-local BuildRequires: log4j12 BuildRequires: slf4j BuildRequires: typesafe-config BuildRequires: python2 BuildArch: noarch %description Originally part of c3p0, mchange-commons is a set of general purpose utilities. %package javadoc Summary: API documentation for %{name} %description javadoc %{summary}. %prep %setup -q -n mchange-commons-java-%{git_tag} %patch0 find -name '*.class' -delete find -name '*.jar' -delete cp %{SOURCE1} . chmod 755 climbing-nemesis.py sed -i -e 's/0.13.6/0.13.1/' project/build.properties cp -pr /usr/share/sbt/ivy-local . %build # XXX: Link deps, I understand this is a temp measure until sbt gains real xmvn integration # XXX: Switch to Python 3 before Fedora 32 python2 climbing-nemesis.py com.typesafe config any ivy-local --version 1.2.1 python2 climbing-nemesis.py log4j log4j 12 ivy-local --version 1.2.14 python2 climbing-nemesis.py org.slf4j slf4j-api any ivy-local --version 1.7.5 export SBT_BOOT_DIR=$PWD/boot export SBT_IVY_DIR=$PWD/ivy-local sbt package make-pom doc %mvn_artifact target/mchange-commons-java-%{version}.pom target/mchange-commons-java-%{version}.jar %install %mvn_install -J target/api %files -f .mfiles %license LICENSE* %files javadoc -f .mfiles-javadoc %license LICENSE* %changelog * Thu Jul 25 2019 Fedora Release Engineering - 0.2.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Apr 07 2019 Fabio Valentini - 0.2.11-8 - Add BuildRequires: python-unversioned-command to fix FTBFS. * Fri Feb 01 2019 Fedora Release Engineering - 0.2.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.2.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 15 2018 Iryna Shcherbina - 0.2.11-5 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Feb 08 2018 Fedora Release Engineering - 0.2.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 17 2018 Merlin Mathesius - 0.2.11-3 - Remove sbt hawtjni-runtime workaround that is causing FTBFS now that sbt has been fixed * Wed Jul 26 2017 Fedora Release Engineering - 0.2.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Feb 13 2017 Mat Booth - 0.2.11-1 - Update to 0.2.11 release - Fix climbing nemesis script to allow resolving compat versions * Fri Feb 10 2017 Fedora Release Engineering - 0.2.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Aug 28 2015 gil cattaneo 0.2.7-3 - fix FTBFS rhbz#1239672 - minor changes for adapt to current guideline - introduce license macro * Wed Jun 17 2015 Fedora Release Engineering - 0.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Mat Booth - 0.2.7-1 - Update to latest upstream version - Drop patches - Build with sbt and install with maven * Sat Jun 07 2014 Fedora Release Engineering - 0.2.3.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Mar 13 2014 Mat Booth - 0.2.3.4-4 - Require java-headless, rhbz #1068404 * Sat Aug 03 2013 Fedora Release Engineering - 0.2.3.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Apr 02 2013 Mat Booth - 0.2.3.4-2 - Include pom file - Update project URL * Thu Mar 28 2013 Mat Booth - 0.2.3.4-1 - Update to latest upstream release - License change to "LGPLv2 or EPL" * Thu Feb 14 2013 Fedora Release Engineering - 0.2-0.8.20110130hg - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Aug 7 2012 Mikolaj Izdebski - 0.2-0.7.20110130hg - Fix file permissions - Update to current packaging guidelines * Thu Jul 19 2012 Fedora Release Engineering - 0.2-0.6.20110130hg - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jan 25 2012 Deepak Bhole - 0.2-0.5.20110130hg - Added patch to build with JDBC 4.1/Java 7 - Added patch to disable one of the tests that is not always guaranteed to pass * Fri Jan 13 2012 Fedora Release Engineering - 0.2-0.4.20110130hg - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jan 31 2011 Mat Booth 0.2-0.3.20110130hg - Add build dep on ant-junit. - Build and install javadoc. * Sun Jan 30 2011 Mat Booth 0.2-0.2.20110130hg - Update for guideline compliance. * Fri Oct 8 2010 Tom "spot" Callaway 0.2-0.1.20101008hg - initial package