commit 8717f6744d76509a23e6b996d493ba7c4013bdd1 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:47:17 2019 +0800 Package init diff --git a/gupnp-igd-0.2.5.tar.xz b/gupnp-igd-0.2.5.tar.xz new file mode 100644 index 0000000..85a9a7d Binary files /dev/null and b/gupnp-igd-0.2.5.tar.xz differ diff --git a/gupnp-igd.spec b/gupnp-igd.spec new file mode 100644 index 0000000..e4db1ef --- /dev/null +++ b/gupnp-igd.spec @@ -0,0 +1,56 @@ +Name: gupnp-igd +Version: 0.2.5 +Release: 6 +Summary: Library for handling port mapping between UPnP and IGD +License: LGPLv2+ +URL: https://wiki.gnome.org/Projects/GUPnP +Source0: https://download.gnome.org/sources/%{name}/0.2/%{name}-%{version}.tar.xz + +BuildRequires: glib2-devel gobject-introspection-devel gupnp-devel + +Provides: %{name}-python = %{version}-%{release} %{name}-python2 = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} %{name}-python2 < %{version}-%{release} + +%description +%{name} is a library for handling UPnP IGD port mapping. + +%package devel +Summary: Development files for gupnp-igd +Requires: %{name} = %{version}-%{release} pkgconfig + +%description devel +This package contains libraries and header files for developing applications that use gupnp-igd. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --disable-static --disable-python --enable-introspection=yes +sed -i -e 's$ -shared $ -Wl,--as-needed\0$g' libtool +%make_build LDFLAGS="$RPM_LD_FLAGS -lgobject-2.0" + +%install +%make_install +%delete_la + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%license COPYING +%doc README +%{_libdir}/*.so.* +%{_libdir}/girepository-1.0/GUPnPIgd-1.0.typelib + +%files devel +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/%{name}-1.0*.pc +%{_datadir}/gtk-doc/html/%{name}/ +%{_datadir}/gir-1.0/GUPnPIgd-1.0.gir + + +%changelog +* Sat Oct 26 2019 Alex Chao - 0.2.5-6 +- Package init