1 | %define name linux-igd |
---|
2 | %define source_name linuxigd |
---|
3 | %define version 1.0 |
---|
4 | %define release 2%{?_dist_release} |
---|
5 | |
---|
6 | Summary: The Linux UPNP Internet GATEWAY DEVICE |
---|
7 | Summary(ja): ユニバーサルプラグアンドプレイゲートウェイデバイス |
---|
8 | Name: %{name} |
---|
9 | Version: %{version} |
---|
10 | Release: %{release} |
---|
11 | Source0: %{source_name}-%{version}.tar.gz |
---|
12 | Patch0: %{source_name}-%{version}.patch |
---|
13 | Patch1: linux-igd-include.patch |
---|
14 | License: GPL |
---|
15 | Group: System Environment/Daemons |
---|
16 | URL: http://linux-igd.sourceforge.net/ |
---|
17 | Vendor: Project Vine |
---|
18 | Distribution: Vine Linux |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | BuildRequires: libupnp-devel >= 1.3.1 |
---|
22 | Requires: libupnp >= 1.3.1 |
---|
23 | |
---|
24 | %description |
---|
25 | This is a deamon that emulates Microsoft's Internet Connection Service (ICS). |
---|
26 | It implements the UPnP Internet Gateway Device specification (IGD) and allows UPnP aware clients, such as MSN Messenger to work properly from behind a Linux NAT firewall. |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q -n %{source_name}-%{version} |
---|
30 | %patch0 -p1 |
---|
31 | %patch1 -p1 |
---|
32 | |
---|
33 | %build |
---|
34 | %{__make} |
---|
35 | |
---|
36 | %install |
---|
37 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
38 | %{__make} install DESTDIR="${RPM_BUILD_ROOT}" |
---|
39 | |
---|
40 | %post |
---|
41 | if [ $1 = 1 ] ; then |
---|
42 | /sbin/chkconfig --add upnpd |
---|
43 | fi |
---|
44 | |
---|
45 | %preun |
---|
46 | if [ $1 = 0 ] ; then |
---|
47 | /etc/rc.d/init.d/upnpd stop |
---|
48 | /sbin/chkconfig --del upnpd |
---|
49 | fi |
---|
50 | |
---|
51 | %clean |
---|
52 | %__rm -rf ${RPM_BUILD_ROOT} |
---|
53 | |
---|
54 | %files |
---|
55 | %defattr(-, root, root) |
---|
56 | %doc CHANGES LICENSE doc/config_options |
---|
57 | %dir %{_sysconfdir}/linuxigd/ |
---|
58 | %attr(0644, root, root) %{_sysconfdir}/linuxigd/*.xml |
---|
59 | %{_sbindir}/upnpd |
---|
60 | %{_mandir}/man8/upnpd.8.gz |
---|
61 | %attr(0644, root, root) %config %{_sysconfdir}/upnpd.conf |
---|
62 | %attr(0755, root, root) %{_sysconfdir}/rc.d/init.d/upnpd |
---|
63 | %attr(0644, root, root) %config %{_sysconfdir}/sysconfig/upnpd |
---|
64 | |
---|
65 | %changelog |
---|
66 | * Tue May 01 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0-2 |
---|
67 | - rebuilt with current environment. |
---|
68 | - added Patch1. |
---|
69 | |
---|
70 | * Sun Mar 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-1vl5 |
---|
71 | - applied new versioning policy, spec in UTF-8 |
---|
72 | - fixed Group tag |
---|
73 | - added files to %%doc section |
---|
74 | |
---|
75 | * Tue Feb 14 2008 Masahiro INOUE <miyabi.-.inoue@nifty.com> 1.0 |
---|
76 | - initial build for Vine Linux |
---|
77 | |
---|
78 | * Mon Aug 14 2006 Tim Brody <tdb01r@ecs.soton.ac.uk> |
---|
79 | - Version 0.95 Release 1 |
---|
80 | - first build for version 0.95 (Release) |
---|
81 | * Sun Sep 26 2004 Watanabe Keiji <k@elt.ne.jp> |
---|
82 | - Version 0.99 Release ELT1 |
---|
83 | - first build for version 0.92 (CVS Version on Sep 25, 2004.) |
---|