gupnp-igd-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Name: gupnp-igd
  2. Version: 0.2.5
  3. Release: 1%{?_dist_release}
  4. Summary: Library to handle UPnP IGD port mapping
  5. Group: System Environment/Libraries
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: LGPLv2+
  9. URL: https://wiki.gnome.org/Projects/GUPnP
  10. %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//')
  11. Source0: https://download.gnome.org/sources/gupnp/%{shortver}/%{name}-%{version}.tar.xz
  12. # https://gitlab.gnome.org/GNOME/gupnp-igd/-/merge_requests/1
  13. Patch0: switch-to-gupnp-1-2-api.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: glib2-devel
  16. BuildRequires: gobject-introspection-devel
  17. BuildRequires: gupnp-devel
  18. # for patch0
  19. BuildRequires: autoconf automake libtool
  20. %description
  21. %{name} is a library to handle UPnP IGD port mapping.
  22. %package devel
  23. Summary: Development files for %{name}
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. Requires: pkgconfig
  27. %description devel
  28. The %{name}-devel package contains libraries and header files for
  29. developing applications that use %{name}.
  30. %prep
  31. %autosetup -p1
  32. # for patch0
  33. autoreconf -fiv
  34. %build
  35. %configure --disable-static --disable-python --enable-introspection=yes
  36. # quite rpmlint error about unused-direct-shlib-dependency
  37. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  38. LDFLAGS="$RPM_LD_FLAGS -lgobject-2.0" make %{?_smp_mflags}
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  42. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %post -p /sbin/ldconfig
  46. %postun -p /sbin/ldconfig
  47. %files
  48. %defattr(-,root,root,-)
  49. %license COPYING
  50. %doc README
  51. %{_libdir}/*.so.*
  52. %{_libdir}/girepository-1.0/GUPnPIgd-1.0.typelib
  53. %files devel
  54. %defattr(-,root,root,-)
  55. %{_includedir}/*
  56. %{_libdir}/*.so
  57. %{_libdir}/pkgconfig/%{name}-1.0*.pc
  58. %{_datadir}/gtk-doc/html/%{name}/
  59. %{_datadir}/gir-1.0/GUPnPIgd-1.0.gir
  60. %changelog
  61. * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.2.5-1
  62. - new upstream release.
  63. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.3-5
  64. - rebuilt with rpm-4.8.1 for pkg-config
  65. * Sat Nov 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.3-4
  66. - initial build for Vine Linux
  67. * Thu Sep 17 2009 Bastien Nocera <bnocera@redhat.com> 0.1.3-3
  68. - Rebuild for new gupnp
  69. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  71. * Wed Jun 10 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.3-1
  72. - Update to 0.1.3.
  73. * Sat May 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.2-1
  74. - Update to 0.1.2.
  75. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  77. * Sun Jan 18 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-2
  78. - Quite rpmlint error about unused-direct-shlib-dependency.
  79. * Wed Dec 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-1
  80. - Initial Fedora spec.