Package snakeyaml: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires: rpm-build-java # END SourceDeps(oneline) BuildRequires: /proc BuildRequires: jpackage-generic-compat # fedora bcond_with macro %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} # redefine altlinux specific with and without %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global vertag 70abb5efa4c0 %bcond_without spring Name: snakeyaml Version: 1.17 Release: alt1_5jpp8 Summary: YAML parser and emitter for the Java programming language License: ASL 2.0 URL: https://bitbucket.org/asomov/%{name}/ Source0: https://bitbucket.org/asomov/snakeyaml/get/v%{version}.tar.bz2#/%{name}-%{version}.tar.bz2 # Upstream has forked gdata-java and base64 and refuses [1] to # consider replacing them by external dependencies. Bundled libraries # need to be removed and their use replaced by system libraries. # See rhbz#875777 and http://code.google.com/p/snakeyaml/issues/detail?id=175 # # Remove use of bundled Base64 implementation Patch0: 0001-Replace-bundled-base64-implementation.patch # We don't have gdata-java in Fedora any longer, use commons-codec instead Patch1: 0002-Replace-bundled-gdata-java-client-classes-with-commo.patch BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(biz.source_code:base64coder) BuildRequires: mvn(commons-codec:commons-codec) BuildRequires: mvn(joda-time:joda-time) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.apache.velocity:velocity) %if %{with spring} BuildRequires: mvn(org.springframework:spring-core) %endif Source44: import.info %description SnakeYAML features: * a complete YAML 1.1 parser. In particular, SnakeYAML can parse all examples from the specification. * Unicode support including UTF-8/UTF-16 input/output. * high-level API for serializing and deserializing native Java objects. * support for all types from the YAML types repository. * relatively sensible error messages. %package javadoc Group: Development/Java Summary: API documentation for %{name} BuildArch: noarch %description javadoc This package contains %{summary}. %prep %setup -q -n asomov-%{name}-%{vertag} %patch0 -p1 %patch1 -p1 %mvn_file : %{name} %pom_remove_plugin :cobertura-maven-plugin %pom_remove_plugin :maven-changes-plugin %pom_remove_plugin :maven-license-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-site-plugin sed -i "/<artifactId>spring</s/spring/&-core/" pom.xml rm -f src/test/java/examples/SpringTest.java # Replacement for bundled gdata-java-client %pom_add_dep commons-codec:commons-codec # Re-add bundled base64coder %pom_add_dep biz.source_code:base64coder # remove bundled stuff rm -rf target # fails in rpmbuild only due to different locale rm src/test/java/org/yaml/snakeyaml/issues/issue67/NonAsciiCharsInClassNameTest.java # fails after unbundling rm src/test/java/org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java # convert CR+LF to LF sed -i 's/\r//g' LICENSE.txt %if %{without spring} %pom_remove_dep org.springframework rm -r src/test/java/org/yaml/snakeyaml/issues/issue9 %endif %build %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Thu Apr 19 2018 Igor Vlasenko <viy@altlinux.ru> 1.17-alt1_5jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 1.17-alt1_4jpp8 - fc27 update * Wed Oct 18 2017 Igor Vlasenko <viy@altlinux.ru> 1.17-alt1_3jpp8 - new jpp release * Tue Dec 06 2016 Igor Vlasenko <viy@altlinux.ru> 1.16-alt1_2jpp8 - new version * Sun Feb 07 2016 Igor Vlasenko <viy@altlinux.ru> 1.13-alt1_9jpp8 - unbootsrap build * Thu Jan 28 2016 Igor Vlasenko <viy@altlinux.ru> 1.13-alt0.1jpp - bootstrap pack of jars created with jppbootstrap script - temporary package to satisfy circular dependencies * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 1.11-alt1_7jpp7 - new release * Fri Aug 01 2014 Igor Vlasenko <viy@altlinux.ru> 1.11-alt1_4jpp7 - new version * Sun Jul 27 2014 Igor Vlasenko <viy@altlinux.ru> 1.9-alt3_3jpp7 - fixed build * Thu Feb 14 2013 Igor Vlasenko <viy@altlinux.ru> 1.9-alt2_3jpp7 - fixed maven1 dependency * Thu Feb 07 2013 Igor Vlasenko <viy@altlinux.ru> 1.9-alt1_3jpp7 - fc update * Mon Oct 01 2012 Igor Vlasenko <viy@altlinux.ru> 1.9-alt1_2jpp7 - new fc release * Sat Apr 07 2012 Igor Vlasenko <viy@altlinux.ru> 1.9-alt1_1jpp7 - new version |