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