]>
Commit | Line | Data |
---|---|---|
dcfbcc05 | 1 | # TODO: -apidocs (doc++ or doxygen based?) |
512706b6 | 2 | Summary: The Universal Plug and Play (UPnP) SDK for Linux |
8f4b96c0 | 3 | Summary(pl.UTF-8): Pakiet programistyczny Universal Plug and Play (UPnP) dla Linuksa |
512706b6 | 4 | Name: libupnp |
da998ec7 | 5 | Version: 1.10.1 |
620ab43e | 6 | Release: 1 |
512706b6 | 7 | License: BSD |
e6af47db | 8 | Group: Libraries |
6c14d183 | 9 | Source0: http://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2 |
da998ec7 | 10 | # Source0-md5: 6060b9b7233996d174bf12f804f34d5f |
14514a7e | 11 | Patch0: %{name}-opt.patch |
721fc04d | 12 | URL: http://pupnp.sourceforge.net/ |
3fd5bc70 JB |
13 | BuildRequires: autoconf >= 2.60 |
14 | BuildRequires: automake >= 1:1.8 | |
e6af47db | 15 | BuildRequires: libtool >= 2:1.5 |
512706b6 JK |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | The Linux SDK for UPnP Devices (libupnp) provides developers with an | |
20 | API and open source code for building control points, devices, and | |
21 | bridges that are compliant with Version 1.0 of the Universal Plug and | |
22 | Play Device Architecture Specification. | |
23 | ||
bf02779f JR |
24 | %description -l pl.UTF-8 |
25 | Linuksowy pakiet programistyczny dla urządzeń UPnP (libupnp) dostarcza | |
26 | programistom API i kod z otwartymi źródłami służące do tworzenia | |
27 | punktów kontrolnych, urządzeń i mostków kompatybilnych z wersją 1.0 | |
28 | specyfikacji architektury urządzeń Universal Plug and Play. | |
61b88a23 | 29 | |
512706b6 JK |
30 | %package devel |
31 | Summary: Header files for libupnp | |
8f4b96c0 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe libupnp |
512706b6 JK |
33 | Group: Development/Libraries |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | This package contains header files for the Linux SDK for UPnP Devices | |
38 | (libupnp). | |
39 | ||
bf02779f JR |
40 | %description devel -l pl.UTF-8 |
41 | Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu | |
42 | programistycznego do urządzeń UPnP (libupnp). | |
61b88a23 | 43 | |
e6af47db JB |
44 | %package static |
45 | Summary: Static upnp libraries | |
8f4b96c0 | 46 | Summary(pl.UTF-8): Statyczne biblioteki upnp |
e6af47db JB |
47 | Group: Development/Libraries |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static upnp libraries. | |
52 | ||
bf02779f | 53 | %description static -l pl.UTF-8 |
e6af47db JB |
54 | Statyczne biblioteki upnp. |
55 | ||
e44fac5b JB |
56 | %package apidocs |
57 | Summary: API documentation for upnp libraries | |
58 | Summary(pl.UTF-8): Dokumentacja API bibliotek upnp | |
59 | Group: Documentation | |
60 | %if "%{_rpmversion}" >= "5" | |
61 | BuildArch: noarch | |
62 | %endif | |
63 | ||
64 | %description apidocs | |
65 | API documentation for upnp libraries. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API bibliotek upnp. | |
69 | ||
512706b6 JK |
70 | %prep |
71 | %setup -q | |
14514a7e | 72 | %patch0 -p1 |
512706b6 | 73 | |
dcfbcc05 JB |
74 | # LFS is required in library clients (including examples) |
75 | %{__sed} -i -e '/^Cflags/ s/$/ -D_FILE_OFFSET_BITS=64/' libupnp.pc.in | |
76 | %{__sed} -i -e '/^AM_CPPFLAGS =/ s/= /= -D_FILE_OFFSET_BITS=64 /' upnp/sample/Makefile.am | |
77 | ||
512706b6 | 78 | %build |
e6af47db JB |
79 | %{__libtoolize} |
80 | %{__aclocal} -I m4 | |
81 | %{__autoconf} | |
82 | %{__autoheader} | |
83 | %{__automake} | |
84 | %configure \ | |
85 | %{?debug:--enable-debug} | |
86 | %{__make} | |
512706b6 JK |
87 | |
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
e6af47db JB |
91 | %{__make} install \ |
92 | DESTDIR=$RPM_BUILD_ROOT | |
512706b6 JK |
93 | |
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
61b88a23 JB |
97 | %post -p /sbin/ldconfig |
98 | %postun -p /sbin/ldconfig | |
512706b6 JK |
99 | |
100 | %files | |
101 | %defattr(644,root,root,755) | |
dcfbcc05 | 102 | %doc COPYING ChangeLog THANKS |
e6af47db | 103 | %attr(755,root,root) %{_libdir}/libixml.so.*.*.* |
da998ec7 | 104 | %attr(755,root,root) %ghost %{_libdir}/libixml.so.11 |
e6af47db | 105 | %attr(755,root,root) %{_libdir}/libupnp.so.*.*.* |
da998ec7 | 106 | %attr(755,root,root) %ghost %{_libdir}/libupnp.so.15 |
512706b6 JK |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
e6af47db | 110 | %attr(755,root,root) %{_libdir}/libixml.so |
e6af47db JB |
111 | %attr(755,root,root) %{_libdir}/libupnp.so |
112 | %{_libdir}/libixml.la | |
e6af47db JB |
113 | %{_libdir}/libupnp.la |
114 | %{_includedir}/upnp | |
115 | %{_pkgconfigdir}/libupnp.pc | |
116 | ||
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libixml.a | |
e6af47db | 120 | %{_libdir}/libupnp.a |
e44fac5b | 121 | |
dcfbcc05 | 122 | %if 0 |
e44fac5b JB |
123 | %files apidocs |
124 | %defattr(644,root,root,755) | |
125 | %doc docs/dist/html/{ixml,upnp} | |
dcfbcc05 | 126 | %endif |