]> git.pld-linux.org Git - packages/libupnp.git/blob - libupnp.spec
up to 1.14.18
[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.15
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 Source0:        https://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2
9 # Source0-md5:  e48978f31a7379873619a25117572619
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:  rpm-build >= 4.6
20 BuildRequires:  rpmbuild(macros) >= 1.752
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The Linux SDK for UPnP Devices (libupnp) provides developers with an
25 API and open source code for building control points, devices, and
26 bridges that are compliant with Version 1.0 of the Universal Plug and
27 Play Device Architecture Specification.
28
29 %description -l pl.UTF-8
30 Linuksowy pakiet programistyczny dla urządzeń UPnP (libupnp) dostarcza
31 programistom API i kod z otwartymi źródłami służące do tworzenia
32 punktów kontrolnych, urządzeń i mostków kompatybilnych z wersją 1.0
33 specyfikacji architektury urządzeń Universal Plug and Play.
34
35 %package devel
36 Summary:        Header files for libupnp
37 Summary(pl.UTF-8):      Pliki nagłówkowe libupnp
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       openssl-devel >= 0.9.8b
41 Conflicts:      libupnp1.6-devel
42
43 %description devel
44 This package contains header files for the Linux SDK for UPnP Devices
45 (libupnp).
46
47 %description devel -l pl.UTF-8
48 Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu
49 programistycznego do urządzeń UPnP (libupnp).
50
51 %package static
52 Summary:        Static upnp libraries
53 Summary(pl.UTF-8):      Statyczne biblioteki upnp
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56 Conflicts:      libupnp1.6-static
57
58 %description static
59 Static upnp libraries.
60
61 %description static -l pl.UTF-8
62 Statyczne biblioteki upnp.
63
64 %package apidocs
65 Summary:        API documentation for upnp libraries
66 Summary(pl.UTF-8):      Dokumentacja API bibliotek upnp
67 Group:          Documentation
68 BuildArch:      noarch
69
70 %description apidocs
71 API documentation for upnp libraries.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API bibliotek upnp.
75
76 %prep
77 %setup -q
78 %patch0 -p1
79 %patch1 -p1
80
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
84
85 %build
86 %{__libtoolize}
87 %{__aclocal} -I m4
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         %{?debug:--enable-debug} \
93         --enable-open-ssl \
94         --disable-silent-rules
95 %{__make}
96 %{__make} -C docs docs
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc COPYING ChangeLog THANKS
113 %attr(755,root,root) %{_libdir}/libixml.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libixml.so.11
115 %attr(755,root,root) %{_libdir}/libupnp.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/libupnp.so.17
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libixml.so
121 %attr(755,root,root) %{_libdir}/libupnp.so
122 %{_libdir}/libixml.la
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
130 %{_libdir}/libupnp.a
131
132 %files apidocs
133 %defattr(644,root,root,755)
134 %doc docs/doxygen/html/*.{html,js,css,png}
This page took 0.113711 seconds and 3 git commands to generate.