Compare commits

...

11 Commits

Author SHA1 Message Date
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
openeuler-ci-bot
aba18afc48 !10 Add require avahi for spice-webdavd
From: @ultra_planet
Reviewed-by: @si-gui,@small_leek
Signed-off-by: @small_leek
2021-03-09 14:08:12 +08:00
lingsheng
30b7704748 Add require avahi for spice-webdavd 2021-03-09 10:16:47 +08:00
openeuler-ci-bot
1bf9a79066 !9 Add yaml file
Merge pull request !9 from jeff200902/master
2020-05-09 19:03:40 +08:00
jeff200902
618afe6c91 Add yaml file 2020-05-07 19:33:40 +08:00
openeuler-ci-bot
cf156c8337 !8 Optimize spec files
Merge pull request !8 from lkx690/master
2020-02-28 16:41:44 +08:00
lkx690
e753eec62e Optimize spec files 2020-02-28 16:15:32 +08:00
openeuler-ci-bot
e691bbf7b0 !7 add BuildRequires avahi-gobject
Merge pull request !7 from lkx690/master
2020-02-28 15:49:30 +08:00
4 changed files with 92 additions and 58 deletions

Binary file not shown.

BIN
phodav-2.5.tar.xz Normal file

Binary file not shown.

View File

@ -1,96 +1,126 @@
Name: phodav
Version: 2.2
Release: 5
Summary: A WebDAV server using libsoup
License: LGPLv2+
URL: https://wiki.gnome.org/phodav
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
Provides: chezdav = %{version}-%{release} spice-webdavd = %{version}-%{release}
Provides: libphodav = %{version}-%{release} libphodav-2.0 = 0:%{version}-%{release}
Provides: libphodav2 = 0:%{version}-%{release}
Obsoletes: chezdav < %{version}-%{release} spice-webdavd < %{version}-%{release}
Obsoletes: libphodav-2.0 <= 0:2.0-3 libphodav2 <= 0:2.0-4 libphodav-1.0 <= 0:0.4-6
Obsoletes: libphodav < 0:%{version}-%{release}
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Name: phodav
Version: 2.5
Release: 1
Summary: A WebDav server implementation using libsoup
License: LGPLv2+
URL: https://wiki.gnome.org/phodav
Source0: http://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires: systemd-devel systemd-units libsoup-devel avahi-gobject-devel asciidoc
BuildRequires: xmlto avahi-gobject gcc git-core meson gettext-devel gtk-doc
%description
phodav is a WebDAV server implementation using libsoup (RFC 4918). This package provides
the library,chezdav and spice-webdavd.
The chezdav is a simple WebDAV server program, contains a simple tool to share a directory
with WebDAV. The service is announced over mDNS for clients to discover.
The spice-webdavd is a daemon for the DAV channel, contains a daemon to proxy WebDAV request
to the Spice virtio channel.
A WebDAV server implementation using libsoup (RFC 4918).
%package devel
Summary: Development files for libphodav
Requires: phodav = %{version}-%{release}
Provides: libphodav-2.0-devel = 0:%{version}-%{release} libphodav-devel = %{version}-%{release}
Provides: libphodav2-devel = 0:%{version}-%{release}
Obsoletes: libphodav-2.0-devel <= 0:2.0-3 libphodav2-devel <= 0:2.0-4
Obsoletes: libphodav-1.0-devel <= 0:0.4-6 libphodav-devel < 0:%{version}-%{release}
%package -n libphodav
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 devel
The libphodav-devel package provides the header files for phodav development library.
%description -n libphodav
This package provides the library of WebDAV server.
%package help
Summary: Help documentation for phodav
%package -n libphodav-devel
Summary: Development files for libphodav
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 help
Help documentation for phodav.
%description -n libphodav-devel
The libphodav-devel package includes the header files for libphodav.
%package -n chezdav
Summary: A tool allows to share a particular directory
%description -n chezdav
The chezdav package contains a simple tool allows to share a
particular directory (with optional digest authentication).
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
Summary: Spice daemon for the DAV channel
Requires: avahi
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%description -n spice-webdavd
The spice-webdavd package contains a daemon to proxy WebDAV request to
the Spice virtio channel.
%prep
%autosetup -p1
%build
%configure --with-avahi
%make_build
%meson -Davahi=enabled
%meson_build
%install
%make_install
%meson_install
%delete_la_and_a
%find_lang phodav-2.0 --with-gnome
%post
%post -n libphodav
/sbin/ldconfig
%postun -n libphodav
/sbin/ldconfig
%post -n spice-webdavd
%systemd_post spice-webdavd.service
%postun
/sbin/ldconfig
%systemd_postun_with_restart spice-webdavd.service
%preun
%preun -n spice-webdavd
%systemd_preun spice-webdavd.service
%postun -n spice-webdavd
%systemd_postun_with_restart spice-webdavd.service
%files -f phodav-2.0.lang
%files -n libphodav -f phodav-2.0.lang
%doc COPYING
%{_bindir}/chezdav
%{_sbindir}/spice-webdavd
%{_unitdir}/spice-webdavd.service
%{_libdir}/libphodav-2.0.so.0*
/usr/lib/udev/rules.d/70-spice-webdavd.rules
%files -n phodav-devel
%files -n libphodav-devel
%dir %{_includedir}/libphodav-2.0/
%{_includedir}/libphodav-2.0/*
%{_libdir}/libphodav-2.0.so
%{_libdir}/pkgconfig/libphodav-2.0.pc
%{_libdir}/pkgconfig/*
%{_datadir}/gtk-doc/html/phodav-2.0/*
%files help
%files -n chezdav
%{_bindir}/chezdav
%files -n chezdav-help
%{_mandir}/man1/chezdav.1*
%files -n spice-webdavd
%doc COPYING
%{_sbindir}/spice-webdavd
/usr/lib/udev/rules.d/70-spice-webdavd.rules
%{_unitdir}/spice-webdavd.service
%changelog
* 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
- Add require avahi for spice-webdavd
* Fri Feb 28 2020 likexin <likexin4@huawei.com> - 2.2-6
- Optimize spec files
* Fri Feb 28 2020 likexin <likexin4@huawei.com> - 2.2-5
- add BuildRequires avahi-gobject
* Fri Dec 13 2019 wanjiankang <wanjiankang@huawei.com> - 2.2-4
- Initial packaging.

4
phodav.yaml Normal file
View File

@ -0,0 +1,4 @@
version-ctrl: gitlab.gnome
src_repo: phodav
tag_prefix: GNOME_PHODAV_
seperator: .