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
9 %define gitref 287e4bee6fd430ffb52604049de80a27a77ff6b4
12 Release: 0.%{snap}.%{rel}
13 License: LGPL v3+ or GPL v2 with OpenSSL exception
15 #Source0Download: https://github.com/bji/libs3/releases
16 Source0: https://github.com/bji/libs3/archive/%{gitref}/%{name}-%{snap}.tar.gz
17 # Source0-md5: e5600266b8430bdf5dd8d44869857b32
18 Patch0: %{name}-make.patch
19 URL: https://github.com/bji/libs3
20 BuildRequires: curl-devel
21 %{?with_apidocs:BuildRequires: doxygen}
22 BuildRequires: libxml2-devel >= 2
23 BuildRequires: openssl-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This package includes the libs3 shared library needed to run
28 applications using libs3 and additionally contains the s3 utility for
31 %description -l pl.UTF-8
32 Ten pakiet zawiera bibliotekę współdzieloną libs3 niezbędną do
33 uruchamiania aplikacji wykorzystujących libs3 oraz dodatkowo narzędzie
34 s3 pozwalające na dostęp do Amazon S3.
37 Summary: Header files for libs3 library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libs3
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
42 Requires: libxml2-devel >= 2
43 Requires: openssl-devel
46 Header files for libs3 library.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libs3.
52 Summary: Static libs3 library
53 Summary(pl.UTF-8): Statyczna biblioteka libs3
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libs3.
64 Summary: libs3 API documentation
65 Summary(pl.UTF-8): Dokumentacja API biblioteki libs3
67 %if "%{_rpmversion}" >= "4.6"
72 API and internal documentation for libs3 library.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libs3.
78 %setup -q -n %{name}-%{gitref}
82 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
85 LDOPTS="%{rpmldflags}" \
88 %{?with_apidocs:doxygen}
91 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT%{_prefix} \
95 LIBDIR=$RPM_BUILD_ROOT%{_libdir}
97 # let rpm generate dependencies
98 chmod 755 $RPM_BUILD_ROOT%{_libdir}/libs3.so*
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %doc ChangeLog LICENSE README TODO
109 %attr(755,root,root) %{_bindir}/s3
110 %attr(755,root,root) %{_libdir}/libs3.so.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libs3.so.4
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libs3.so
116 %{_includedir}/libs3.h
119 %defattr(644,root,root,755)
124 %defattr(644,root,root,755)
125 %doc dox/html/*.{css,html,js,png}