72 lines
1.6 KiB
RPMSpec
72 lines
1.6 KiB
RPMSpec
Name: libwebsockets
|
|
Version: 1.6.0
|
|
Release: 1%{?dist}
|
|
Summary: Websocket Server Library
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2 with exceptions
|
|
URL: http://warmcat.com
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
BuildRequires: openssl-devel cmake
|
|
Requires: openssl
|
|
|
|
%description
|
|
Webserver server library
|
|
|
|
%package devel
|
|
Summary: Development files for libwebsockets
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: openssl-devel
|
|
|
|
%description devel
|
|
Development files for libwebsockets
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
mkdir -p build
|
|
cd build
|
|
%cmake ..
|
|
make
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
cd build
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%attr(755,root,root)
|
|
/usr/bin/libwebsockets-test-server
|
|
/usr/bin/libwebsockets-test-server-extpoll
|
|
/usr/bin/libwebsockets-test-server-pthreads
|
|
/usr/bin/libwebsockets-test-client
|
|
/usr/bin/libwebsockets-test-ping
|
|
/usr/bin/libwebsockets-test-echo
|
|
/usr/bin/libwebsockets-test-fraggle
|
|
/%{_libdir}/libwebsockets.so.6
|
|
/%{_libdir}/libwebsockets.so
|
|
/%{_libdir}/cmake/libwebsockets/LibwebsocketsConfig.cmake
|
|
/%{_libdir}/cmake/libwebsockets/LibwebsocketsConfigVersion.cmake
|
|
/usr/share/libwebsockets-test-server
|
|
%doc
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
/usr/include/*
|
|
%attr(755,root,root)
|
|
/%{_libdir}/libwebsockets.a
|
|
/%{_libdir}/pkgconfig/libwebsockets.pc
|
|
|
|
%changelog
|
|
* Sun Jan 17 2016 Andrew Cooks <acooks@linux.com> 1.6.0-1
|
|
- Bump version to 1.6.0
|