mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
add-rpm-spec-file.patch
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
8003f024b8
commit
5ba6bb7cf5
1 changed files with 60 additions and 0 deletions
60
libwebsockets.spec
Normal file
60
libwebsockets.spec
Normal file
|
@ -0,0 +1,60 @@
|
|||
Name: libwebsockets
|
||||
Version: 0.1
|
||||
Release: 15.gmaster_8003f024%{?dist}
|
||||
Summary: Websocket Server Library
|
||||
|
||||
Group: System
|
||||
License: GPL
|
||||
URL: http://warmcat.com
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
|
||||
BuildRequires: openssl-devel
|
||||
Requires: openssl-devel
|
||||
|
||||
%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
|
||||
./configure --prefix=/usr --libdir=%{_libdir} --enable-openssl
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%attr(755,root,root) /usr/bin/libwebsockets-test-server
|
||||
%attr(755,root,root)
|
||||
/%{_libdir}/libwebsockets.so.0.0.1
|
||||
/%{_libdir}/libwebsockets.so.0
|
||||
/%{_libdir}/libwebsockets.so
|
||||
/%{_libdir}/libwebsockets.la
|
||||
%attr(755,root,root) /usr/share/libwebsockets-test-server
|
||||
%doc
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
/usr/include/*
|
||||
%attr(755,root,root)
|
||||
/%{_libdir}/libwebsockets.a
|
||||
|
||||
%changelog
|
||||
|
Loading…
Add table
Reference in a new issue