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: http://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
15 # Source0-md5: 0ab3b56ca55e608d601ada68dd86d673
16 URL: http://lib.filezilla-project.org/
17 %{?with_tests:BuildRequires: cppunit-devel >= 1.10.2}
18 %{?with_apidocs:BuildRequires: doxygen}
19 %if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
20 BuildRequires: glibc-localedb-all
22 BuildRequires: autoconf >= 2.50
23 BuildRequires: automake
24 BuildRequires: libtool >= 2:2
25 BuildRequires: pkgconfig >= 1:0.7
27 BuildRequires: libstdc++-devel >= 6:5
28 BuildRequires: rpmbuild(macros) >= 1.583
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 libfilezilla is a free, open source C++ library, offering some basic
33 functionality to build high-performing, platform-independent programs.
34 Some of the highlights include:
36 - A typesafe, multi-threaded event system that's very simple to use
37 yet extremely efficient
38 - Timers for periodic events
39 - A datetime class that not only tracks timestamp but also their
40 accuracy, which simplifies dealing with timestamps originating from
42 - Simple process handling for spawning child processes with redirected
45 %description -l pl.UTF-8
46 libfilezilla to wolnodostępna biblioteka C++ o otwartych źródłach,
47 oferująca pewną podstawową funkcjonalność do tworzenia wydajnych
48 programów niezależnych od platformy. Uwzględnione funkcje obejmują:
49 - bezpieczny pod względem typów, wielowątkowy system zdarzeń -
50 bardzo prosty w użyciu, a jednocześnie bardzo wydajny
51 - zegary do zdarzeń regularnych
52 - klasa daty i czasu nie tylko śledząca znacznik czasu, ale także jego
53 dokładność, co upraszcza obsługę znaczników czasu pochodzących z
55 - prostą obsługę procesów do tworzenia procesów potomnych z
56 przekierowanym wejściem/wyjściem
59 Summary: Header files for libfilezilla library
60 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfilezilla
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 Requires: libstdc++-devel >= 6:5
66 Header files for libfilezilla library.
68 %description devel -l pl.UTF-8
69 Pliki nagłówkowe biblioteki libfilezilla.
72 Summary: Static libfilezilla library
73 Summary(pl.UTF-8): Statyczna biblioteka libfilezilla
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
78 Static libfilezilla library.
80 %description static -l pl.UTF-8
81 Statyczna biblioteka libfilezilla.
84 Summary: %{name} API documentation
85 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
89 API documentation for %{name} library.
91 %description apidocs -l pl.UTF-8
92 Dokumentacja API biblioteki %{name}.
104 %{!?with_static_libs:--disable-static}
108 # wide char conversion test fails with plain C locale
114 %{__make} -C doc html
118 rm -rf $RPM_BUILD_ROOT
121 DESTDIR=$RPM_BUILD_ROOT
123 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
132 %defattr(644,root,root,755)
133 %doc AUTHORS ChangeLog NEWS README
134 %attr(755,root,root) %{_libdir}/libfilezilla.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libfilezilla.so.0
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libfilezilla.so
140 %{_includedir}/libfilezilla
141 %{_pkgconfigdir}/libfilezilla.pc
143 %if %{with static_libs}
145 %defattr(644,root,root,755)
146 %{_libdir}/libfilezilla.a
151 %defattr(644,root,root,755)
152 %doc doc/doxygen-doc/html/*