[packages/socket99] - new

qboosh qboosh at pld-linux.org
Tue Oct 14 21:50:47 CEST 2014


commit eb573c479d13b1bcb5756aa03f0401c7d6d86bdd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Oct 14 21:51:10 2014 +0200

    - new

 socket99.spec | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
---
diff --git a/socket99.spec b/socket99.spec
new file mode 100644
index 0000000..f28ea32
--- /dev/null
+++ b/socket99.spec
@@ -0,0 +1,95 @@
+Summary:	C99 wrapper library for the BSD sockets API
+Summary(pl.UTF-8):	Biblioteka C99 obudowująca API gniazd BSD
+Name:		socket99
+Version:	0
+%define	snap	20140923
+Release:	0.%{snap}.1
+License:	MIT
+Group:		Libraries
+Source0:	https://github.com/silentbicycle/socket99/archive/master/%{name}.tar.gz
+# Source0-md5:	fc1a45bfe0a802aac24bdee78d51e6f4
+URL:		https://github.com/silentbicycle/socket99
+BuildRequires:	gcc >= 5:3.0
+BuildRequires:	libtool
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library trades the series of `getaddrinfo`, `socket`, `connect`,
+`bind`, `listen`, etc. functions and their convoluted, casted
+arguments for just one function that takes two structs (configuration
+and output). By creatively using C99's "designated initializers", the
+configuration struct works rather like a configuration key/value hash;
+the output struct contains either the socket file descriptor or error
+information.
+
+%description -l pl.UTF-8
+Ta biblioteka wymiania serię funkcji "getaddrinfo", "socket",
+"connect", "bind", "listen" itp. oraz ich zawiłe, rzutowane argumenty
+na pojedynczą funkcję przyjmującą dwie struktury (konfigurację oraz
+wyjście). Poprzez kreatywne wykorzystanie "wyznaczonych
+inicjalizatorów" dialektu C99 struktury konfiguracyjne działają
+bardziej jak konfiguracyjna tablica asocjacyjna klucz-wartość;
+struktura wyjściowa zawiera deskryptor pliku gniazda lub informację o
+błędzie.
+
+%package devel
+Summary:	Header files for socket99 library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki socket99
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for socket99 library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki socket99.
+
+%package static
+Summary:	Static socket99 library
+Summary(pl.UTF-8):	Statyczna biblioteka socket99
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static socket99 library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka socket99.
+
+%prep
+%setup -q -n socket99-master
+
+%build
+libtool --mode=compile %{__cc} %{rpmcflags} %{rpmcppflags} -Wall -c socket99.c
+libtool --mode=link %{__cc} %{rpmldflags} %{rpmcflags} -o libsocket99.la socket99.lo -rpath %{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/socket99}
+
+libtool --mode=install install libsocket99.la $RPM_BUILD_ROOT%{_libdir}
+cp -p socket99.h $RPM_BUILD_ROOT%{_includedir}/socket99
+
+# no external dependencies
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsocket99.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_libdir}/libsocket99.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsocket99.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsocket99.so
+%{_includedir}/socket99
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsocket99.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/socket99.git/commitdiff/eb573c479d13b1bcb5756aa03f0401c7d6d86bdd



More information about the pld-cvs-commit mailing list