]> git.pld-linux.org Git - packages/libupnp.git/blame_incremental - libupnp.spec
up to 1.14.4
[packages/libupnp.git] / libupnp.spec
... / ...
CommitLineData
1Summary: The Universal Plug and Play (UPnP) SDK for Linux
2Summary(pl.UTF-8): Pakiet programistyczny Universal Plug and Play (UPnP) dla Linuksa
3Name: libupnp
4Version: 1.14.4
5Release: 1
6License: BSD
7Group: Libraries
8Source0: https://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2
9# Source0-md5: f1ebf0b4036dd5827aed7c9f931ac463
10Patch0: %{name}-opt.patch
11Patch1: %{name}-openssl.patch
12URL: http://pupnp.sourceforge.net/
13BuildRequires: autoconf >= 2.60
14BuildRequires: automake >= 1:1.8
15BuildRequires: doxygen
16BuildRequires: libtool >= 2:1.5
17BuildRequires: openssl-devel >= 0.9.8b
18BuildRequires: pkgconfig
19BuildRequires: rpmbuild(macros) >= 1.752
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
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.
33
34%package devel
35Summary: Header files for libupnp
36Summary(pl.UTF-8): Pliki nagłówkowe libupnp
37Group: Development/Libraries
38Requires: %{name} = %{version}-%{release}
39Requires: openssl-devel >= 0.9.8b
40Conflicts: libupnp1.6-devel
41
42%description devel
43This package contains header files for the Linux SDK for UPnP Devices
44(libupnp).
45
46%description devel -l pl.UTF-8
47Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu
48programistycznego do urządzeń UPnP (libupnp).
49
50%package static
51Summary: Static upnp libraries
52Summary(pl.UTF-8): Statyczne biblioteki upnp
53Group: Development/Libraries
54Requires: %{name}-devel = %{version}-%{release}
55Conflicts: libupnp1.6-static
56
57%description static
58Static upnp libraries.
59
60%description static -l pl.UTF-8
61Statyczne biblioteki upnp.
62
63%package apidocs
64Summary: API documentation for upnp libraries
65Summary(pl.UTF-8): Dokumentacja API bibliotek upnp
66Group: Documentation
67BuildArch: noarch
68
69%description apidocs
70API documentation for upnp libraries.
71
72%description apidocs -l pl.UTF-8
73Dokumentacja 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
98rm -rf $RPM_BUILD_ROOT
99
100%{__make} install \
101 DESTDIR=$RPM_BUILD_ROOT
102
103%clean
104rm -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.033214 seconds and 4 git commands to generate.