Compare commits
No commits in common. "rawhide" and "f39" have entirely different histories.
1 changed files with 22 additions and 45 deletions
67
jetty.spec
67
jetty.spec
|
|
@ -50,12 +50,11 @@
|
|||
|
||||
Name: jetty
|
||||
Version: 9.4.40
|
||||
Release: 17%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: Java Webserver and Servlet Container
|
||||
|
||||
# Jetty is dual licensed under both ASL 2.0 and EPL 1.0, see NOTICE.txt
|
||||
# Automatically converted from old format: ASL 2.0 or EPL-1.0 - review is highly recommended.
|
||||
License: Apache-2.0 OR EPL-1.0
|
||||
License: ASL 2.0 or EPL-1.0
|
||||
URL: http://www.eclipse.org/jetty/
|
||||
Source0: https://github.com/eclipse/%{name}.project/archive/%{name}-%{version}%{addver}.tar.gz
|
||||
Source1: jetty.sh
|
||||
|
|
@ -67,7 +66,7 @@ Source6: LICENSE-MIT
|
|||
Patch1: 0001-Distro-jetty.home.patch
|
||||
Patch2: 0002-Port-to-servlet-api-4-5.patch
|
||||
|
||||
BuildRequires: maven-local-openjdk25
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
||||
|
|
@ -75,7 +74,7 @@ BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|||
BuildRequires: mvn(org.slf4j:slf4j-api)
|
||||
|
||||
%if %{without jp_minimal}
|
||||
BuildRequires: maven-local-openjdk25
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.github.jnr:jnr-unixsocket)
|
||||
BuildRequires: mvn(javax.annotation:javax.annotation-api)
|
||||
BuildRequires: mvn(javax.enterprise:cdi-api)
|
||||
|
|
@ -192,6 +191,7 @@ Requires: %{name}-http2-hpack = %{version}-%{release}
|
|||
Requires: %{name}-http2-http-client-transport = %{version}-%{release}
|
||||
Requires: %{name}-http2-server = %{version}-%{release}
|
||||
|
||||
Requires(pre): shadow-utils
|
||||
%{?systemd_ordering}
|
||||
|
||||
|
||||
|
|
@ -334,8 +334,7 @@ Obsoletes: %{name}-httpservice < 9.4.18-1
|
|||
%package util
|
||||
Summary: util module for Jetty
|
||||
# Utf8Appendable.java is additionally under MIT license
|
||||
# Automatically converted from old format: (ASL 2.0 or EPL-1.0) and MIT - review is highly recommended.
|
||||
License: (Apache-2.0 OR EPL-1.0) AND LicenseRef-Callaway-MIT
|
||||
License: (ASL 2.0 or EPL-1.0) and MIT
|
||||
|
||||
%description util
|
||||
%{extdesc} %{summary}.
|
||||
|
|
@ -580,8 +579,7 @@ Summary: jstl module for Jetty
|
|||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
# some MIT-licensed code (from Utf8Appendable) is used to generate javadoc
|
||||
# Automatically converted from old format: (ASL 2.0 or EPL-1.0) and MIT - review is highly recommended.
|
||||
License: (Apache-2.0 OR EPL-1.0) AND LicenseRef-Callaway-MIT
|
||||
License: (ASL 2.0 or EPL-1.0) and MIT
|
||||
|
||||
%description javadoc
|
||||
%{summary}.
|
||||
|
|
@ -589,8 +587,8 @@ License: (Apache-2.0 OR EPL-1.0) AND LicenseRef-Callaway-MIT
|
|||
%prep
|
||||
%setup -q -n %{name}.project-%{name}-%{version}%{addver}
|
||||
|
||||
%patch -P1 -p1
|
||||
%patch -P2 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
find . -name "*.?ar" -exec rm {} \;
|
||||
find . -name "*.class" -exec rm {} \;
|
||||
|
|
@ -739,11 +737,6 @@ sed -i '/<SystemProperty name="jetty.state"/d' \
|
|||
|
||||
%endif
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >jetty.sysusers.conf <<EOF
|
||||
u jetty %jtuid 'Jetty web server' %homedir -
|
||||
EOF
|
||||
|
||||
%build
|
||||
%mvn_package :jetty-home __noinstall
|
||||
%mvn_package :jetty-distribution __noinstall
|
||||
|
|
@ -871,7 +864,19 @@ cp -p %{SOURCE1} %{buildroot}%{homedir}/bin/jetty.sh
|
|||
|
||||
# NOTE: %if %{without jp_minimal} still in effect
|
||||
|
||||
install -m0644 -D jetty.sysusers.conf %{buildroot}%{_sysusersdir}/jetty.conf
|
||||
%pre
|
||||
# Add the "jetty" user and group
|
||||
getent group %username >/dev/null || groupadd -f -g %jtuid -r %username
|
||||
if ! getent passwd %username >/dev/null ; then
|
||||
if ! getent passwd %jtuid >/dev/null ; then
|
||||
useradd -r -u %jtuid -g %username -d %homedir -s /sbin/nologin \
|
||||
-c "Jetty web server" %username
|
||||
else
|
||||
useradd -r -g %username -d %homedir -s /sbin/nologin \
|
||||
-c "Jetty web server" %username
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%post
|
||||
%systemd_post jetty.service
|
||||
|
|
@ -919,7 +924,6 @@ install -m0644 -D jetty.sysusers.conf %{buildroot}%{_sysusersdir}/jetty.conf
|
|||
%ghost %dir %attr(755, jetty, jetty) %{rundir}
|
||||
%{appdir}
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_sysusersdir}/jetty.conf
|
||||
|
||||
%files project -f .mfiles-project
|
||||
%doc README.md VERSION.txt
|
||||
|
|
@ -966,33 +970,6 @@ install -m0644 -D jetty.sysusers.conf %{buildroot}%{_sysusersdir}/jetty.conf
|
|||
%license LICENSE NOTICE.txt LICENSE-MIT
|
||||
|
||||
%changelog
|
||||
* Tue Jul 29 2025 jiri vanek <jvanek@redhat.com> - 9.4.40-17
|
||||
- Rebuilt for java-25-openjdk as preffered jdk
|
||||
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.40-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 9.4.40-15
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.40-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Mon Sep 02 2024 Miroslav Suchý <msuchy@redhat.com> - 9.4.40-13
|
||||
- convert license to SPDX
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.40-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Tue Feb 27 2024 Jiri Vanek <jvanek@redhat.com> - 9.4.40-11
|
||||
- Rebuilt for java-21-openjdk as system jdk
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.40-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.40-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.40-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue