3 %bcond_without static_libs # static library
5 Summary: Library and CLI for the Storj protocol
6 Summary(pl.UTF-8): Biblioteka i narzędzie linii poleceń do protokołu Storj
12 #Source0Download: https://github.com/storj/libstorj/releases
13 Source0: https://github.com/storj/libstorj/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: e00b4938b375e935b19161ece3d10d56
15 URL: https://github.com/storj/libstorj
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 BuildRequires: curl-devel >= 7.35.0
19 BuildRequires: json-c-devel >= 0.11
20 BuildRequires: libtool >= 2:2
21 # only checked, finally not used
22 BuildRequires: libmicrohttpd-devel >= 0.9
23 BuildRequires: libuv-devel >= 1.8.0
24 BuildRequires: nettle-devel >= 3.1
25 BuildRequires: pkgconfig
27 BuildRequires: util-linux
28 Requires: curl-libs >= 7.35.0
29 Requires: json-c >= 0.11
30 Requires: libuv >= 1.8.0
31 Requires: nettle >= 3.1
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Asynchronous multi-platform C library and CLI for encrypted file
36 transfer on the Storj network.
38 %description -l pl.UTF-8
39 Asynchroniczna, wieloplatformowa biblioteka C oraz interfejs linii
40 poleceń do przesyłania zaszyfrowanych plików po sieci Storj.
43 Summary: Header files for Storj library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Storj
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Requires: curl-devel >= 7.35.0
48 Requires: json-c-devel >= 0.11
49 Requires: libuv-devel >= 1.8.0
50 Requires: nettle-devel >= 3.1
53 Header files for Storj library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki Storj.
59 Summary: Static Storj library
60 Summary(pl.UTF-8): Statyczna biblioteka Storj
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
67 %description static -l pl.UTF-8
68 Statyczna biblioteka Storj.
75 %{__aclocal} -I build-aux/m4
79 %{!?with_static_libs:--disable-static}
83 rm -rf $RPM_BUILD_ROOT
86 DESTDIR=$RPM_BUILD_ROOT
88 # obsoleted by pkg-config
89 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libstorj.la
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_bindir}/storj
101 %attr(755,root,root) %{_libdir}/libstorj.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libstorj.so.0
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libstorj.so
107 %{_includedir}/storj.h
108 %{_pkgconfigdir}/libstorj.pc
110 %if %{with static_libs}
112 %defattr(644,root,root,755)
113 %{_libdir}/libstorj.a