Package closure-compiler: 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 | Epoch: 1 Group: Development/Java BuildRequires: /proc rpm-build-java BuildRequires: jpackage-default # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} #global _check 1 Summary: JavaScript minifier and checker Name: closure-compiler #define commit ad29f06d581fb8c54ad031334b82a5c301b6ce0a #define shorthash %%(printf %%.7s %%commit) Version: 20160315 Release: alt3_11jpp11 License: ASL 2.0 URL: https://developers.google.com/closure/compiler/ Source0: https://github.com/google/closure-compiler/archive/maven-release-v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: closure-compiler.xml BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(args4j:args4j) BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(com.google.code.gson:gson) BuildRequires: mvn(com.google.guava:guava:20.0) BuildRequires: mvn(com.google.protobuf:protobuf-java) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: libxslt xsltproc BuildRequires: docbook-style-xsl # Explicit requires for javapackages-tools since closure-compiler script # uses /usr/share/java-utils/java-functions Requires: javapackages-tools Source44: import.info %description The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes whata.'s left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. %package javadoc Group: Development/Documentation Summary: API documentation for %{name} BuildArch: noarch %description javadoc This package contains the %{summary}. %prep %setup -q -n %{name}-maven-release-v%{version} rm -rf lib/* # Don't build shaded jar because it bundles all deps %pom_disable_module "pom-main-shaded.xml" pom-main.xml %mvn_alias :closure-compiler-unshaded :closure-compiler # Make static analysis annotations have provided scope %pom_xpath_inject "pom:dependency[pom:artifactId='jsr305']" "<scope>provided</scope>" pom-main.xml # Fix OSGi metadata %pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']" \ "<configuration><instructions> <Bundle-SymbolicName>\${project.groupId}</Bundle-SymbolicName> </instructions></configuration>" pom-main.xml # Port to maven-antrun-plugin 3.0.0 sed -i s/tasks/target/ externs/pom.xml %build %mvn_build -f -j -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 xsltproc \ --nonet \ --stringparam man.output.quietly 1 \ --stringparam funcsynopsis.style ansi \ --stringparam man.authors.section.enabled 0 \ --stringparam man.copyright.section.enabled 0 \ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl %{SOURCE1} %install %mvn_install %jpackage_script com.google.javascript.jscomp.CommandLineRunner "" "" args4j:google-gson:jsr-305:protobuf-java:guava20:%{name} %{name} true install -Dm0644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 %global _docdir_fmt %{name} %files -f .mfiles %{_bindir}/%{name} %{_mandir}/man1/%{name}.* %doc --no-dereference COPYING %doc README.md #%files javadoc -f .mfiles-javadoc #%doc --no-dereference COPYING %changelog * Mon Jun 13 2022 Igor Vlasenko <viy@altlinux.org> 1:20160315-alt3_11jpp11 - java11 build * Wed Jun 08 2022 Igor Vlasenko <viy@altlinux.org> 1:20160315-alt3_11jpp8 - Port to maven-antrun-plugin 3.0.0 * Fri May 28 2021 Igor Vlasenko <viy@altlinux.org> 1:20160315-alt2_11jpp8 - disabled javadoc to fix build * Fri Oct 09 2020 Igor Vlasenko <viy@altlinux.ru> 1:20160315-alt1_11jpp8 - update * Mon May 27 2019 Igor Vlasenko <viy@altlinux.ru> 1:20160315-alt1_9jpp8 - new version * Tue Feb 05 2019 Igor Vlasenko <viy@altlinux.ru> 1:20160315-alt1_6jpp8 - fc29 update * Tue May 15 2018 Igor Vlasenko <viy@altlinux.ru> 1:20160315-alt1_5jpp8 - java update * Wed Nov 15 2017 Igor Vlasenko <viy@altlinux.ru> 1:20160315-alt1_2jpp8 - new version * Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 1:20141215-alt1_7jpp8 - new jpp release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 1:20141215-alt1_3jpp8 - new fc release * Fri Feb 12 2016 Igor Vlasenko <viy@altlinux.ru> 1:20141215-alt1_2jpp8 - java 8 mass update * Thu Feb 19 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20150218-alt1jpp7 - Initial build for Sisyphus |