phodav/phodav.spec

130 lines
3.4 KiB
RPMSpec
Raw Normal View History

2020-02-28 16:15:32 +08:00
Name: phodav
2023-02-01 19:17:10 +08:00
Version: 3.0
2021-06-30 16:37:49 +08:00
Release: 1
2020-02-28 16:15:32 +08:00
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
2023-02-01 19:17:10 +08:00
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)
2019-12-14 21:29:01 +08:00
%description
2020-02-28 16:15:32 +08:00
A WebDAV server implementation using libsoup (RFC 4918).
%package -n libphodav
Summary: A library to serve files with WebDAV
%description -n libphodav
This package provides the library of WebDAV server.
%package -n libphodav-devel
Summary: Development files for libphodav
Requires: libphodav = %{version}-%{release}
%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 spice-webdavd
Summary: Spice daemon for the DAV channel
2021-03-09 10:16:47 +08:00
Requires: avahi
2020-02-28 16:15:32 +08:00
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.
2019-12-14 21:29:01 +08:00
%prep
%autosetup -p1
%build
2021-06-30 16:37:49 +08:00
%meson -Davahi=enabled
%meson_build
2019-12-14 21:29:01 +08:00
%install
2021-06-30 16:37:49 +08:00
%meson_install
2019-12-14 21:29:01 +08:00
%delete_la_and_a
2023-02-01 19:17:10 +08:00
%find_lang phodav-3.0 --with-gnome
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcspice-webdavd
2019-12-14 21:29:01 +08:00
2020-02-28 16:15:32 +08:00
%post -n libphodav
2019-12-14 21:29:01 +08:00
/sbin/ldconfig
2020-02-28 16:15:32 +08:00
%postun -n libphodav
2019-12-14 21:29:01 +08:00
/sbin/ldconfig
2020-02-28 16:15:32 +08:00
%post -n spice-webdavd
%systemd_post spice-webdavd.service
%preun -n spice-webdavd
2019-12-14 21:29:01 +08:00
%systemd_preun spice-webdavd.service
2020-02-28 16:15:32 +08:00
%postun -n spice-webdavd
%systemd_postun_with_restart spice-webdavd.service
2019-12-14 21:29:01 +08:00
2023-02-01 19:17:10 +08:00
%files -n libphodav -f phodav-3.0.lang
2019-12-14 21:29:01 +08:00
%doc COPYING
2023-02-01 19:17:10 +08:00
%{_libdir}/libphodav-3.0.so.0*
2019-12-14 21:29:01 +08:00
2020-02-28 16:15:32 +08:00
%files -n libphodav-devel
2023-02-01 19:17:10 +08:00
%dir %{_includedir}/libphodav-3.0/
%{_includedir}/libphodav-3.0/*
%{_libdir}/libphodav-3.0.so
2020-02-28 16:15:32 +08:00
%{_libdir}/pkgconfig/*
2023-02-01 19:17:10 +08:00
%{_datadir}/gtk-doc/html/phodav-3.0/*
2019-12-14 21:29:01 +08:00
2020-02-28 16:15:32 +08:00
%files -n chezdav
%{_bindir}/chezdav
2019-12-14 21:29:01 +08:00
%{_mandir}/man1/chezdav.1*
2020-02-28 16:15:32 +08:00
%files -n spice-webdavd
%doc COPYING
%{_sbindir}/spice-webdavd
2023-02-01 19:17:10 +08:00
%{_sbindir}/rcspice-webdavd
%{_udevrulesdir}/70-spice-webdavd.rules
2020-02-28 16:15:32 +08:00
%{_unitdir}/spice-webdavd.service
2019-12-14 21:29:01 +08:00
%changelog
2023-02-01 19:17:10 +08:00
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 3.0-1
- update to 3.0
2021-06-30 16:37:49 +08:00
* Wed Jun 30 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.5-1
- Upgrade to 2.5
- Use meson rebuild
2021-05-31 17:26:45 +08:00
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 2.2-8
- Completing build dependencies
2021-03-09 10:16:47 +08:00
* Tue Mar 9 2021 lingsheng <lingsheng@huawei.com> - 2.2-7
- Add require avahi for spice-webdavd
2020-02-28 16:15:32 +08:00
* Fri Feb 28 2020 likexin <likexin4@huawei.com> - 2.2-6
- Optimize spec files
2020-02-28 14:51:50 +08:00
* Fri Feb 28 2020 likexin <likexin4@huawei.com> - 2.2-5
- add BuildRequires avahi-gobject
2020-02-28 16:15:32 +08:00
2019-12-14 21:29:01 +08:00
* Fri Dec 13 2019 wanjiankang <wanjiankang@huawei.com> - 2.2-4
- Initial packaging.