1 |
fwang |
133460 |
%define major 6 |
2 |
ahmad |
39540 |
%define libname %mklibname upnp %{major} |
3 |
fwang |
133460 |
|
4 |
|
|
%define threadutilmajor 6 |
5 |
|
|
%define libthreadutil %mklibname threadutil %threadutilmajor |
6 |
|
|
|
7 |
|
|
%define ixmlmajor 2 |
8 |
|
|
%define libixml %mklibname ixml %ixmlmajor |
9 |
|
|
|
10 |
ahmad |
39540 |
%define develname %mklibname upnp -d |
11 |
|
|
|
12 |
kamil |
202533 |
Summary: Library and tools for the UPnP protocol |
13 |
|
|
Name: libupnp |
14 |
|
|
Version: 1.6.15 |
15 |
luigiwalser |
394767 |
%define subrel 1 |
16 |
kamil |
202533 |
Release: %mkrel 1 |
17 |
|
|
License: BSD |
18 |
|
|
Group: System/Libraries |
19 |
|
|
URL: http://pupnp.sourceforge.net/ |
20 |
|
|
Source0: http://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2 |
21 |
luigiwalser |
394767 |
Patch0: libupnp-1.6.15-VU-922681.patch |
22 |
ahmad |
39540 |
|
23 |
|
|
%description |
24 |
|
|
The Linux SDK for UPnP Devices (libupnp) provides developers with an API and |
25 |
|
|
open source code for building control points, devices, and bridges that are |
26 |
|
|
compliant with Version 1.0 of the Universal Plug and Play Device |
27 |
|
|
Architecture Specification. |
28 |
|
|
|
29 |
kamil |
202533 |
|
30 |
ahmad |
39540 |
%package -n %{libname} |
31 |
|
|
Summary: Library and tools for the UPnP protocol |
32 |
|
|
Group: System/Libraries |
33 |
kamil |
202533 |
Obsoletes: %mklibname upnp 0 |
34 |
ahmad |
39540 |
|
35 |
|
|
%description -n %{libname} |
36 |
|
|
The Linux SDK for UPnP Devices (libupnp) provides developers with an API and |
37 |
|
|
open source code for building control points, devices, and bridges that are |
38 |
|
|
compliant with Version 1.0 of the Universal Plug and Play Device |
39 |
|
|
Architecture Specification. |
40 |
|
|
|
41 |
kamil |
202533 |
|
42 |
fwang |
133460 |
%package -n %{libthreadutil} |
43 |
|
|
Summary: Library and tools for the UPnP protocol |
44 |
|
|
Group: System/Libraries |
45 |
|
|
|
46 |
|
|
%description -n %{libthreadutil} |
47 |
|
|
The Linux SDK for UPnP Devices (libupnp) provides developers with an API and |
48 |
|
|
open source code for building control points, devices, and bridges that are |
49 |
|
|
compliant with Version 1.0 of the Universal Plug and Play Device |
50 |
|
|
Architecture Specification. |
51 |
|
|
|
52 |
kamil |
202533 |
|
53 |
fwang |
133460 |
%package -n %{libixml} |
54 |
|
|
Summary: Library and tools for the UPnP protocol |
55 |
|
|
Group: System/Libraries |
56 |
kamil |
202533 |
Obsoletes: %{_lib}upnp3 < %{version} |
57 |
fwang |
133460 |
|
58 |
|
|
%description -n %{libixml} |
59 |
|
|
The Linux SDK for UPnP Devices (libupnp) provides developers with an API and |
60 |
|
|
open source code for building control points, devices, and bridges that are |
61 |
|
|
compliant with Version 1.0 of the Universal Plug and Play Device |
62 |
|
|
Architecture Specification. |
63 |
|
|
|
64 |
kamil |
202533 |
|
65 |
ahmad |
39540 |
%package -n %{develname} |
66 |
kamil |
202533 |
Summary: Header files and static libraries from %name |
67 |
|
|
Group: Development/C |
68 |
|
|
Requires: %{libname} = %{version}-%{release} |
69 |
|
|
Requires: %{libthreadutil} = %{version}-%{release} |
70 |
|
|
Requires: %{libixml} = %{version}-%{release} |
71 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
72 |
|
|
Obsoletes: %{mklibname upnp 0 -d} < 1.6.5 |
73 |
|
|
Provides: %mklibname upnp 0 -d |
74 |
ahmad |
39540 |
|
75 |
|
|
%description -n %{develname} |
76 |
|
|
Libraries and includes files for developing programs based on %name. |
77 |
|
|
|
78 |
kamil |
202533 |
|
79 |
ahmad |
39540 |
%prep |
80 |
|
|
%setup -q |
81 |
luigiwalser |
394767 |
%patch0 -p1 |
82 |
ahmad |
39540 |
|
83 |
|
|
%build |
84 |
fwang |
133460 |
%configure2_5x --disable-static \ |
85 |
kamil |
202533 |
--with-documentation=%{_docdir}/%{name} \ |
86 |
|
|
--enable-tools |
87 |
ahmad |
39540 |
%make |
88 |
kamil |
202533 |
|
89 |
ahmad |
39540 |
%install |
90 |
|
|
%makeinstall_std |
91 |
|
|
|
92 |
fwang |
133460 |
# don't ship .la |
93 |
ahmad |
39636 |
find %{buildroot} -name *.la | xargs rm -f |
94 |
|
|
|
95 |
ahmad |
39540 |
%files -n %{libname} |
96 |
|
|
%doc LICENSE NEWS README THANKS TODO |
97 |
fwang |
133460 |
%{_libdir}/libupnp.so.%{major} |
98 |
|
|
%{_libdir}/libupnp.so.%{major}.* |
99 |
ahmad |
39540 |
|
100 |
fwang |
133460 |
%files -n %{libthreadutil} |
101 |
|
|
%{_libdir}/libthreadutil.so.%{threadutilmajor} |
102 |
|
|
%{_libdir}/libthreadutil.so.%{threadutilmajor}.* |
103 |
|
|
|
104 |
|
|
%files -n %{libixml} |
105 |
|
|
%{_libdir}/libixml.so.%{ixmlmajor} |
106 |
|
|
%{_libdir}/libixml.so.%{ixmlmajor}.* |
107 |
|
|
|
108 |
ahmad |
39540 |
%files -n %{develname} |
109 |
|
|
%{_includedir}/* |
110 |
|
|
%{_libdir}/*.so |
111 |
|
|
%{_libdir}/pkgconfig/*pc |
112 |
|
|
%{_docdir}/%{name} |