Name: typesafe-config Version: 1.2.0 Release: 14%{?dist} Summary: Configuration library for JVM languages License: ASL 2.0 URL: https://github.com/typesafehub/config/ Source0: https://github.com/typesafehub/config/archive/v%{version}.tar.gz Source1: typesafe-config.bnd BuildRequires: aqute-bnd BuildRequires: javapackages-local BuildRequires: sbt BuildArch: noarch %description Configuration library for JVM languages. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n config-%{version} rm -f project/plugins.sbt sed -i -e '/SbtOsgi/d' project/Build.scala sed -i -e '/OsgiKeys/d' project/Build.scala sed -i -e 's/osgiSettings [+][+]//g' project/Build.scala sed -i -e '/override val settings/d' project/Build.scala sed -i -e '/de.johoop/d' config/build.sbt sed -i -e '/JacocoPlugin/d' config/build.sbt sed -i -e '/findbugs/,+2d' config/build.sbt sed -i -e '/jacoco/,+2d' config/build.sbt sed -i -e '/% "test"$/,+2d' config/build.sbt sed -i -e '/com.typesafe.sbt/d' build.sbt sed -i -e '/SbtGit/,+2d' build.sbt sed -i -e '/useGpg/,+2d' build.sbt sed -i -e '/publishSigned/,+2d' build.sbt sed -i -e '/publishLocalSigned/,+2d' build.sbt sed -i -e 's/2[.]10[.][0-2]/2.10.6/' build.sbt sed -i -e 's/Some("1[.]6")/Some("1.8")/' project/JavaVersionCheck.scala for buildsbt in $(find . -name build.sbt) ; do (echo ; echo ; echo 'version := "%{version}"'; echo) >> $buildsbt done # missing test deps rm -rf config/src/test cp -r /usr/share/sbt/ivy-local . mkdir boot %mvn_file com.typesafe:config %{name} %build export SBT_BOOT_DIR=$PWD/boot export SBT_IVY_DIR=$PWD/ivy-local #sbt package "set publishTo in Global := Some(Resolver.file(\"published\", file(\"published\"))(Resolver.ivyStylePatterns) ivys \"$(pwd)/published/[organization]/[module]/[revision]/ivy.xml\" artifacts \"$(pwd)/published/[organization]/[module]/[revision]/[artifact]-[revision].[ext]\")" publish makePom sbt package makePom deliverLocal doc bnd wrap -p %{SOURCE1} -o config/target/config.jar --version %{version} config/target/config-%{version}.jar %install %mvn_artifact config/target/config-%{version}.pom config/target/config.jar %mvn_install -J config/target/api %files -f .mfiles %doc NEWS.md README.md %license LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %license LICENSE-2.0.txt %changelog * Sat Jul 27 2019 Fedora Release Engineering - 1.2.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.2.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 30 2018 Karsten Hopp - 1.2.0-10 - update scala compiler/library version * Thu Jul 27 2017 Fedora Release Engineering - 1.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Feb 05 2016 Fedora Release Engineering - 1.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 11 2015 gil cattaneo 1.2.0-6 - rebuild to generate new maven depmap * Tue Aug 04 2015 gil cattaneo 1.2.0-5 - Fix FTBFS RHBZ#1240033 - Add OSGi support - Introduce license macro * Fri Jun 19 2015 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Feb 24 2014 William Benton 1.2.0-2 - updated to use sbt build * Tue Feb 04 2014 gil cattaneo 1.2.0-1 - initial rpm