Package init

This commit is contained in:
dogsheng 2019-11-19 11:47:17 +08:00
commit 8717f6744d
2 changed files with 56 additions and 0 deletions

BIN
gupnp-igd-0.2.5.tar.xz Normal file

Binary file not shown.

56
gupnp-igd.spec Normal file
View File

@ -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 <zhaolei746@huawei.com> - 0.2.5-6
- Package init