/[packages]/updates/1/libupnp/current/SPECS/libupnp.spec
ViewVC logotype

Contents of /updates/1/libupnp/current/SPECS/libupnp.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 394768 - (show annotations) (download)
Wed Feb 6 00:06:54 2013 UTC (8 years, 7 months ago) by luigiwalser
File size: 2015 byte(s)
add patch from debian to fix VU-922681
1 %define major 3
2 %define minor 2
3 %define libname %mklibname upnp %{major}
4 %define develname %mklibname upnp -d
5
6 Summary: Library and tools for the UPnP protocol
7 Name: libupnp
8 Version: 1.6.6
9 %define subrel 1
10 Release: %mkrel 4
11 License: BSD
12 Group: System/Libraries
13 URL: http://pupnp.sourceforge.net/
14 Source: http://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2
15 Patch0: libupnp-1.6.6-VU-922681.patch
16
17 %description
18 The Linux SDK for UPnP Devices (libupnp) provides developers with an API and
19 open source code for building control points, devices, and bridges that are
20 compliant with Version 1.0 of the Universal Plug and Play Device
21 Architecture Specification.
22
23 %package -n %{libname}
24 Summary: Library and tools for the UPnP protocol
25 Group: System/Libraries
26 Obsoletes: %mklibname upnp 0
27
28 %description -n %{libname}
29 The Linux SDK for UPnP Devices (libupnp) provides developers with an API and
30 open source code for building control points, devices, and bridges that are
31 compliant with Version 1.0 of the Universal Plug and Play Device
32 Architecture Specification.
33
34 %package -n %{develname}
35 Summary: Header files and static libraries from %name
36 Group: Development/C
37 Requires: %{libname} >= %{version}-%{release}
38 Provides: %{name}-devel = %{version}-%{release}
39 Obsoletes: %{mklibname upnp 0 -d} < 1.6.5
40 Provides: %mklibname upnp 0 -d
41
42 %description -n %{develname}
43 Libraries and includes files for developing programs based on %name.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48
49 %build
50 %configure2_5x \
51 --with-documentation=%{_docdir}/%{name} \
52 --enable-tools \
53 --enable-sample
54 %make
55
56 %install
57 rm -rf %{buildroot}
58 %makeinstall_std
59
60 # don't ship .a, .la
61 find %{buildroot} -name *.a | xargs rm -f
62 find %{buildroot} -name *.la | xargs rm -f
63
64 %clean
65 rm -rf %{buildroot}
66
67 %files -n %{libname}
68 %doc LICENSE NEWS README THANKS TODO
69 %{_libdir}/*upnp.so.%{major}*
70 %{_libdir}/*.so.%{minor}*
71
72 %files -n %{develname}
73 %{_includedir}/*
74 %{_libdir}/*.so
75 %{_libdir}/pkgconfig/*pc
76 %{_docdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.28