Package decentxml: 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 | Group: Development/Other # BEGIN SourceDeps(oneline): BuildRequires: unzip # END SourceDeps(oneline) BuildRequires: /proc rpm-build-java BuildRequires: jpackage-11-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global revision 572a0baa91d1 Name: decentxml Version: 1.4 Release: alt3_24jpp11 Summary: XML parser optimized for round-tripping and code reuse License: BSD # Google Code has shut down. # URL: http://code.google.com/p/decentxml URL: https://bitbucket.org/digulla/%{name} BuildArch: noarch # Google Code has shut down. # Source0: https://decentxml.googlecode.com/files/decentxml-1.4-src.zip # # This version is equivalent to the last Google Code release, other than # folder structure due to how Bitbucket makes zip archives: # # decentxml-1.4 -> digulla-decentxml-572a0baa91d1 Source0: https://bitbucket.org/digulla/%{name}/get/r%{version}.zip # For running w3c conformance test suite. Source1: http://www.w3.org/XML/Test/xmlts20031210.zip BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) Source44: import.info %description XML parser optimized for round-tripping and code reuse with main features being: * Allows 100% round-tripping, even for weird white-space between attributes in the start tag or in the end tag * Suitable for building editors and filters which want/need to preserve the original file layout as much as possible * Error messages have line and column information * Easy to reuse individual components * XML 1.1 compatible %package javadoc Group: Development/Java Summary: API documentation for %{name} BuildArch: noarch %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n digulla-%{name}-%{revision} # We are looking for xml conformance data one level above so unzip # here and symlink there. unzip %{SOURCE1} ln -sf %{name}-%{version}/xmlconf ../xmlconf sed -i -e "s|junit-dep|junit|g" pom.xml # Two tests fail with Java 8, probably because of some Unicode incompatibility. sed -i '/not_wf_sa_16[89] /d' src/test/java/de/pdark/decentxml/XMLConformanceTest.java %pom_remove_plugin :maven-javadoc-plugin # remove maven-compiler-plugin configuration that is broken with Java 11 %pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration' # Don't use deprecated "attached" goal of Maven Assembly Plugin, which # was removed in version 3.0.0. %pom_xpath_set "pom:plugin[pom:artifactId='maven-assembly-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text()='attached']" single %build %mvn_file : %{name} %mvn_build -- -Dmaven.compile.source=1.8 -Dmaven.compile.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install %files -f .mfiles %doc --no-dereference LICENSE %doc README %files javadoc -f .mfiles-javadoc %doc --no-dereference LICENSE %changelog * Fri May 28 2021 Igor Vlasenko <viy@altlinux.org> 1.4-alt3_24jpp11 - fixed build * Thu Apr 29 2021 Igor Vlasenko <viy@altlinux.org> 1.4-alt3_21jpp11 - update * Wed Jul 17 2019 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_19jpp8 - fc update & java 8 build * Tue Feb 05 2019 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_18jpp8 - fc29 update * Thu Apr 19 2018 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_17jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_16jpp8 - fc27 update * Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_15jpp8 - new jpp release * Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_13jpp8 - new fc release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_12jpp8 - new fc release * Tue Feb 02 2016 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_11jpp8 - new version * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_6jpp7 - new release * Mon Aug 25 2014 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_5jpp7 - update * Thu Aug 07 2014 Igor Vlasenko <viy@altlinux.ru> 1.4-alt3_2jpp7 - rebuild with maven-local * Mon Jul 14 2014 Igor Vlasenko <viy@altlinux.ru> 1.4-alt2_2jpp7 - NMU rebuild to move poms and fragments * Tue Sep 04 2012 Igor Vlasenko <viy@altlinux.ru> 1.4-alt1_2jpp7 - new version |