tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
603 stars 102 forks source link

Add a spec for rpm packaging #34

Closed rjcoelho closed 11 years ago

rjcoelho commented 12 years ago

Prefix: %{_usr} Name: spdylay Version: 0.3.3 Release: 1%{?dist} Summary: The experimental SPDY protocol version 2 and 3 implementation in C

Group: System Environment/Libraries License: MIT URL: http://sourceforge.net/projects/spdylay/ Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: pkgconfig >= 0.20, zlib >= 1.2.3, gcc, gcc-c++, make, openssl-devel, Cython

BuildRequires:

Requires:

%description This is an experimental implementation of Google's SPDY protocol in C. This library provides SPDY version 2 and 3 framing layer implementation. It does not perform any I/O operations. When the library needs them, it calls the callback functions provided by the application. It also does not include any event polling mechanism, so the application can freely choose the way of handling events. This library code does not depend on any particular SSL library (except for example programs which depend on OpenSSL 1.0.1 or later).

%package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release}

%description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}.

%prep %setup -q

%build autoreconf -i %{automake} %{autoconf} %configure --disable-static --enable-examples --disable-xmltest %{__make} %{?_smp_mflags}

%{__make} html # needs python's 2.7 argparse

cython python/spdylay.pyx

%install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT

%clean rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files %defattr(-,root,root,-) %doc %{libdir}/.so._ %exclude %{_libdir}/*.la

%files devel %defattr(-,root,root,-) %doc %{_docdir}/%{name} %{_includedir}/* %{libdir}/.so %{libdir}/pkgconfig/.pc

%changelog

tatsuhiro-t commented 12 years ago

Thank you! To avoid possible corruption of content, could you send me the spec file or clone the spdylay repo and commit it and send me the pull request?

tatsuhiro-t commented 11 years ago

Closing because spec file was added in #38