1 |
%define major 6 |
2 |
%define libname %mklibname upnp %{major} |
3 |
|
4 |
%define threadutilmajor 6 |
5 |
%define libthreadutil %mklibname threadutil %threadutilmajor |
6 |
|
7 |
%define ixmlmajor 2 |
8 |
%define libixml %mklibname ixml %ixmlmajor |
9 |
|
10 |
%define develname %mklibname upnp -d |
11 |
|
12 |
Summary: Library and tools for the UPnP protocol |
13 |
Name: libupnp |
14 |
Version: 1.6.15 |
15 |
%define subrel 1 |
16 |
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 |
Patch0: libupnp-1.6.15-VU-922681.patch |
22 |
|
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 |
|
30 |
%package -n %{libname} |
31 |
Summary: Library and tools for the UPnP protocol |
32 |
Group: System/Libraries |
33 |
Obsoletes: %mklibname upnp 0 |
34 |
|
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 |
|
42 |
%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 |
|
53 |
%package -n %{libixml} |
54 |
Summary: Library and tools for the UPnP protocol |
55 |
Group: System/Libraries |
56 |
Obsoletes: %{_lib}upnp3 < %{version} |
57 |
|
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 |
|
65 |
%package -n %{develname} |
66 |
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 |
|
75 |
%description -n %{develname} |
76 |
Libraries and includes files for developing programs based on %name. |
77 |
|
78 |
|
79 |
%prep |
80 |
%setup -q |
81 |
%patch0 -p1 |
82 |
|
83 |
%build |
84 |
%configure2_5x --disable-static \ |
85 |
--with-documentation=%{_docdir}/%{name} \ |
86 |
--enable-tools |
87 |
%make |
88 |
|
89 |
%install |
90 |
%makeinstall_std |
91 |
|
92 |
# don't ship .la |
93 |
find %{buildroot} -name *.la | xargs rm -f |
94 |
|
95 |
%files -n %{libname} |
96 |
%doc LICENSE NEWS README THANKS TODO |
97 |
%{_libdir}/libupnp.so.%{major} |
98 |
%{_libdir}/libupnp.so.%{major}.* |
99 |
|
100 |
%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 |
%files -n %{develname} |
109 |
%{_includedir}/* |
110 |
%{_libdir}/*.so |
111 |
%{_libdir}/pkgconfig/*pc |
112 |
%{_docdir}/%{name} |