]> git.pld-linux.org Git - packages/libupnp.git/blame - libupnp.spec
- MD5 sum
[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
02926a5d 8# Source0-md5: e72b3550bf064eedf080f16f09688891
512706b6
JK
9URL: http://upnp.sourceforge.net/
10Requires(pre,post): /sbin/ldconfig
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14The Linux SDK for UPnP Devices (libupnp) provides developers with an
15API and open source code for building control points, devices, and
16bridges that are compliant with Version 1.0 of the Universal Plug and
17Play Device Architecture Specification.
18
19%package devel
20Summary: Header files for libupnp
21Group: Development/Libraries
22Requires: %{name} = %{version}-%{release}
23
24%description devel
25This package contains header files for the Linux SDK for UPnP Devices
26(libupnp).
27
28%prep
29%setup -q
30
31%build
32cd ixml
33%{__make} \
34 CC="%{__cc}" \
35 %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
36 %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
37cd ../threadutil
38%{__make} \
39 CC="%{__cc}" \
40 %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
41 %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
42cd ../upnp
43%{__make} \
44 CC="%{__cc}" \
45 %{?!debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
46 %{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
47
48%install
49rm -rf $RPM_BUILD_ROOT
279d788f 50install -d $RPM_BUILD_ROOT%{_includedir}/upnp
512706b6
JK
51
52cd ixml
53%{__make} install \
54 PREFIX=$RPM_BUILD_ROOT
279d788f 55install -m 644 inc/* $RPM_BUILD_ROOT%{_includedir}/upnp
512706b6
JK
56cd ../threadutil
57%{__make} install \
58 PREFIX=$RPM_BUILD_ROOT
279d788f 59install -m 644 inc/* $RPM_BUILD_ROOT%{_includedir}/upnp
512706b6
JK
60cd ../upnp
61%{__make} install \
62 PREFIX=$RPM_BUILD_ROOT
63
64cd $RPM_BUILD_ROOT%{_libdir}
65ln -sf libupnp.so.*.* libupnp.so
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%post -p /sbin/ldconfig
71
72%postun -p /sbin/ldconfig
73
74%files
75%defattr(644,root,root,755)
76%doc README
77%attr(755,root,root) %{_libdir}/libupnp.so.*.*
78%attr(755,root,root) %{_libdir}/libixml.so
79%attr(755,root,root) %{_libdir}/libthreadutil.so
80
81%files devel
82%defattr(644,root,root,755)
83%doc upnp/doc/UPnP_Programming_Guide.pdf
84%{_libdir}/libupnp.so
85%{_includedir}/*
This page took 0.122098 seconds and 4 git commands to generate.