]>
Commit | Line | Data |
---|---|---|
512706b6 JK |
1 | Summary: The Universal Plug and Play (UPnP) SDK for Linux |
2 | Name: libupnp | |
3 | Version: 1.2.1a | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Development/Libraries | |
7 | Source0: http://dl.sourceforge.net/upnp/%{name}-%{version}.tar.gz | |
02926a5d | 8 | # Source0-md5: e72b3550bf064eedf080f16f09688891 |
512706b6 JK |
9 | URL: http://upnp.sourceforge.net/ |
10 | Requires(pre,post): /sbin/ldconfig | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | The Linux SDK for UPnP Devices (libupnp) provides developers with an | |
15 | API and open source code for building control points, devices, and | |
16 | bridges that are compliant with Version 1.0 of the Universal Plug and | |
17 | Play Device Architecture Specification. | |
18 | ||
19 | %package devel | |
20 | Summary: Header files for libupnp | |
21 | Group: Development/Libraries | |
22 | Requires: %{name} = %{version}-%{release} | |
23 | ||
24 | %description devel | |
25 | This package contains header files for the Linux SDK for UPnP Devices | |
26 | (libupnp). | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | cd ixml | |
33 | %{__make} \ | |
34 | CC="%{__cc}" \ | |
35 | %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \ | |
36 | %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"} | |
37 | cd ../threadutil | |
38 | %{__make} \ | |
39 | CC="%{__cc}" \ | |
40 | %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \ | |
41 | %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"} | |
42 | cd ../upnp | |
43 | %{__make} \ | |
44 | CC="%{__cc}" \ | |
45 | %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \ | |
46 | %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
279d788f | 50 | install -d $RPM_BUILD_ROOT%{_includedir}/upnp |
512706b6 JK |
51 | |
52 | cd ixml | |
53 | %{__make} install \ | |
54 | PREFIX=$RPM_BUILD_ROOT | |
279d788f | 55 | install -m 644 inc/* $RPM_BUILD_ROOT%{_includedir}/upnp |
512706b6 JK |
56 | cd ../threadutil |
57 | %{__make} install \ | |
58 | PREFIX=$RPM_BUILD_ROOT | |
279d788f | 59 | install -m 644 inc/* $RPM_BUILD_ROOT%{_includedir}/upnp |
512706b6 JK |
60 | cd ../upnp |
61 | %{__make} install \ | |
62 | PREFIX=$RPM_BUILD_ROOT | |
63 | ||
64 | cd $RPM_BUILD_ROOT%{_libdir} | |
65 | ln -sf libupnp.so.*.* libupnp.so | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | ||
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc README | |
77 | %attr(755,root,root) %{_libdir}/libupnp.so.*.* | |
78 | %attr(755,root,root) %{_libdir}/libixml.so | |
79 | %attr(755,root,root) %{_libdir}/libthreadutil.so | |
80 | ||
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %doc upnp/doc/UPnP_Programming_Guide.pdf | |
84 | %{_libdir}/libupnp.so | |
85 | %{_includedir}/* |