From 780dcbfd13c37a10734007f1e21d1cb12e86ea1c Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 11 Jun 2015 19:10:42 -0600 Subject: initial package import --- .gitignore | 1 + libs3.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+) create mode 100644 .gitignore create mode 100644 libs3.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02a6145 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libs3-2.0-11a4e97.tar.gz diff --git a/libs3.spec b/libs3.spec new file mode 100644 index 0000000..26ff32f --- /dev/null +++ b/libs3.spec @@ -0,0 +1,88 @@ +%global commitdate 20150611 +%global commit 11a4e976c28ba525e7d61fbc3867c345a2af1519 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: libs3 +Version: 2.0 +Release: 0.1.%{commitdate}git%{shortcommit}%{?dist} +Summary: C Library and Tools for Amazon S3 Access +License: LGPLv3 +URL: https://github.com/bji/libs3 +Group: System Environment/Libraries +Source0: https://github.com/bji/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz + +BuildRequires: curl-devel +BuildRequires: libxml2-devel + +%description +This package includes the libs3 shared object library, needed to run +applications compiled against libs3, and additionally contains the s3 +utility for accessing Amazon S3. + +%package devel +Summary: Headers and documentation for libs3 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This library provides an API for using Amazon's S3 service (see +http://s3.amazonaws.com). Its design goals are: + + - To provide a simple and straightforward API for accessing all of S3's + functionality + - To not require the developer using libs3 to need to know anything about: + - HTTP + - XML + - SSL + In other words, this API is meant to stand on its own, without requiring + any implicit knowledge of how S3 services are accessed using HTTP + protocols. + - To be usable from multithreaded code + - To be usable by code which wants to process multiple S3 requests + simultaneously from a single thread + - To be usable in the simple, straightforward way using sequentialized + blocking requests + +%prep +%setup -q -n %{name}-%{commit} + +%build +make %{?_smp_mflags} exported + +%check +# Does this work with libs3? +#make check + +%install +DESTDIR=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} make install + +# Remove static libtool archive: +rm %{buildroot}%{_libdir}/libs3.a + +%post +%if 0%{?el6} + /sbin/ldconfig +%else + %{_sbindir}/ldconfig +%endif + +%postun +%if 0%{?el6} + /sbin/ldconfig +%else + %{_sbindir}/ldconfig +%endif + +%files +%{!?_licensedir:%global license %%doc} +%license COPYING +%{_bindir}/s3 +%{_libdir}/libs3.so.* + +%files devel +%{_includedir}/libs3.h +%{_libdir}/libs3.so + +%changelog +* Fri Jun 12 2015 Ken Dreyer - 2.0-0.1.20150611git11a4e97 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6f7b5ab --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a32b155880fc4885568f27981b94d4f7 libs3-2.0-11a4e97.tar.gz -- cgit