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