3 %bcond_without apidocs # do not build and package API docs
5 Summary: C library and tools for Amazon S3 access
6 Summary(pl.UTF-8): Biblioteka C i narzędzia do dostępu do Amazon S3
10 License: GPL v3 with OpenSSL exception
12 Source0: http://libs3.ischo.com.s3.amazonaws.com/%{name}-%{version}.tar.gz
13 # Source0-md5: e52da69ddc11019e98cf8246fc55b4e1
14 URL: http://libs3.ischo.com.s3.amazonaws.com/index.html
15 BuildRequires: curl-devel
16 %{?with_apidocs:BuildRequires: doxygen}
17 BuildRequires: libxml2-devel
18 BuildRequires: openssl-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This package includes the libs3 shared library needed to run
23 applications using libs3 and additionally contains the s3 utility
24 for accessing Amazon S3.
26 %description -l pl.UTF-8
27 Ten pakiet zawiera bibliotekę współdzieloną libs3 niezbędną do
28 uruchamiania aplikacji wykorzystujących libs3 oraz dodatkowo
29 narzędzie s3 pozwalające na dostęp do Amazon S3.
32 Summary: Header files for libs3 library
33 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libs3
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
37 Requires: libxml2-devel
38 Requires: openssl-devel
41 Header files for libs3 library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki libs3.
47 Summary: Static libs3 library
48 Summary(pl.UTF-8): Statyczna biblioteka libs3
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
55 %description static -l pl.UTF-8
56 Statyczna biblioteka libs3.
59 Summary: libs3 API documentation
60 Summary(pl.UTF-8): Dokumentacja API biblioteki libs3
64 API and internal documentation for libs3 library.
66 %description apidocs -l pl.UTF-8
67 Dokumentacja API biblioteki libs3.
73 CFLAGS="%{rpmcflags}" \
77 %{?with_apidocs:doxygen}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
85 %if "%{_lib}" != "lib"
86 mv -f $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc ChangeLog LICENSE README TODO
98 %attr(755,root,root) %{_bindir}/s3
99 %attr(755,root,root) %{_libdir}/libs3.so.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libs3.so.2
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libs3.so
105 %{_includedir}/libs3.h
108 %defattr(644,root,root,755)
113 %defattr(644,root,root,755)