From: Jakub Bogusz Date: Sun, 1 Sep 2002 22:01:04 +0000 (+0000) Subject: - new X-Git-Tag: auto/ac/DFB++-0_9_20-1~11 X-Git-Url: http://git.pld-linux.org/?p=packages%2FDFB%2B%2B.git;a=commitdiff_plain;h=1d3d80cf0755edb56f7d9b9e26306b074eeff65d - new Changed files: DFB++.spec -> 1.1 --- 1d3d80cf0755edb56f7d9b9e26306b074eeff65d diff --git a/DFB++.spec b/DFB++.spec new file mode 100644 index 0000000..c07532e --- /dev/null +++ b/DFB++.spec @@ -0,0 +1,94 @@ +Summary: C++ binding for DirectFB +Summary(pl): Interfejs C++ do DirectFB +Name: DFB++ +Version: 0.9.12 +Release: 1 +License: LGPL v2+ +Group: Libraries +Source0: http://www.directfb.org/download/%{name}-%{version}.tar.gz +URL: http://www.directfb.org/ +BuildRequires: DirectFB-devel +BuildRequires: autoconf +BuildRequires: libstdc++-devel +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 +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 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): Pliki nag³ówkowe DFB++ +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +Header files for DFB++ library. + +%description devel -l pl +Pliki nag³ówkowe biblioteki DFB++. + +%package static +Summary: DFB++ static library +Summary(pl): Statyczna biblioteka DFB++ +Group: Development/Libraries +Requires: %{name}-devel = %{version} + +%description static +DFB++ static library. + +%description static -l pl +Statyczna biblioteka DFB++. + +%prep +%setup -q + +%build +%{__autoconf} +%configure \ + --enable-static +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +install examples/simple.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) %{_libdir}/lib*.so.*.* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so +%attr(755,root,root) %{_libdir}/lib*.la +%attr(755,root,root) %{_bindir}/dfb++-config +%{_includedir}/dfb++ +%{_pkgconfigdir}/*.pc +%{_examplesdir}/%{name}-%{version} + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a