3 %bcond_without apidocs # doxygen API documentation
4 %bcond_without static_libs # static library
5 %bcond_without tests # "make check"
7 Summary: Library for high-performing platform-independent programs
8 Summary(pl.UTF-8): Biblioteka do wydajnych programów niezależnych od platformy
14 Source0: https://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
15 # Source0-md5: c4592f37dacb03e22509d965dbf188cd
16 URL: https://lib.filezilla-project.org/
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake
19 %{?with_tests:BuildRequires: cppunit-devel >= 1.13.0}
20 %{?with_apidocs:BuildRequires: doxygen}
21 BuildRequires: gettext-tools >= 0.11.0
22 %if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
23 BuildRequires: glibc-localedb-all
25 BuildRequires: gnutls-devel >= 3.5.8
27 BuildRequires: libstdc++-devel >= 6:7
28 BuildRequires: libtool >= 2:2
29 BuildRequires: nettle-devel >= 3.3
30 BuildRequires: pkgconfig >= 1:0.7
31 BuildRequires: rpmbuild(macros) >= 1.583
32 Requires: gnutls-libs >= 3.5.8
33 Requires: nettle >= 3.3
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 libfilezilla is a free, open source C++ library, offering some basic
38 functionality to build high-performing, platform-independent programs.
39 Some of the highlights include:
41 - A typesafe, multi-threaded event system that's very simple to use
42 yet extremely efficient
43 - Timers for periodic events
44 - A datetime class that not only tracks timestamp but also their
45 accuracy, which simplifies dealing with timestamps originating from
47 - Simple process handling for spawning child processes with redirected
50 %description -l pl.UTF-8
51 libfilezilla to wolnodostępna biblioteka C++ o otwartych źródłach,
52 oferująca pewną podstawową funkcjonalność do tworzenia wydajnych
53 programów niezależnych od platformy. Uwzględnione funkcje obejmują:
54 - bezpieczny pod względem typów, wielowątkowy system zdarzeń -
55 bardzo prosty w użyciu, a jednocześnie bardzo wydajny
56 - zegary do zdarzeń regularnych
57 - klasa daty i czasu nie tylko śledząca znacznik czasu, ale także jego
58 dokładność, co upraszcza obsługę znaczników czasu pochodzących z
60 - prostą obsługę procesów do tworzenia procesów potomnych z
61 przekierowanym wejściem/wyjściem
64 Summary: Header files for libfilezilla library
65 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfilezilla
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
68 Requires: libstdc++-devel >= 6:7
69 Requires: gnutls-devel >= 3.5.8
70 Requires: nettle-devel >= 3.3
73 Header files for libfilezilla library.
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe biblioteki libfilezilla.
79 Summary: Static libfilezilla library
80 Summary(pl.UTF-8): Statyczna biblioteka libfilezilla
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
85 Static libfilezilla library.
87 %description static -l pl.UTF-8
88 Statyczna biblioteka libfilezilla.
91 Summary: %{name} API documentation
92 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
96 API documentation for %{name} library.
98 %description apidocs -l pl.UTF-8
99 Dokumentacja API biblioteki %{name}.
106 %{__mv} ca{_ES,}@valencia.po
138 %{!?with_static_libs:--disable-static}
142 # wide char conversion test fails with plain C locale
148 %{__make} -C doc html
152 rm -rf $RPM_BUILD_ROOT
155 DESTDIR=$RPM_BUILD_ROOT
157 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
159 # not supported by glibc (as of 2.25)
160 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/co
165 rm -rf $RPM_BUILD_ROOT
167 %post -p /sbin/ldconfig
168 %postun -p /sbin/ldconfig
170 %files -f %{name}.lang
171 %defattr(644,root,root,755)
172 %doc AUTHORS ChangeLog NEWS README
173 %attr(755,root,root) %{_libdir}/libfilezilla.so.*.*.*
174 %attr(755,root,root) %ghost %{_libdir}/libfilezilla.so.10
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/libfilezilla.so
179 %{_includedir}/libfilezilla
180 %{_pkgconfigdir}/libfilezilla.pc
182 %if %{with static_libs}
184 %defattr(644,root,root,755)
185 %{_libdir}/libfilezilla.a
190 %defattr(644,root,root,755)
191 %doc doc/doxygen-doc/html/*