Summary: C++ binding for DirectFB Summary(pl.UTF-8): Interfejs C++ do DirectFB Name: DFB++ Version: 1.2.0 Release: 1 License: LGPL v2+ Group: Libraries Source0: http://www.directfb.org/downloads/Extras/%{name}-%{version}.tar.gz # Source0-md5: 80b94caff14e2e59be762cad8018e655 Patch0: %{name}-types.patch URL: http://www.directfb.org/index.php?path=Projects/DFB%2B%2B BuildRequires: DirectFB-devel >= 1:%{version} BuildRequires: autoconf >= 2.52 BuildRequires: automake BuildRequires: libstdc++-devel BuildRequires: libtool >= 2:1.5 BuildRequires: pkgconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description DFB++ is a C++ binding for DirectFB providing a much easier usage. One advantage is that the 'thiz' doesn't need to be passed as the first argument of every interface function. Another feature is the usage of exceptions. It's annoying having these error checking stuff with growing deinitialization stacks. Most functions are 'void'. As soon as a DirectFB function returns an error a DFBException is thrown. %description -l pl.UTF-8 DFB++ jest interfejsem C++ do biblioteki DirectFB, ułatwiającym jej używanie. Jedną z zalet jest brak konieczności przekazywania 'thiz' jako pierwszego parametru każdej funkcji. Kolejną jest korzystanie z wyjątków. Ciągłe sprawdzanie błędów z powiększającym się stosem deinicjalizacji może być dokuczliwe. W DFB++, kiedy funkcja DirectFB zwraca błąd, rzucany jest wyjątek DFBException. %package devel Summary: DFB++ header files Summary(pl.UTF-8): Pliki nagłówkowe DFB++ Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: DirectFB-devel >= 1:%{version} Requires: libstdc++-devel %description devel Header files for DFB++ library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki DFB++. %package static Summary: DFB++ static library Summary(pl.UTF-8): Statyczna biblioteka DFB++ Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static DFB++ static library. %description static -l pl.UTF-8 Statyczna biblioteka DFB++. %prep %setup -q %patch0 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ --enable-static %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install examples/*.cpp $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog README %attr(755,root,root) %{_bindir}/dfbshow %attr(755,root,root) %{_bindir}/dfbswitch %attr(755,root,root) %{_libdir}/libdfb++-1.2.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libdfb++-1.2.so.0 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/dfb++-config %attr(755,root,root) %{_libdir}/libdfb++.so %{_libdir}/libdfb++.la %{_includedir}/dfb++ %{_pkgconfigdir}/dfb++.pc %{_examplesdir}/%{name}-%{version} %files static %defattr(644,root,root,755) %{_libdir}/libdfb++.a