]> git.pld-linux.org Git - packages/libupnp.git/blame - libupnp.spec
up to 1.14.13
[packages/libupnp.git] / libupnp.spec
CommitLineData
512706b6 1Summary: The Universal Plug and Play (UPnP) SDK for Linux
8f4b96c0 2Summary(pl.UTF-8): Pakiet programistyczny Universal Plug and Play (UPnP) dla Linuksa
512706b6 3Name: libupnp
eb1c9e16 4Version: 1.14.13
d3d61dea 5Release: 1
512706b6 6License: BSD
e6af47db 7Group: Libraries
3a7fe779 8Source0: https://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2
eb1c9e16 9# Source0-md5: 4178f44c95c642db0a5f540ede283ecf
14514a7e 10Patch0: %{name}-opt.patch
22e21b7e 11Patch1: %{name}-openssl.patch
721fc04d 12URL: http://pupnp.sourceforge.net/
3fd5bc70
JB
13BuildRequires: autoconf >= 2.60
14BuildRequires: automake >= 1:1.8
8f319c8f 15BuildRequires: doxygen
e6af47db 16BuildRequires: libtool >= 2:1.5
6c734217 17BuildRequires: openssl-devel >= 0.9.8b
22e21b7e 18BuildRequires: pkgconfig
d3d61dea 19BuildRequires: rpm-build >= 4.6
1d72a963 20BuildRequires: rpmbuild(macros) >= 1.752
512706b6
JK
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24The Linux SDK for UPnP Devices (libupnp) provides developers with an
25API and open source code for building control points, devices, and
26bridges that are compliant with Version 1.0 of the Universal Plug and
27Play Device Architecture Specification.
28
bf02779f
JR
29%description -l pl.UTF-8
30Linuksowy pakiet programistyczny dla urządzeń UPnP (libupnp) dostarcza
31programistom API i kod z otwartymi źródłami służące do tworzenia
32punktów kontrolnych, urządzeń i mostków kompatybilnych z wersją 1.0
33specyfikacji architektury urządzeń Universal Plug and Play.
61b88a23 34
512706b6
JK
35%package devel
36Summary: Header files for libupnp
8f4b96c0 37Summary(pl.UTF-8): Pliki nagłówkowe libupnp
512706b6
JK
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
6c734217 40Requires: openssl-devel >= 0.9.8b
fb01205f 41Conflicts: libupnp1.6-devel
512706b6
JK
42
43%description devel
44This package contains header files for the Linux SDK for UPnP Devices
45(libupnp).
46
bf02779f
JR
47%description devel -l pl.UTF-8
48Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu
49programistycznego do urządzeń UPnP (libupnp).
61b88a23 50
e6af47db
JB
51%package static
52Summary: Static upnp libraries
8f4b96c0 53Summary(pl.UTF-8): Statyczne biblioteki upnp
e6af47db
JB
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
fb01205f 56Conflicts: libupnp1.6-static
e6af47db
JB
57
58%description static
59Static upnp libraries.
60
bf02779f 61%description static -l pl.UTF-8
e6af47db
JB
62Statyczne biblioteki upnp.
63
e44fac5b
JB
64%package apidocs
65Summary: API documentation for upnp libraries
66Summary(pl.UTF-8): Dokumentacja API bibliotek upnp
67Group: Documentation
c558e54a 68BuildArch: noarch
e44fac5b
JB
69
70%description apidocs
71API documentation for upnp libraries.
72
73%description apidocs -l pl.UTF-8
74Dokumentacja 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
99rm -rf $RPM_BUILD_ROOT
100
e6af47db
JB
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
512706b6
JK
103
104%clean
105rm -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}
This page took 0.188911 seconds and 4 git commands to generate.