1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Merge improvements from previously reviewed spec on RH bug #1198498

This commit is contained in:
Andrew Cooks 2016-02-09 10:11:40 +08:00 committed by Andy Green
parent ebfdb0d24d
commit 0a7374b647

View file

@ -1,28 +1,31 @@
Name: libwebsockets Name: libwebsockets
Version: 1.4 Version: 1.6.0
Release: 48.gmaster_16fb0132%{?dist} Release: 2%{?dist}
Summary: Websocket Server Library Summary: A lightweight C library for Websockets
Group: System Group: System Environment/Libraries
License: GPL License: LGPLv2 with exceptions and MIT
URL: http://warmcat.com URL: http://libwebsockets.org
Source0: %{name}-%{version}.tar.gz Source0: https://github.com/warmcat/libwebsockets/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: cmake
BuildRequires: openssl-devel BuildRequires: openssl-devel
Requires: openssl Requires: openssl
Provides: bundled(base64-decode)
%description %description
Webserver server library This is the libwebsockets C library for lightweight websocket clients and
servers.
%package devel %package devel
Summary: Development files for libwebsockets Summary: Headers for developing programs that will use %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: openssl-devel Requires: openssl-devel
%description devel %description devel
Development files for libwebsockets This package contains the header files needed for developing
%{name} applications.
%prep %prep
%setup -q %setup -q
@ -30,37 +33,45 @@ Development files for libwebsockets
%build %build
mkdir -p build mkdir -p build
cd build cd build
%cmake .. %cmake \
make -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
-D LWS_USE_LIBEV=OFF \
-D LWS_USE_BUNDLED_ZLIB=OFF \
-D LWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
-D LWS_WITHOUT_BUILTIN_SHA1=ON \
-D LWS_WITH_STATIC=OFF \
..
make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
cd build cd build
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%clean %postun -p /sbin/ldconfig
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %license LICENSE
%attr(755,root,root) /usr/bin/libwebsockets-test-server %doc README.md changelog
%attr(755,root,root) /usr/bin/libwebsockets-test-server-extpoll %{_libdir}/%{name}.so.*
%attr(755,root,root) /usr/bin/libwebsockets-test-client %{_libdir}/cmake/%{name}/*
%attr(755,root,root) /usr/bin/libwebsockets-test-ping
%attr(755,root,root) /usr/bin/libwebsockets-test-echo
%attr(755,root,root) /usr/bin/libwebsockets-test-fraggle
%attr(755,root,root)
/%{_libdir}/libwebsockets.so.5
/%{_libdir}/libwebsockets.so
%attr(755,root,root) /usr/share/libwebsockets-test-server
%doc
%files devel %files devel
%defattr(-,root,root,-) %license LICENSE
/usr/include/* %doc README.coding.md README.test-apps.md libwebsockets-api-doc.html
%attr(755,root,root) %{_bindir}/%{name}*
/%{_libdir}/libwebsockets.a %{_includedir}/%{name}.h
/%{_libdir}/pkgconfig/libwebsockets.pc %{_includedir}/lws_config.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/libwebsockets-test-server
%changelog %changelog
* Tue Jan 19 2016 Andrew Cooks <acooks@linux.com> 1.6.0-2
- Merge improvements from previously reviewed spec on RH bug #1198498
- Fetch tagged release from GH
* Sun Jan 17 2016 Andrew Cooks <acooks@linux.com> 1.6.0-1
- First attempt at a repeatable packaging process