3 %bcond_without static_libs # don't build static library
5 Summary: Framebuffer abstraction library
6 Summary(pl.UTF-8): Biblioteka abstrakcji bufora ramki
12 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13 # Source0-md5: 0b8f8eccd675ce058c55a4ab41af14c1
14 Patch0: %{name}-link.patch
15 URL: http://www.netsurf-browser.org/projects/libnsfb/
16 BuildRequires: SDL-devel
17 BuildRequires: libvncserver-devel
18 BuildRequires: libxcb-devel >= 1.3
19 BuildRequires: netsurf-buildsystem >= 1.8
20 BuildRequires: pkgconfig
21 BuildRequires: wayland-devel
22 BuildRequires: xcb-util-devel
23 BuildRequires: xcb-util-image-devel
24 BuildRequires: xcb-util-keysyms-devel
25 BuildRequires: xcb-util-wm-devel >= 0.3.8
26 Requires: libxcb-devel >= 1.3
27 Requires: xcb-util-wm-devel >= 0.3.8
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 LibNSFB is a framebuffer abstraction library, written in C. It is
32 currently in development for use with NetSurf and is intended to be
33 suitable for use in other projects too.
35 The overall idea of the library is to provide a generic abstraction to
36 a linear section of memory which corresponds to a visible array of
37 pixel elements on a display device. Different colour depths are
38 supported and the library provides routines for tasks such as drawing
39 onto the framebuffer and rectangle copy operations.
41 LibNSFB currently supports the following as framebuffer providers:
49 LibNSFB to napisana w C biblioteka abstrakcji bufora ramki. Obecnie
50 jest rozwijana pod kątem użycia w przeglądarce NetSurf, ale może być
51 także używana w innych projektach.
53 Ogólną ideą biblioteki jest zapewnienie ogólnej abstrakcji liniowego
54 obszaru pamięci, który odpowiada widocznej tablicy pikseli na
55 urządzeniu wyświetlającym. Obsługiwane są różne głębie koloru, a
56 biblioteka udostępnia takie operacje, jak rysowanie w buforze ramki
57 czy kopiowanie prostokątów.
59 LibNSFB obecnie obsługuje następujące bufory ramki:
60 - linuksowy framebuffer
67 Summary: libnsfb library headers
68 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnsfb
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
72 Requires: libvncserver-devel
73 Requires: libxcb-devel >= 1.3
74 Requires: wayland-devel
75 Requires: xcb-util-devel
76 Requires: xcb-util-image-devel
77 Requires: xcb-util-keysyms-devel
78 Requires: xcb-util-wm-devel >= 0.3.8
81 This package contains the include files and other resources you can
82 use to incorporate libnsfb into applications.
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe pozwalające na używanie biblioteki libnsfb w swoich
89 Summary: libnsfb static library
90 Summary(pl.UTF-8): Statyczna biblioteka libnsfb
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
95 This is package with static libnsfb library.
97 %description static -l pl.UTF-8
98 Statyczna biblioteka libnsfb.
107 export CFLAGS="%{rpmcflags}"
108 export LDFLAGS="%{rpmldflags}"
113 COMPONENT_TYPE=lib-shared
114 %if %{with static_libs}
118 COMPONENT_TYPE=lib-static
122 rm -rf $RPM_BUILD_ROOT
126 export CFLAGS="%{rpmcflags}"
127 export LDFLAGS="%{rpmldflags}"
133 COMPONENT_TYPE=lib-shared \
134 DESTDIR=$RPM_BUILD_ROOT
136 %if %{with static_libs}
141 COMPONENT_TYPE=lib-static \
142 DESTDIR=$RPM_BUILD_ROOT
146 rm -rf $RPM_BUILD_ROOT
148 %post -p /sbin/ldconfig
149 %postun -p /sbin/ldconfig
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libnsfb.so.*.*.*
154 %attr(755,root,root) %ghost %{_libdir}/libnsfb.so.0
157 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_libdir}/libnsfb.so
160 %{_includedir}/libnsfb*.h
161 %{_pkgconfigdir}/libnsfb.pc
163 %if %{with static_libs}
165 %defattr(644,root,root,755)