87e6c9
Name:           gupnp-igd
87e6c9
Version:        0.2.5
87e6c9
Release:        4%{?dist}
87e6c9
Summary:        Library to handle UPnP IGD port mapping
87e6c9
87e6c9
License:        LGPLv2+
87e6c9
URL:            https://wiki.gnome.org/Projects/GUPnP
87e6c9
Source0:        https://download.gnome.org/sources/%{name}/0.2/%{name}-%{version}.tar.xz
87e6c9
87e6c9
BuildRequires:  glib2-devel
87e6c9
BuildRequires:  gobject-introspection-devel
87e6c9
BuildRequires:  gupnp-devel
87e6c9
87e6c9
Provides: %{name}-python = %{version}-%{release}
87e6c9
Provides: %{name}-python%{?_isa} = %{version}-%{release}
87e6c9
Obsoletes: %{name}-python < %{version}-%{release}
87e6c9
Provides: %{name}-python2 = %{version}-%{release}
87e6c9
Provides: %{name}-python2%{?_isa} = %{version}-%{release}
87e6c9
Obsoletes: %{name}-python2 < %{version}-%{release}
87e6c9
87e6c9
%description
87e6c9
%{name} is a library to handle UPnP IGD port mapping.
87e6c9
87e6c9
%package        devel
87e6c9
Summary:        Development files for %{name}
87e6c9
Requires:       %{name}%{?_isa} = %{version}-%{release}
87e6c9
Requires:       pkgconfig
87e6c9
87e6c9
%description    devel
87e6c9
The %{name}-devel package contains libraries and header files for
87e6c9
developing applications that use %{name}.
87e6c9
87e6c9
87e6c9
%prep
87e6c9
%setup -q
87e6c9
87e6c9
87e6c9
%build
87e6c9
%configure --disable-static --disable-python --enable-introspection=yes
87e6c9
# quite rpmlint error about unused-direct-shlib-dependency
87e6c9
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
87e6c9
LDFLAGS="$RPM_LD_FLAGS -lgobject-2.0" make %{?_smp_mflags}
87e6c9
87e6c9
87e6c9
%install
87e6c9
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
87e6c9
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
87e6c9
87e6c9
87e6c9
%post -p /sbin/ldconfig
87e6c9
87e6c9
87e6c9
%postun -p /sbin/ldconfig
87e6c9
87e6c9
87e6c9
%files
87e6c9
%license COPYING
87e6c9
%doc README
87e6c9
%{_libdir}/*.so.*
87e6c9
%{_libdir}/girepository-1.0/GUPnPIgd-1.0.typelib
87e6c9
87e6c9
87e6c9
%files devel
87e6c9
%{_includedir}/*
87e6c9
%{_libdir}/*.so
87e6c9
%{_libdir}/pkgconfig/%{name}-1.0*.pc
87e6c9
%{_datadir}/gtk-doc/html/%{name}/
87e6c9
%{_datadir}/gir-1.0/GUPnPIgd-1.0.gir
87e6c9
87e6c9
87e6c9
%changelog
87e6c9
* Fri Jun 29 2018 Bastien Nocera <bnocera@redhat.com> - 0.2.5-4
87e6c9
+ gupnp-igd-0.2.5-4
87e6c9
- Remove python2-gupnp-igd requires from -devel sub-package
87e6c9
87e6c9
* Thu Jun 07 2018 Bastien Nocera <bnocera@redhat.com> - 0.2.5-3
87e6c9
+ gupnp-igd-0.2.5-3
87e6c9
- Remove python2-gupnp-igd sub-package, nothing uses it in Fedora
87e6c9
  and gobject-introspection supports both Python2 and Python3
87e6c9
87e6c9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-2
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
87e6c9
87e6c9
* Tue Nov 21 2017 Kalev Lember <klember@redhat.com> - 0.2.5-1
87e6c9
- Update to 0.2.5
87e6c9
- Update inter-package dependencies after python2-gupnp-igd rename
87e6c9
- Tighten deps with the _isa macro
87e6c9
- Update source URLs
87e6c9
- Use license macro for COPYING
87e6c9
87e6c9
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.4-7
87e6c9
- Add Provides for the old name without %%_isa
87e6c9
87e6c9
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.4-6
87e6c9
- Python 2 binary package renamed to python2-gupnp-igd
87e6c9
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
87e6c9
87e6c9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-5
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
87e6c9
87e6c9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-4
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
87e6c9
87e6c9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-3
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
87e6c9
87e6c9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
87e6c9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
87e6c9
87e6c9
* Wed Jun 22 2016 Richard Hughes <rhughes@redhat.com> - 0.2.4-1
87e6c9
- Update to 0.2.4
87e6c9
87e6c9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-6
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
87e6c9
87e6c9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-5
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
87e6c9
87e6c9
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
87e6c9
87e6c9
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.3-3
87e6c9
- Rebuilt for gobject-introspection 1.41.4
87e6c9
87e6c9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
87e6c9
87e6c9
* Fri Feb  7 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.2.3-1
87e6c9
- Update to 0.2.3
87e6c9
- Enable gobject-introspection
87e6c9
87e6c9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-2
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
87e6c9
87e6c9
* Wed Mar 27 2013 Brian Pepple <bpepple@fedoraproject.org> - 0.2.2-1
87e6c9
- Update to 0.2.2.
87e6c9
- Drop define attribute. No longer needed.
87e6c9
- Update url and source url.
87e6c9
87e6c9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-3
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
87e6c9
87e6c9
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
87e6c9
87e6c9
* Mon Jan 16 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.2.1-1
87e6c9
- Update to 0.2.1.
87e6c9
- Drop gcc patch. Fixed upstream.
87e6c9
87e6c9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-7
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
87e6c9
87e6c9
* Fri Jun 17 2011 Peter Robinson <pbrobinson@gmail.com> - 0.1.7-6
87e6c9
- Bump for new gupnp
87e6c9
87e6c9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-5
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
87e6c9
87e6c9
* Sun Dec 26 2010 Peter Robinson <pbrobinson@gmail.com> - 0.1.7-4
87e6c9
- Add patch to fix FTBFS # 631415
87e6c9
87e6c9
* Thu Dec 23 2010 Dan Horák <dan[at]danny.cz> - 0.1.7-3
87e6c9
- workaround make 3.82 issue in python/Makefile
87e6c9
87e6c9
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.1.7-2
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
87e6c9
87e6c9
* Sat May 22 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.1.7-1
87e6c9
- Update to 0.1.7.
87e6c9
87e6c9
* Sat Jan 30 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.1.6-1
87e6c9
- Update to 0.1.6.
87e6c9
87e6c9
* Sun Dec  6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.1.5-1
87e6c9
- Update to 0.1.5.
87e6c9
87e6c9
* Mon Nov 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.4-1
87e6c9
- Update to 0.1.4.
87e6c9
87e6c9
* Thu Sep 17 2009 Bastien Nocera <bnocera@redhat.com> 0.1.3-3
87e6c9
- Rebuild for new gupnp
87e6c9
87e6c9
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
87e6c9
87e6c9
* Wed Jun 10 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.3-1
87e6c9
- Update to 0.1.3.
87e6c9
87e6c9
* Sat May 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.2-1
87e6c9
- Update to 0.1.2.
87e6c9
87e6c9
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
87e6c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
87e6c9
87e6c9
* Sun Jan 18 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-2
87e6c9
- Quite rpmlint error about unused-direct-shlib-dependency.
87e6c9
87e6c9
* Wed Dec 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-1
87e6c9
- Initial Fedora spec.
87e6c9