]> git.pld-linux.org Git - packages/libupnp.git/blob - libupnp.spec
up to 1.14.5 (fixes CVE-2021-28302)
[packages/libupnp.git] / libupnp.spec
1 Summary:        The Universal Plug and Play (UPnP) SDK for Linux
2 Summary(pl.UTF-8):      Pakiet programistyczny Universal Plug and Play (UPnP) dla Linuksa
3 Name:           libupnp
4 Version:        1.14.5
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 Source0:        https://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2
9 # Source0-md5:  813094b1348883d1091199ff516674dd
10 Patch0:         %{name}-opt.patch
11 Patch1:         %{name}-openssl.patch
12 URL:            http://pupnp.sourceforge.net/
13 BuildRequires:  autoconf >= 2.60
14 BuildRequires:  automake >= 1:1.8
15 BuildRequires:  doxygen
16 BuildRequires:  libtool >= 2:1.5
17 BuildRequires:  openssl-devel >= 0.9.8b
18 BuildRequires:  pkgconfig
19 BuildRequires:  rpmbuild(macros) >= 1.752
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
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.
33
34 %package devel
35 Summary:        Header files for libupnp
36 Summary(pl.UTF-8):      Pliki nagłówkowe libupnp
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       openssl-devel >= 0.9.8b
40 Conflicts:      libupnp1.6-devel
41
42 %description devel
43 This package contains header files for the Linux SDK for UPnP Devices
44 (libupnp).
45
46 %description devel -l pl.UTF-8
47 Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu
48 programistycznego do urządzeń UPnP (libupnp).
49
50 %package static
51 Summary:        Static upnp libraries
52 Summary(pl.UTF-8):      Statyczne biblioteki upnp
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55 Conflicts:      libupnp1.6-static
56
57 %description static
58 Static upnp libraries.
59
60 %description static -l pl.UTF-8
61 Statyczne biblioteki upnp.
62
63 %package apidocs
64 Summary:        API documentation for upnp libraries
65 Summary(pl.UTF-8):      Dokumentacja API bibliotek upnp
66 Group:          Documentation
67 BuildArch:      noarch
68
69 %description apidocs
70 API documentation for upnp libraries.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API bibliotek upnp.
74
75 %prep
76 %setup -q
77 %patch0 -p1
78 %patch1 -p1
79
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
83
84 %build
85 %{__libtoolize}
86 %{__aclocal} -I m4
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         %{?debug:--enable-debug} \
92         --enable-open-ssl \
93         --disable-silent-rules
94 %{__make}
95 %{__make} -C docs docs
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc COPYING ChangeLog THANKS
112 %attr(755,root,root) %{_libdir}/libixml.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libixml.so.11
114 %attr(755,root,root) %{_libdir}/libupnp.so.*.*.*
115 %attr(755,root,root) %ghost %{_libdir}/libupnp.so.17
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libixml.so
120 %attr(755,root,root) %{_libdir}/libupnp.so
121 %{_libdir}/libixml.la
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
129 %{_libdir}/libupnp.a
130
131 %files apidocs
132 %defattr(644,root,root,755)
133 %doc docs/doxygen/html/*.{html,js,css,png}
This page took 0.071744 seconds and 3 git commands to generate.