Projects
home:Eustace:branches:Eulaceura:Factory
openjdk-1.8.0
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 10
View file
openjdk-11.spec
Added
@@ -0,0 +1,124 @@ +# Prevent brp-java-repack-jars from being run +%global debug_package %{nil} + +%global upgradever 21 +# New Version-String scheme-style defines +%global majorver 11 +%global securityver 50 +# buildjdkver is usually same as %%{majorver}, +# but in time of bootstrap of next jdk, it is majorver-1, +# and this it is better to change it here, on single place +%global buildjdkver %{majorver} +# Standard JPackage naming and versioning defines +%global origin openjdk +%global origin_nice OpenJDK +%global top_level_dir_name %{origin} +%global minorver 0 +%global buildver 80 +%global patchver 0 + +%global project jdk-updates +%global repo jdk11u +%global revision jdk-11.0.25-ga +%global full_revision %{project}-%{repo}-%{revision} +# priority must be 7 digits in total +# setting to 1, so debug ones can have 0 +%global priority 00000%{minorver}1 +%if %{patchver} +%global newjavaver %{majorver}.%{minorver}.%{securityver}.%{patchver} +%else +%global newjavaver %{majorver}.%{minorver}.%{securityver} +%endif + +%global javaver %{majorver} + +# parametrized macros are order-sensitive +%global compatiblename java-%{majorver}-%{origin} +%global fullversion %{compatiblename}-%{version}-%{release} + + +Name: openjdk-%{javaver} +Version: %{newjavaver}.%{buildver} +Release: 0 + +Epoch: 1 +Summary: %{origin_nice} Runtime Environment %{majorver} +Group: Development/Languages + +License: Mulan PSL +URL: http://openjdk.java.net/ + +%description +Runtime Environment which uses higher version + +%package -n java-%{javaver}-%{origin} +Provides: java-%{javaver}-%{origin} = %{epoch}:%{version}-%{release} +# Requires rest of java +Requires: java-%{javaver}-%{origin}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release} +# Standard JPackage base provides +Provides: jre%{?1} = %{epoch}:%{version}-%{release} +Provides: jre-%{origin}%{?1} = %{epoch}:%{version}-%{release} +Provides: jre-%{javaver}%{?1} = %{epoch}:%{version}-%{release} +Provides: jre-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release} +Provides: java-%{javaver}%{?1} = %{epoch}:%{version}-%{release} +Provides: java-%{origin}%{?1} = %{epoch}:%{version}-%{release} +Provides: java%{?1} = %{epoch}:%{version}-%{release} + +Summary: Meta RuntimeEnvironment +%description -n java-%{javaver}-%{origin} +Meta RuntimeEnvironment + +%package -n java-%{javaver}-%{origin}-headless +Requires: java-%{upgradever}-%{origin}-headless +# Standard JPackage base provides +Provides: jre-headless%{?1} = %{epoch}:%{version}-%{release} +Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release} +Provides: jre-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release} +Provides: jre-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release} +Provides: java-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release} +Provides: java-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release} +Provides: java-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release} +Provides: java-headless%{?1} = %{epoch}:%{version}-%{release} + +Summary: Meta RuntimeEnvironment Headless +%description -n java-%{javaver}-%{origin}-headless +Meta RuntimeEnvironment Headless + +%package -n java-%{javaver}-%{origin}-devel +Requires: java-%{upgradever}-%{origin}-devel +# Standard JPackage devel provides +Provides: java-sdk-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release} +Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}-%{release} +Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release} +Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release} +Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release} +Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release} +Provides: java-devel-%{origin}%{?1} = %{epoch}:%{version}-%{release} +Provides: java-devel%{?1} = %{epoch}:%{version}-%{release} + +Summary: Meta RuntimeEnvironment Devel +%description -n java-%{javaver}-%{origin}-devel +Meta RuntimeEnvironment Devel + +%prep + +%install +mkdir -p $RPM_BUILD_ROOT/usr/lib/jvm +ln -s jre-%{javaver}-%{origin} $RPM_BUILD_ROOT/usr/lib/jvm/jre-%{javaver} +#ln -s jre-%{upgradever}-%{origin} $RPM_BUILD_ROOT/usr/lib/jvm/jre-%{javaver}-%{origin} +#ln -s java-%{upgradever}-%{origin} $RPM_BUILD_ROOT/usr/lib/jvm/java-%{javaver}-%{origin} + +%post -n java-%{javaver}-%{origin}-headless +ln -s `ls /usr/lib/jvm | grep jre-%{upgradever}-%{origin}-` /usr/lib/jvm/jre-%{javaver}-%{origin} + +%post -n java-%{javaver}-%{origin}-devel +ln -s `ls /usr/lib/jvm | grep java-%{upgradever}-%{origin}-` /usr/lib/jvm/java-%{javaver}-%{origin} + +%files -n java-%{javaver}-%{origin} +/usr/lib/jvm/jre-%{javaver} + +%files -n java-%{javaver}-%{origin}-headless + +%files -n java-%{javaver}-%{origin}-devel + +%changelog
View file
_multibuild
Added
@@ -0,0 +1,4 @@ +<multibuild> + <package>openjdk-11</package> +</multibuild> +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2