1 | %define gupnp_ver 0.12.3 |
---|
2 | %define glib2_ver 2.16 |
---|
3 | |
---|
4 | Name: gupnp-igd |
---|
5 | Version: 0.1.3 |
---|
6 | Release: 5%{?_dist_release} |
---|
7 | Summary: Library to handle UPnP IGD port mapping |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: LGPLv2+ |
---|
11 | URL: http://www.gupnp.org/ |
---|
12 | Source0: http://www.gupnp.org/sources/%{name}/%{name}-%{version}.tar.gz |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: glib2-devel >= %{glib2_ver} |
---|
16 | BuildRequires: gupnp-devel >= %{gupnp_ver} |
---|
17 | |
---|
18 | %description |
---|
19 | %{name} is a library to handle UPnP IGD port mapping. |
---|
20 | |
---|
21 | %package devel |
---|
22 | Summary: Development files for %{name} |
---|
23 | Group: Development/Libraries |
---|
24 | Requires: %{name} = %{version}-%{release} |
---|
25 | Requires: pkgconfig |
---|
26 | |
---|
27 | %description devel |
---|
28 | The %{name}-devel package contains libraries and header files for |
---|
29 | developing applications that use %{name}. |
---|
30 | |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup -q |
---|
34 | |
---|
35 | %build |
---|
36 | %configure --disable-static |
---|
37 | # quite rpmlint error about unused-direct-shlib-dependency |
---|
38 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
39 | make %{?_smp_mflags} |
---|
40 | |
---|
41 | %install |
---|
42 | rm -rf $RPM_BUILD_ROOT |
---|
43 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
---|
44 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
45 | |
---|
46 | %clean |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | |
---|
49 | |
---|
50 | %post -p /sbin/ldconfig |
---|
51 | |
---|
52 | %postun -p /sbin/ldconfig |
---|
53 | |
---|
54 | |
---|
55 | %files |
---|
56 | %defattr(-,root,root,-) |
---|
57 | %doc README COPYING |
---|
58 | %{_libdir}/*.so.* |
---|
59 | |
---|
60 | %files devel |
---|
61 | %defattr(-,root,root,-) |
---|
62 | %{_includedir}/* |
---|
63 | %{_libdir}/*.so |
---|
64 | %{_libdir}/pkgconfig/%{name}-1.0*.pc |
---|
65 | %{_datadir}/gtk-doc/html/%{name} |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.3-5 |
---|
69 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
70 | |
---|
71 | * Sat Nov 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.3-4 |
---|
72 | - initial build for Vine Linux |
---|
73 | |
---|
74 | * Thu Sep 17 2009 Bastien Nocera <bnocera@redhat.com> 0.1.3-3 |
---|
75 | - Rebuild for new gupnp |
---|
76 | |
---|
77 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2 |
---|
78 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
79 | |
---|
80 | * Wed Jun 10 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.3-1 |
---|
81 | - Update to 0.1.3. |
---|
82 | |
---|
83 | * Sat May 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.2-1 |
---|
84 | - Update to 0.1.2. |
---|
85 | |
---|
86 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3 |
---|
87 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
88 | |
---|
89 | * Sun Jan 18 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-2 |
---|
90 | - Quite rpmlint error about unused-direct-shlib-dependency. |
---|
91 | |
---|
92 | * Wed Dec 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-1 |
---|
93 | - Initial Fedora spec. |
---|
94 | |
---|