2022-04-13 19:13:55 +08:00
|
|
|
%global apiver 1.2
|
|
|
|
|
%global gssdp_version 1.3.0
|
|
|
|
|
|
2019-11-19 11:47:13 +08:00
|
|
|
Name: gupnp
|
2022-04-13 19:13:55 +08:00
|
|
|
Version: 1.4.3
|
|
|
|
|
Release: 1
|
2019-11-19 11:47:13 +08:00
|
|
|
Summary: UPnP devices & control points creation framework
|
|
|
|
|
License: LGPLv2+
|
2022-04-13 19:13:55 +08:00
|
|
|
URL: https://www.gupnp.org/
|
|
|
|
|
Source0: https://download.gnome.org/sources/%{name}/1.4/%{name}-%{version}.tar.xz
|
|
|
|
|
Patch0: gupnp-1.4.2-revert-man-page.patch
|
2019-11-19 11:47:13 +08:00
|
|
|
|
2022-04-13 19:13:55 +08:00
|
|
|
BuildRequires: gssdp-devel >= %{gssdp_version} gtk-doc gobject-introspection-devel docbook-style-xsl
|
2021-06-15 11:48:58 +08:00
|
|
|
BuildRequires: libsoup-devel libxml2-devel libuuid-devel vala meson
|
2019-11-19 11:47:13 +08:00
|
|
|
Requires: dbus
|
2022-04-13 19:13:55 +08:00
|
|
|
Requires: gssdp%{?_isa} >= %{gssdp_version}
|
2019-11-19 11:47:13 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
GUPnP is an elegant, object-oriented open source framework for creating UPnP
|
|
|
|
|
devices and control points, written in C using GObject and libsoup. The GUPnP
|
|
|
|
|
API is intended to be easy to use, efficient and flexible. It provides the same
|
|
|
|
|
set of features as libupnp,but shields the developer from most of UPnP's internals.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries/include files package for gupnp
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Libraries/include files for development with gupnp.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Help documentations for gupnp
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: %{name}-docs = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-docs < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
This package contains help file and developer documentation for gupnp.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-06-15 11:48:58 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-11-19 11:47:13 +08:00
|
|
|
|
|
|
|
|
%build
|
2021-06-15 11:48:58 +08:00
|
|
|
%meson \
|
|
|
|
|
-Dcontext_manager=network-manager \
|
2022-04-13 19:13:55 +08:00
|
|
|
-Dgtk_doc=true \
|
|
|
|
|
-Dexamples=false \
|
|
|
|
|
%{nil}
|
2021-06-15 11:48:58 +08:00
|
|
|
%meson_build
|
2019-11-19 11:47:13 +08:00
|
|
|
|
|
|
|
|
%install
|
2021-06-15 11:48:58 +08:00
|
|
|
%meson_install
|
2019-11-19 11:47:13 +08:00
|
|
|
%delete_la
|
|
|
|
|
|
|
|
|
|
%check
|
2021-06-15 11:48:58 +08:00
|
|
|
%meson_test
|
2019-11-19 11:47:13 +08:00
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
2022-04-13 19:13:55 +08:00
|
|
|
%{_libdir}/libgupnp-%{apiver}.so.1*
|
|
|
|
|
%{_libdir}/girepository-1.0/GUPnP-%{apiver}.typelib
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_bindir}/gupnp-binding-tool-%{apiver}
|
|
|
|
|
%{_includedir}/gupnp-%{apiver}/
|
|
|
|
|
%{_libdir}/libgupnp-%{apiver}.so
|
|
|
|
|
%{_libdir}/pkgconfig/gupnp-%{apiver}.pc
|
|
|
|
|
%{_datadir}/gir-1.0/GUPnP-%{apiver}.gir
|
2019-11-19 11:47:13 +08:00
|
|
|
%{_datadir}/vala/vapi/gupnp*
|
|
|
|
|
|
2022-04-13 19:13:55 +08:00
|
|
|
%files help
|
|
|
|
|
%doc AUTHORS README.md
|
2019-11-19 11:47:13 +08:00
|
|
|
%doc %{_datadir}/gtk-doc/html/gupnp
|
2021-06-15 11:48:58 +08:00
|
|
|
%{_mandir}/man1/gupnp-binding-tool-*
|
2019-11-19 11:47:13 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2022-04-13 19:13:55 +08:00
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 1.4.3-1
|
|
|
|
|
- Update to 1.4.3
|
|
|
|
|
|
2021-07-14 17:54:16 +08:00
|
|
|
* Wed Jul 14 2021 Wenlong Ding <wenlong.ding@turbolinux.com.cn> - 1.2.4-2
|
|
|
|
|
- Add missing BuildRequires version: glib2-devel >= 2.66
|
|
|
|
|
|
2021-06-15 11:48:58 +08:00
|
|
|
* Mon Jun 7 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 1.2.4-1
|
|
|
|
|
- Upgrade to 1.2.4
|
|
|
|
|
- Update Version, Release, Source0, BuildRequires
|
|
|
|
|
- Delete sed operation which existed in this version
|
|
|
|
|
- Add patch for fix CVE-2021-33516
|
|
|
|
|
- Update stage 'prep', 'build', 'install', 'check', 'files'
|
|
|
|
|
|
2019-11-19 11:47:13 +08:00
|
|
|
* Fri Oct 25 2019 Alex Chao <zhaolei746@huawei.com> - 1.0.3-2
|
|
|
|
|
- Package init
|