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: 057bad1ae21fba7d362e350d3c5c6662
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.2
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.0
26 Requires: libxcb-devel >= 1.3
27 Requires: xcb-util-wm-devel >= 0.3.0
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.0
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.
106 export CFLAGS="%{rpmcflags}"
107 export LDFLAGS="%{rpmldflags}"
112 COMPONENT_TYPE=lib-shared
113 %if %{with static_libs}
117 COMPONENT_TYPE=lib-static
121 rm -rf $RPM_BUILD_ROOT
126 COMPONENT_TYPE=lib-shared \
127 DESTDIR=$RPM_BUILD_ROOT
129 %if %{with static_libs}
134 COMPONENT_TYPE=lib-static \
135 DESTDIR=$RPM_BUILD_ROOT
139 rm -rf $RPM_BUILD_ROOT
141 %post -p /sbin/ldconfig
142 %postun -p /sbin/ldconfig
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/libnsfb.so.*.*.*
147 %attr(755,root,root) %ghost %{_libdir}/libnsfb.so.0
150 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/libnsfb.so
153 %{_includedir}/libnsfb*.h
154 %{_pkgconfigdir}/libnsfb.pc
156 %if %{with static_libs}
158 %defattr(644,root,root,755)