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