add Package
This commit is contained in:
parent
6e429213fc
commit
714a20151e
BIN
phodav-2.2.tar.xz
Normal file
BIN
phodav-2.2.tar.xz
Normal file
Binary file not shown.
92
phodav.spec
Normal file
92
phodav.spec
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
Name: phodav
|
||||||
|
Version: 2.2
|
||||||
|
Release: 4
|
||||||
|
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
|
||||||
|
|
||||||
|
Provides: chezdav = 0:%{version}-%{release} spice-webdavd = 0:%{version}-%{release}
|
||||||
|
Provides: libphodav = 0:%{version}-%{release} libphodav-2.0 = 0:%{version}-%{release}
|
||||||
|
Provides: libphodav2 = 0:%{version}-%{release}
|
||||||
|
Obsoletes: chezdav < 0:%{version}-%{release} spice-webdavd < 0:%{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
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libphodav
|
||||||
|
Requires: libphodav-2.0-devel = 0:%{version}-%{release} libphodav-devel = 0:%{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}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The libphodav-devel package provides the header files for phodav development library.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Help documentation for phodav
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Help documentation for phodav.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --with-avahi
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%delete_la_and_a
|
||||||
|
|
||||||
|
%find_lang phodav-2.0 --with-gnome
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
%systemd_post spice-webdavd.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
%systemd_postun_with_restart spice-webdavd.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun spice-webdavd.service
|
||||||
|
|
||||||
|
|
||||||
|
%files -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
|
||||||
|
%dir %{_includedir}/libphodav-2.0/
|
||||||
|
%{_includedir}/libphodav-2.0/*
|
||||||
|
%{_libdir}/libphodav-2.0.so
|
||||||
|
%{_libdir}/pkgconfig/libphodav-2.0.pc
|
||||||
|
%{_datadir}/gtk-doc/html/phodav-2.0/*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man1/chezdav.1*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Dec 13 2019 wanjiankang <wanjiankang@huawei.com> - 2.2-4
|
||||||
|
- Initial packaging.
|
||||||
Loading…
x
Reference in New Issue
Block a user