1 Summary: C++ binding for DirectFB
2 Summary(pl): Interfejs C++ do DirectFB
8 Source0: http://www.directfb.org/download/%{name}-%{version}.tar.gz
9 URL: http://www.directfb.org/
10 BuildRequires: DirectFB-devel
11 BuildRequires: autoconf
12 BuildRequires: libstdc++-devel
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 DFB++ is a C++ binding for DirectFB providing a much easier usage. One
17 advantage is that the 'thiz' doesn't need to be passed as the first
18 argument of every interface function. Another feature is the usage of
19 exceptions. It's annoying having these error checking stuff with
20 growing deinitialization stacks. Most functions are 'void'. As soon as
21 a DirectFB function returns an error a DFBException is thrown.
24 DFB++ jest interfejsem C++ do biblioteki DirectFB, u³atwiaj±cym jej
25 u¿ywanie. Jedn± z zalet jest brak konieczno¶ci przekazywania 'thiz'
26 jako pierwszego parametru ka¿dej funkcji. Kolejn± jest korzystanie z
27 wyj±tków. Ci±g³e sprawdzanie b³êdów z powiêkszaj±cym stosem
28 deinicjalizacji mo¿e byæ dokuczliwe. W DFB++, kiedy funkcja DirectFB
29 zwraca b³±d, rzucany jest wyj±tek DFBException.
32 Summary: DFB++ header files
33 Summary(pl): Pliki nag³ówkowe DFB++
34 Group: Development/Libraries
35 Requires: %{name} = %{version}
38 Header files for DFB++ library.
40 %description devel -l pl
41 Pliki nag³ówkowe biblioteki DFB++.
44 Summary: DFB++ static library
45 Summary(pl): Statyczna biblioteka DFB++
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}
52 %description static -l pl
53 Statyczna biblioteka DFB++.
65 rm -rf $RPM_BUILD_ROOT
67 %{__make} install DESTDIR=$RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 install examples/simple.cpp $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog README
81 %attr(755,root,root) %{_libdir}/lib*.so.*.*
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/lib*.so
86 %attr(755,root,root) %{_libdir}/lib*.la
87 %attr(755,root,root) %{_bindir}/dfb++-config
90 %{_examplesdir}/%{name}-%{version}
93 %defattr(644,root,root,755)