From 1e9bf3436bb471b680b412a5743a53b838850219 Mon Sep 17 00:00:00 2001 From: Tomasz Pala Date: Thu, 27 Sep 2007 11:39:25 +0000 Subject: [PATCH] - initial PLD release Changed files: Sockets.spec -> 1.1 --- Sockets.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Sockets.spec diff --git a/Sockets.spec b/Sockets.spec new file mode 100644 index 0000000..2d3069f --- /dev/null +++ b/Sockets.spec @@ -0,0 +1,55 @@ +# +# TODO: +# - pass CFLAGS +# - package docs +# - build shared library +# +# Conditional build: +%bcond_without static_libs # don't build static library + +Summary: C++ Sockets Library +Summary(pl.UTF-8): Biblioteka gniazd C++ +Name: Sockets +Version: 2.1.8 +Release: 0.1 +License: GPL +Group: Development/Libraries +Source0: http://www.alhem.net/Sockets/%{name}-%{version}.tar.gz +# Source0-md5: f285cfcd3558e83f4c2b2c5b114d98d8 +Source1: http://www.alhem.net/Sockets/%{name}-%{version}-doxygendocs.tar.gz +# Source1-md5: d2b4427f6cb10a7f15c3c34edb386ba7 +Source2: http://www.alhem.net/Sockets/tutorial/%{name}-tutorial.tar.gz +# Source2-md5: 86a6c9cb22d06ffacd65cd953398da84 +URL: http://www.alhem.net/Sockets/ +BuildRequires: libstdc++-devel +BuildRequires: openssl-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description + +%description -l pl.UTF-8 + +%prep +%setup -q -n %{name}-%{version} + +%build +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%{__make} install \ + PREFIX=$RPM_BUILD_ROOT%{_prefix} + +install tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/* +%{_includedir}/Sockets +%{_libdir}/lib*.a +%{_examplesdir}/%{name}-%{version} -- 2.44.0