1 Summary: C++ binding for DirectFB
2 Summary(pl.UTF-8): Interfejs C++ do DirectFB
8 Source0: http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz
9 # Source0-md5: 1f85d59466f1ec2d9c68b29bc5debb03
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.
27 %description -l pl.UTF-8
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.UTF-8): Pliki nagłówkowe DFB++
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: DirectFB-devel >= 1:%{version}
41 Requires: libstdc++-devel
44 Header files for DFB++ library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki DFB++.
50 Summary: DFB++ static library
51 Summary(pl.UTF-8): Statyczna biblioteka DFB++
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
58 %description static -l pl.UTF-8
59 Statyczna biblioteka DFB++.
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
79 DESTDIR=$RPM_BUILD_ROOT
81 install examples/simple.cpp $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
91 %doc AUTHORS ChangeLog README
92 %attr(755,root,root) %{_bindir}/dfbshow
93 %attr(755,root,root) %{_bindir}/dfbswitch
94 %attr(755,root,root) %{_libdir}/libdfb++-*.so.*.*.*
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/dfb++-config
99 %attr(755,root,root) %{_libdir}/libdfb++.so
100 %{_libdir}/libdfb++.la
102 %{_pkgconfigdir}/*.pc
103 %{_examplesdir}/%{name}-%{version}
106 %defattr(644,root,root,755)
107 %{_libdir}/libdfb++.a