Package icedtea-web: 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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | %define _unpackaged_files_terminate_build 1 #can rust have debuginfo? Verify and fix! Likely issue in Makefile of itw. %global debug_package %nil # Version of java we run against %define javaver 11 # Version of java we build by %define buildjavaver 11 # Alternatives priority (rised by one number when jre bumped to 11 (as 11 < 18 :) %define priority 110000 # jnlp prorocol gnome registry keys %define gurlhandler /desktop/gnome/url-handlers %define jnlphandler %gurlhandler/jnlp %define jnlpshandler %gurlhandler/jnlps %define jredir %_jvmdir/jre-%javaver-openjdk %define preffered_jre java-%javaver-openjdk %define preffered_jdk java-%buildjavaver-openjdk-devel Name: icedtea-web Version: 2.0.0.alpha26 Release: alt2_jpp11 Summary: Additional Java components for OpenJDK - Java Web Start implementation Group: Networking/WWW License: LGPLv2+ and GPLv2 with exceptions Url: https://github.com/AdoptOpenJDK/IcedTea-Web Source: %name-%version.tar Patch: %name-%version-alt.patch BuildRequires(pre): rpm-macros-java BuildRequires(pre): rpm-macros-alternatives BuildRequires: /proc rpm-build-java BuildRequires: /usr/bin/desktop-file-install BuildRequires: %preffered_jdk BuildRequires: desktop-file-utils BuildRequires: dos2unix BuildRequires: rust BuildRequires: rust-cargo BuildRequires: libappstream-glib BuildRequires: junit BuildRequires: maven BuildRequires: hamcrest BuildRequires: tagsoup BuildRequires: maven-local BuildRequires: maven-source-plugin BuildRequires: maven-install-plugin BuildRequires: maven-shade-plugin BuildRequires: exec-maven-plugin BuildRequires: hamcrest BuildRequires: hamcrest-core BuildRequires: rhino BuildRequires: IPAddress # For functionality and the OpenJDK dirs Requires: %preffered_jre Requires: javapackages-tools Requires: rhino Requires: IPAddress Requires: tagsoup #maven fragments Requires(post): javapackages-tools Requires(postun): javapackages-tools %description The IcedTea-Web project provides a an implementation of Java Web Start (originally based on the Netx project, now opensource part of OpenWebStart) and a settings tool to manage deployment settings for the aforementioned Web Start implementations. %package javaws Summary: Java Web Start launcher Group: Networking/Other Provides: javaws = %javaver Provides: %preffered_jre-javaws = %javaver Provides: mozilla-plugin-java-1.8.0-openjdk Obsoletes: mozilla-plugin-java-1.7.0-openjdk Obsoletes: mozilla-plugin-java-1.8.0-openjdk # Post requires alternatives to install tool alternatives. # jnlp protocols support Requires(post): GConf libGConf # Postun requires alternatives to uninstall tool alternatives. # jnlp protocols support Requires(postun): GConf libGConf Requires(post,preun): alternatives %description javaws Java Web Start is a deployment solution for Java-technology-based applications. It is the plumbing between the computer and the Internet that allows the user to launch and manage applications right off the Web. Java Web Start provides easy, one-click activation of applications, and guarantees that you are always running the latest version of the application, eliminating complicated installation or upgrade procedures. %package javadoc Group: Development/Java Summary: API documentation for IcedTea-Web Requires: %name = %version-%release BuildArch: noarch %description javadoc This package contains Javadocs for the IcedTea-Web project. %package devel Group: Development/Java Summary: pure sources for debugging IcedTea-Web Requires: %name = %version-%release BuildArch: noarch %description devel This package contains ziped sources of the IcedTea-Web project. %prep %setup %patch -p1 dos2unix launchers/pom.xml %pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin %pom_remove_plugin org.apache.maven.plugins:maven-source-plugin %pom_remove_plugin org.jacoco:jacoco-maven-plugin %pom_remove_plugin org.apache.maven.plugins:maven-surefire-plugin %pom_add_plugin org.apache.maven.plugins:maven-install-plugin:2.5.2 %pom_remove_dep junit:junit common/pom.xml %pom_remove_dep org.hamcrest:hamcrest common/pom.xml %pom_remove_dep org.hamcrest:hamcrest test-extensions/pom.xml %pom_remove_dep net.jcip:jcip-annotations test-extensions/pom.xml %pom_remove_dep com.github.stefanbirkner:system-rules test-extensions/pom.xml %pom_remove_dep com.github.vatbub:mslinks core/pom.xml %pom_remove_dep org.hamcrest:hamcrest integration/pom.xml %pom_remove_dep com.github.tomakehurst:wiremock-jre8 integration/pom.xml %pom_remove_dep com.github.stefanbirkner:system-rules integration/pom.xml # TODO: Add Javadoc support %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin common/pom.xml %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin core/pom.xml %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin test-extensions/pom.xml %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin xml-parser/pom.xml %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin pom.xml rm -v core/src/main/java/net/sourceforge/jnlp/util/WindowsDesktopEntry.java rm -r integration/src %build rm -rf launchers/build.log SPLASH_TARGET_DIR=%_datadir/%name \ ITW_TARGET_DIR=%_datadir/%name \ BIN_TARGET_DIR=%_libexecdir/%name \ ETC_TARGET_DIR=%_javaconfdir/%name \ ITW_LIBS=DISTRIBUTION \ JRE=%jredir \ %mvn_build --skip-javadoc -- -Plaunchers -Dmaven.test.skip=true -Dmaven.javadoc.skip=true || cat launchers/build.log %install %mvn_install mkdir -p %buildroot%_libexecdir/%name # build provides also .bat files, we do not want them cp -v launchers/target%_libexecdir/%name/javaws %buildroot%_libexecdir/%name/ cp -v launchers/target%_libexecdir/%name/itweb-settings %buildroot%_libexecdir/%name/ cp -v launchers/target%_libexecdir/%name/policyeditor %buildroot%_libexecdir/%name/ cp -v launchers/target%_libexecdir/%name/javaws.sh %buildroot%_libexecdir/%name/ cp -v launchers/target%_libexecdir/%name/itweb-settings.sh %buildroot%_libexecdir/%name/ cp -v launchers/target%_libexecdir/%name/policyeditor.sh %buildroot%_libexecdir/%name/ mkdir -p %buildroot%_javaconfdir/%name/ cp -v launchers/target%_javaconfdir/%name/itw-modularjdk.args %buildroot%_javaconfdir/%name/ mkdir -p %buildroot%_datadir/%name cp -v launchers/target%_datadir/%name/javaws_splash.png %buildroot%_datadir/%name/javaws_splash.png mkdir -p %buildroot%_datadir/bash-completion/completions/ cp -v launchers/target/extensions/bash_completion.d/* %buildroot%_datadir/bash-completion/completions/ mkdir -p %buildroot%_mandir/ cp -r launchers/target/%name-docs/*/man/* %buildroot%_mandir/ # rename javaws so it can coexists with other implementations mv %buildroot%_mandir/man1/javaws.1 %buildroot%_mandir/man1/javaws.itweb.1 mv %buildroot%_mandir/cs/man1/javaws.1 %buildroot%_mandir/cs/man1/javaws.itweb.1 mv %buildroot%_mandir/de/man1/javaws.1 %buildroot%_mandir/de/man1/javaws.itweb.1 mv %buildroot%_mandir/pl/man1/javaws.1 %buildroot%_mandir/pl/man1/javaws.itweb.1 rm -rf %buildroot%_mandir/man1/%name-plugin.1 rm -rf %buildroot%_mandir/*/man1/%name-plugin.1 # Install desktop files. install -d -m 755 %buildroot%_desktopdir install -d -m 755 %buildroot%_pixmapsdir desktop-file-install --vendor '' --dir %buildroot%_desktopdir launchers/target/extensions/xdesktop/javaws.desktop desktop-file-install --vendor '' --dir %buildroot%_desktopdir launchers/target/extensions/xdesktop/itweb-settings.desktop desktop-file-install --vendor '' --dir %buildroot%_desktopdir launchers/target/extensions/xdesktop/policyeditor.desktop cp launchers/target/libs/javaws.png %buildroot%_pixmapsdir # install MetaInfo file for javaws DESTDIR=%buildroot appstream-util install launchers/metadata/%name-javaws.appdata.xml pushd %buildroot%_datadir/%name ln -s ../java/%name/%name-all-dependencies.jar javaws.jar popd mkdir -p %buildroot%_sysconfdir/.java/deployment echo "deployment.jre.dir=%jredir" > %buildroot%_sysconfdir/.java/deployment/deployment.properties %find_lang %name --all-name --with-man install -d %buildroot%_altdir %__cat <<EOF >>%buildroot%_altdir/%name-javaws %_bindir/javaws %_libexecdir/%name/javaws 10 %_bindir/itweb-settings %_libexecdir/%name/itweb-settings 10 %_bindir/policyeditor %_libexecdir/%name/policyeditor 10 EOF %files %_mavenpomdir/* %_javadir/* %_datadir/maven-metadata/* %doc README.md CONTRIBUTING.md %doc --no-dereference LICENSE LICENCE_DETAILS.md %files javaws -f %name.lang %_datadir/bash-completion/completions/* %dir %_javaconfdir/%name %config(noreplace) %_javaconfdir/%name/itw-modularjdk.args %_libexecdir/%name %_datadir/%name %_sysconfdir/.java/deployment/* %_desktopdir/* %_mandir/man1/* %_pixmapsdir/* %_datadir/appdata/*.xml %doc README.md CONTRIBUTING.md %doc --no-dereference LICENSE LICENCE_DETAILS.md %_altdir/%name-javaws %changelog * Mon Jul 31 2023 Andrey Limachko <liannnix@altlinux.org> 2.0.0.alpha26-alt2_jpp11 - Removed libnsl1 requirement * Fri Apr 28 2023 Andrey Limachko <liannnix@altlinux.org> 2.0.0.alpha26-alt1_jpp11 - Changed package repository structure - Patches moved to git commits - Changed version and release naming style * Tue Mar 28 2023 Andrey Limachko <liannnix@altlinux.org> 2.0.0-alt3_pre.0.1.alpha26.patched1.3jpp11 - new version - spec file refactored - package renamed * Mon Jun 14 2021 Igor Vlasenko <viy@altlinux.org> 2.0.0-alt2_pre.0.3.alpha16.patched1.3jpp8 - new version * Thu Jun 10 2021 Igor Vlasenko <viy@altlinux.org> 2.0.0-alt1_pre.2.alpha13.patched1jpp8 - new version * Fri Oct 09 2020 Igor Vlasenko <viy@altlinux.ru> 1.8.2-alt1_3jpp8 - new version * Tue Jun 25 2019 Igor Vlasenko <viy@altlinux.ru> 1.8-alt1_2jpp8 - restored Ivan Razzhivin patches * Fri May 24 2019 Igor Vlasenko <viy@altlinux.ru> 1.8-alt1_1jpp8 - new version * Wed Jan 09 2019 Ivan Razzhivin <underwit@altlinux.org> 1.7.1-alt5_6jpp8 - fix russian translation * Fri Dec 07 2018 Ivan Razzhivin <underwit@altlinux.org> 1.7.1-alt4_6jpp8 - add russian translation to desktop files * Thu Nov 15 2018 Ivan Razzhivin <underwit@altlinux.org> 1.7.1-alt3_6jpp8 - add russian translation * Tue Jun 26 2018 Igor Vlasenko <viy@altlinux.ru> 1.7.1-alt2_6jpp8 - fixed alternatives * Tue Jun 26 2018 Igor Vlasenko <viy@altlinux.ru> 1.7.1-alt1_6jpp8 - fixed icons in desktop files * Thu Jun 21 2018 Igor Vlasenko <viy@altlinux.ru> 1.7.1-alt1_5jpp8 - new version * Sat Apr 30 2016 Igor Vlasenko <viy@altlinux.ru> 1.6.2-alt3_1jpp8 - removed fedora-based alternative (closes: #32043) * Fri Mar 04 2016 Igor Vlasenko <viy@altlinux.ru> 1.6.2-alt2_1jpp8 - fixed requires * Thu Mar 03 2016 Igor Vlasenko <viy@altlinux.ru> 1.6.2-alt1_1jpp8 - new version |