1 Summary: C++ binding for DirectFB
2 Summary(pl): Interfejs C++ do DirectFB
8 Source0: http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz
9 # Source0-md5: 14cd1de1105e1eeb0349f672c74f41c0
10 URL: http://www.directfb.org/index.php?path=Development/Projects/DFB++
11 BuildRequires: DirectFB-devel >= 1:%{version}
12 BuildRequires: autoconf >= 2.52
13 BuildRequires: automake
14 BuildRequires: libstdc++-devel
15 BuildRequires: libtool >= 2:1.5
16 BuildRequires: pkgconfig
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 DFB++ is a C++ binding for DirectFB providing a much easier usage. One
21 advantage is that the 'thiz' doesn't need to be passed as the first
22 argument of every interface function. Another feature is the usage of
23 exceptions. It's annoying having these error checking stuff with
24 growing deinitialization stacks. Most functions are 'void'. As soon as
25 a DirectFB function returns an error a DFBException is thrown.
28 DFB++ jest interfejsem C++ do biblioteki DirectFB, u³atwiaj±cym jej
29 u¿ywanie. Jedn± z zalet jest brak konieczno¶ci przekazywania 'thiz'
30 jako pierwszego parametru ka¿dej funkcji. Kolejn± jest korzystanie z
31 wyj±tków. Ci±g³e sprawdzanie b³êdów z powiêkszaj±cym siê stosem
32 deinicjalizacji mo¿e byæ dokuczliwe. W DFB++, kiedy funkcja DirectFB
33 zwraca b³±d, rzucany jest wyj±tek DFBException.
36 Summary: DFB++ header files
37 Summary(pl): Pliki nag³ówkowe DFB++
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: DirectFB-devel >= 1:%{version}
41 Requires: libstdc++-devel
45 Header files for DFB++ library.
47 %description devel -l pl
48 Pliki nag³ówkowe biblioteki DFB++.
51 Summary: DFB++ static library
52 Summary(pl): Statyczna biblioteka DFB++
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
59 %description static -l pl
60 Statyczna biblioteka DFB++.
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80 DESTDIR=$RPM_BUILD_ROOT
82 install examples/simple.cpp $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog README
93 %attr(755,root,root) %{_bindir}/dfbshow
94 %attr(755,root,root) %{_bindir}/dfbswitch
95 %attr(755,root,root) %{_libdir}/libdfb++-*.so.*.*.*
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/dfb++-config
100 %attr(755,root,root) %{_libdir}/libdfb++.so
101 %{_libdir}/libdfb++.la
103 %{_pkgconfigdir}/*.pc
104 %{_examplesdir}/%{name}-%{version}
107 %defattr(644,root,root,755)
108 %{_libdir}/libdfb++.a