]> git.pld-linux.org Git - packages/libupnp.git/blame - libupnp.spec
- new spec
[packages/libupnp.git] / libupnp.spec
CommitLineData
512706b6
JK
1Summary: The Universal Plug and Play (UPnP) SDK for Linux
2Name: libupnp
3Version: 1.2.1a
4Release: 1
5License: BSD
6Group: Development/Libraries
7Source0: http://dl.sourceforge.net/upnp/%{name}-%{version}.tar.gz
8URL: http://upnp.sourceforge.net/
9Requires(pre,post): /sbin/ldconfig
10BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12%description
13The Linux SDK for UPnP Devices (libupnp) provides developers with an
14API and open source code for building control points, devices, and
15bridges that are compliant with Version 1.0 of the Universal Plug and
16Play Device Architecture Specification.
17
18%package devel
19Summary: Header files for libupnp
20Group: Development/Libraries
21Requires: %{name} = %{version}-%{release}
22
23%description devel
24This package contains header files for the Linux SDK for UPnP Devices
25(libupnp).
26
27%prep
28%setup -q
29
30%build
31cd ixml
32%{__make} \
33 CC="%{__cc}" \
34 %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
35 %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
36cd ../threadutil
37%{__make} \
38 CC="%{__cc}" \
39 %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
40 %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
41cd ../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
48rm -rf $RPM_BUILD_ROOT
49
50cd ixml
51%{__make} install \
52 PREFIX=$RPM_BUILD_ROOT
53cd ../threadutil
54%{__make} install \
55 PREFIX=$RPM_BUILD_ROOT
56cd ../upnp
57%{__make} install \
58 PREFIX=$RPM_BUILD_ROOT
59
60cd $RPM_BUILD_ROOT%{_libdir}
61ln -sf libupnp.so.*.* libupnp.so
62
63%clean
64rm -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}/*
This page took 0.099941 seconds and 4 git commands to generate.