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