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

  ViewVC Help
Powered by ViewVC 1.1.30