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