1 ## |
1 ## |
2 ## libupnp.spec -- OpenPKG RPM Specification |
2 ## libupnp.spec -- OpenPKG RPM Specification |
3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> |
3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com> |
4 ## |
4 ## |
5 ## Permission to use, copy, modify, and distribute this software for |
5 ## Permission to use, copy, modify, and distribute this software for |
6 ## any purpose with or without fee is hereby granted, provided that |
6 ## any purpose with or without fee is hereby granted, provided that |
7 ## the above copyright notice and this permission notice appear in all |
7 ## the above copyright notice and this permission notice appear in all |
8 ## copies. |
8 ## copies. |
30 Packager: Michael Schloh von Bennewitz |
30 Packager: Michael Schloh von Bennewitz |
31 Distribution: Europalab Networks Production |
31 Distribution: Europalab Networks Production |
32 Class: EVAL |
32 Class: EVAL |
33 Group: Network |
33 Group: Network |
34 License: BSD |
34 License: BSD |
35 Version: 1.6.6 |
35 Version: 1.6.17 |
36 Release: 20090106 |
36 Release: 20120800 |
37 |
37 |
38 # list of sources |
38 # list of sources |
39 Source0: http://switch.dl.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2 |
39 Source0: http://switch.dl.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2 |
40 Patch0: libupnp.patch |
40 Patch0: libupnp.patch |
41 |
41 |
42 # build information |
42 # build information |
43 Prefix: %{l_prefix} |
43 BuildPreReq: OpenPKG, openpkg >= 20100101, make |
44 BuildRoot: %{l_buildroot} |
44 PreReq: OpenPKG, openpkg >= 20100101 |
45 BuildPreReq: OpenPKG, openpkg >= 20040130, make |
|
46 PreReq: OpenPKG, openpkg >= 20040130 |
|
47 AutoReq: no |
|
48 AutoReqProv: no |
|
49 |
45 |
50 %description |
46 %description |
51 The portable Universal Plug and Play (UPnP) SDK provides support |
47 The portable Universal Plug and Play (UPnP) SDK provides support |
52 for building UPnP compliant control points, devices, and bridges |
48 for building UPnP compliant control points, devices, and bridges |
53 that are compliant with version 1.0 of the Universal Plug and |
49 that are compliant with version 1.0 of the Universal Plug and |
96 LDFLAGS="%{l_ldflags}" \ |
92 LDFLAGS="%{l_ldflags}" \ |
97 LIBS="$loclibs" \ |
93 LIBS="$loclibs" \ |
98 GREP=grep \ |
94 GREP=grep \ |
99 ./configure \ |
95 ./configure \ |
100 --prefix=%{l_prefix} \ |
96 --prefix=%{l_prefix} \ |
|
97 --disable-optssdp \ |
101 --disable-shared |
98 --disable-shared |
102 |
99 |
103 # build using parallel make |
100 # build using parallel make |
104 %{l_make} %{l_mflags -O} |
101 %{l_make} %{l_mflags -O} |
105 |
102 |
106 %install |
103 %install |
107 # remove previously existing installations |
|
108 rm -rf $RPM_BUILD_ROOT |
|
109 |
|
110 # run the native installation logic |
104 # run the native installation logic |
111 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
105 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
112 |
106 |
113 # install docs |
107 # install docs |
114 %{l_shtool} mkdir -f -p -m 755 \ |
108 %{l_shtool} mkdir -f -p -m 755 \ |
126 $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/pdf/ |
120 $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/pdf/ |
127 |
121 |
128 # install examples |
122 # install examples |
129 %{l_shtool} mkdir -f -p -m 755 \ |
123 %{l_shtool} mkdir -f -p -m 755 \ |
130 $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples |
124 $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples |
131 %{l_shtool} install -c -m 755 \ |
125 %{l_shtool} install -c -m 755 -s \ |
132 upnp/sample/upnp_tv_combo \ |
126 upnp/sample/tv_combo \ |
133 upnp/sample/upnp_tv_ctrlpt \ |
127 upnp/sample/tv_ctrlpt \ |
134 upnp/sample/upnp_tv_device \ |
128 upnp/sample/tv_device \ |
135 $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples/ |
129 $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples/ |
136 |
130 |
137 # determine installation files |
131 # determine installation files |
138 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
132 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
139 %{l_files_std} \ |
133 %{l_files_std} \ |
142 '%not %dir %{l_prefix}/lib/pkgconfig' |
136 '%not %dir %{l_prefix}/lib/pkgconfig' |
143 |
137 |
144 %files -f files |
138 %files -f files |
145 |
139 |
146 %clean |
140 %clean |
147 rm -rf $RPM_BUILD_ROOT |
|
148 |
141 |
149 %post |
142 %post |
150 # after installing or upgrading package networking reminder |
143 # after installing or upgrading package networking reminder |
151 ( echo "Before using UPnP, the network must be able to multicast route." |
144 ( echo "Before using UPnP, the network must be able to multicast route." |
152 echo "The following command may add a static multicast route:" |
145 echo "The following command may add a static multicast route:" |