Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
78a66f5212
!21 fix issue:I6IJWH
From: @xhl_com 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
2023-03-22 13:00:07 +00:00
xuanHL
327fef5dd8 fix issue:I6IJWH 2023-03-22 16:43:42 +08:00
openeuler-ci-bot
ab9fbf1092
!19 修复无法启动 rc1 2303
From: @lizhuang1314 
Reviewed-by: @dwl301 
Signed-off-by: @dwl301
2023-03-03 11:24:56 +00:00
lizhuang1314
331288e0a5 修复无法启动问题 2023-03-03 18:31:01 +08:00
openeuler-ci-bot
443fde5fbd
!18 Update to 3.0
From: @dwl301 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
2023-02-01 15:14:11 +00:00
dwl301
12ee9c55fd Update to 3.0 2023-02-01 19:17:10 +08:00
openeuler-ci-bot
f6cb68ff6c !17 Upgrade to 2.5
From: @weijin-deng
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2021-07-01 02:31:18 +00:00
weijin-deng
71c5b482e0 Upgrade to 2.5 2021-06-30 16:37:49 +08:00
openeuler-ci-bot
8691616275 !16 Completing build dependencies
From: @hht8
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2021-05-31 17:41:59 +08:00
hht8
89a4bf465b Completing build dependencies 2021-05-31 17:26:45 +08:00
4 changed files with 69 additions and 28 deletions

View File

@ -0,0 +1,24 @@
Index: phodav-2.5/data/spice-webdavd.service
===================================================================
--- phodav-2.5.orig/data/spice-webdavd.service
+++ phodav-2.5/data/spice-webdavd.service
@@ -4,6 +4,19 @@ Requires=dbus.service avahi-daemon.servi
After=dbus.service avahi-daemon.service
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=simple
EnvironmentFile=-/etc/sysconfig/spice-webdavd
ExecStart=/usr/sbin/spice-webdavd -p 9843 $SPICE_WEBDAVD_EXTRA_ARGS

Binary file not shown.

BIN
phodav-3.0.tar.xz Normal file

Binary file not shown.

View File

@ -1,20 +1,28 @@
Name: phodav Name: phodav
Version: 2.2 Version: 3.0
Release: 7 Release: 3
Summary: A WebDav server implementation using libsoup Summary: A WebDav server implementation using libsoup
License: LGPLv2+ License: LGPLv2+
URL: https://wiki.gnome.org/phodav URL: https://wiki.gnome.org/phodav
Source0: http://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz Source0: http://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires: systemd-devel systemd-units libsoup-devel avahi-gobject-devel
BuildRequires: intltool asciidoc xmlto avahi-gobject Patch0: harden_spice-webdavd.service.patch
BuildRequires: asciidoc xmlto gcc git-core meson gettext-devel gtk-doc pkgconfig systemd
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(avahi-gobject)
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.44
BuildRequires: pkgconfig(glib-2.0) >= 2.44
BuildRequires: pkgconfig(libsoup-3.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
%description %description
A WebDAV server implementation using libsoup (RFC 4918). A WebDAV server implementation using libsoup (RFC 4918).
%package -n libphodav %package -n libphodav
Summary: A library to serve files with WebDAV Summary: A library to serve files with WebDAV
Provides: libphodav-2.0 = 0:%{version}-%{release} libphodav2 = 0:%{version}-%{release}
Obsoletes: libphodav-2.0 <= 0:2.0-3 libphodav2 <= 0:2.0-4 libphodav-1.0 <= 0:0.4-6
%description -n libphodav %description -n libphodav
This package provides the library of WebDAV server. This package provides the library of WebDAV server.
@ -22,8 +30,6 @@ This package provides the library of WebDAV server.
%package -n libphodav-devel %package -n libphodav-devel
Summary: Development files for libphodav Summary: Development files for libphodav
Requires: libphodav = %{version}-%{release} Requires: libphodav = %{version}-%{release}
Provides: libphodav-2.0-devel = 0:%{version}-%{release} libphodav2-devel = 0:%{version}-%{release}
Obsoletes: libphodav-2.0-devel <= 0:2.0-3 libphodav2-devel <= 0:2.0-4 libphodav-1.0-devel <= 0:0.4-6
%description -n libphodav-devel %description -n libphodav-devel
The libphodav-devel package includes the header files for libphodav. The libphodav-devel package includes the header files for libphodav.
@ -36,12 +42,6 @@ The chezdav package contains a simple tool allows to share a
particular directory (with optional digest authentication). particular directory (with optional digest authentication).
The service is announced over mDNS for clients to discover. The service is announced over mDNS for clients to discover.
%package -n chezdav-help
Summary: Help documentation for the chezdav-help
%description -n chezdav-help
Help documentation for the chezdav-help
%package -n spice-webdavd %package -n spice-webdavd
Summary: Spice daemon for the DAV channel Summary: Spice daemon for the DAV channel
Requires: avahi Requires: avahi
@ -56,16 +56,18 @@ the Spice virtio channel.
%prep %prep
%autosetup -p1 %autosetup -p1
sed -i 's/PrivateDevices=true/PrivateDevices=false/' data/spice-webdavd.service
sed -i 's/ProtectClock=true/ProtectClock=false/' data/spice-webdavd.service
%build %build
%configure --with-avahi %meson -Davahi=enabled
%make_build %meson_build
%install %install
%make_install %meson_install
%delete_la_and_a %delete_la_and_a
%find_lang phodav-2.0 --with-gnome %find_lang phodav-3.0 --with-gnome
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcspice-webdavd
%post -n libphodav %post -n libphodav
/sbin/ldconfig /sbin/ldconfig
@ -82,30 +84,45 @@ the Spice virtio channel.
%postun -n spice-webdavd %postun -n spice-webdavd
%systemd_postun_with_restart spice-webdavd.service %systemd_postun_with_restart spice-webdavd.service
%files -n libphodav -f phodav-2.0.lang %files -n libphodav -f phodav-3.0.lang
%doc COPYING %doc COPYING
%{_libdir}/libphodav-2.0.so.0* %{_libdir}/libphodav-3.0.so.0*
%files -n libphodav-devel %files -n libphodav-devel
%dir %{_includedir}/libphodav-2.0/ %dir %{_includedir}/libphodav-3.0/
%{_includedir}/libphodav-2.0/* %{_includedir}/libphodav-3.0/*
%{_libdir}/libphodav-2.0.so %{_libdir}/libphodav-3.0.so
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%{_datadir}/gtk-doc/html/phodav-2.0/* %{_datadir}/gtk-doc/html/phodav-3.0/*
%files -n chezdav %files -n chezdav
%{_bindir}/chezdav %{_bindir}/chezdav
%files -n chezdav-help
%{_mandir}/man1/chezdav.1* %{_mandir}/man1/chezdav.1*
%files -n spice-webdavd %files -n spice-webdavd
%doc COPYING %doc COPYING
%{_sbindir}/spice-webdavd %{_sbindir}/spice-webdavd
/usr/lib/udev/rules.d/70-spice-webdavd.rules %{_sbindir}/rcspice-webdavd
%{_udevrulesdir}/70-spice-webdavd.rules
%{_unitdir}/spice-webdavd.service %{_unitdir}/spice-webdavd.service
%changelog %changelog
* Wed Mar 22 2023 haolei xuan <haolei.xuan@turbolinux.com.cn> - 3.0-3
- fix issue:I6IJWH
* Fri Mar 03 2023 zhuang li <zhuang.li@turbolinux.com.cn> - 3.0-2
- add sed 3.0-2
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 3.0-1
- update to 3.0
* Wed Jun 30 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.5-1
- Upgrade to 2.5
- Use meson rebuild
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 2.2-8
- Completing build dependencies
* Tue Mar 9 2021 lingsheng <lingsheng@huawei.com> - 2.2-7 * Tue Mar 9 2021 lingsheng <lingsheng@huawei.com> - 2.2-7
- Add require avahi for spice-webdavd - Add require avahi for spice-webdavd