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