3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
7 Summary(pl.UTF-8): libfilezilla
13 Source0: http://downloads.sourceforge.net/filezilla/%{name}-%{version}.tar.bz2
14 # Source0-md5: 47a86eebbc0f7c7d0f68401d57633bba
15 URL: http://lib.filezilla-project.org/
16 BuildRequires: libstdc++-devel
17 BuildRequires: rpmbuild(macros) >= 1.583
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 libfilezilla is a free, open source C++ library, offering some basic
22 functionality to build high-performing, platform-independent programs.
23 Some of the highlights include:
25 - A typesafe, multi-threaded event system that's very simple to use
26 yet extremely efficient
27 - Timers for periodic events
28 - A datetime class that not only tracks timestamp but also their
29 accuracy, which simplifies dealing with timestamps originating from
31 - Simple process handling for spawning child processes with redirected
34 #%description -l pl.UTF-8
37 Summary: Header files for %{name} library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Header files for %{name} library.
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki %{name}.
49 Summary: Static %{name} library
50 Summary(pl.UTF-8): Statyczna biblioteka %{name}
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 Static %{name} library.
57 %description static -l pl.UTF-8
58 Statyczna biblioteka %{name}.
61 Summary: %{name} API documentation
62 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
66 API documentation for %{name} library.
68 %description apidocs -l pl.UTF-8
69 Dokumentacja API biblioteki %{name}.
76 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
85 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 %doc AUTHORS NEWS README
96 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.0
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/%{name}.so
102 %{_includedir}/%{name}
103 %{_pkgconfigdir}/%{name}.pc
105 %if %{with static_libs}
107 %defattr(644,root,root,755)
113 %defattr(644,root,root,755)