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