Group :: Sistema/Bibliotecas
RPM: directfb
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define realname DirectFB
Name: directfb
Version: 1.1.0
Release: alt3
Summary: %realname - drivers and binaries
License: GPL
Group: System/Libraries
Url: http://www.directfb.org
Packager: Alexey Gladkov <legion at altlinux.ru>
Source: %realname-%version.tar.gz
Patch0: %realname-am.patch
Patch1: %realname-pmake.patch
Patch2: %realname-fix.patch
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462626&msg=35
Patch3: %realname-tty.patch
# http://bugs.gentoo.org/show_bug.cgi?id=200661
Patch4: %realname-0.9.25.1-sysfs.patch
Patch5: %realname-alt-libadd-fix.patch
# Automatically added by buildreq on Sun Dec 14 2008
BuildRequires: gcc-c++ glibc-devel-static libX11-devel libXext-devel libfreetype-devel libjpeg-devel libpng-devel libsysfs-devel man
%description
%realname is a graphics library which was designed with embedded systems
in mind. It offers maximum hardware accelerated performance at a minimum
of resource usage and overhead.
%package -n lib%name
Summary: %realname - graphics and windowing library on Linux framebuffer
Group: System/Libraries
%description -n lib%name
%realname is a graphics library which was designed with embedded systems
in mind. It offers maximum hardware accelerated performance at a minimum
of resource usage and overhead.
%package -n lib%name-devel
Summary: Includes and other files for devel %realname applications
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel
%description -n lib%name-devel
Devel for %realname is a graphics library which was designed with embedded systems
in mind. It offers maximum hardware accelerated performance at a minimum
of resource usage and overhead.
%package -n lib%name-devel-static
Summary: Static libraries for devel %realname applications
Group: Development/C
Requires: %name = %version-%release
%description -n lib%name-devel-static
Static libraries for devel %realname applications
%prep
%setup -q -n %realname-%version
%patch0 -p1 -b .fix0
%patch1 -p1 -b .fix1
%patch2 -p1 -b .fix2
%patch3 -p1 -b .fix3
%patch4 -p1 -b .fix4
%patch5 -p1 -b .fix5
%build
%autoreconf
%configure \
--enable-fbdev \
--enable-shared \
--enable-static \
--with-pic \
--with-gfxdrivers=all \
#
%make_build
%install
%make install DESTDIR=%buildroot
find %buildroot -name \*.la -delete
{
find %buildroot%_libdir/%name-* -name '*.so' -print
find %buildroot%_libdir/%name-* -type d -printf '%%%%dir %%p\n'
} |
sed -e 's#%{buildroot}##' |
sort -u > %name.files
find \
%buildroot%_libdir/lib*.a \
%buildroot%_libdir/%name-* \
-type f \( -name '*.a' -o -name '*.o' \) |
sed -e 's#^%{buildroot}##' |
sort -u > %name-static.files
%files -f %name.files
%doc TODO fb.modes
%_bindir/mk*
%_bindir/dfb*
%_datadir/%name-*
%_man1dir/dfb*
%_man5dir/*
%files -n lib%name
%doc AUTHORS NEWS README
%_libdir/lib*.so.*
%files -n lib%name-devel
%_includedir/*
%_bindir/%{name}*
%_libdir/lib*.so
%_pkgconfigdir/*.pc
%_man1dir/%{name}*
%files -n lib%name-devel-static -f %name-static.files
%changelog
…
Todas as alterações você pod ver aqui
Name: directfb
Version: 1.1.0
Release: alt3
Summary: %realname - drivers and binaries
License: GPL
Group: System/Libraries
Url: http://www.directfb.org
Packager: Alexey Gladkov <legion at altlinux.ru>
Source: %realname-%version.tar.gz
Patch0: %realname-am.patch
Patch1: %realname-pmake.patch
Patch2: %realname-fix.patch
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462626&msg=35
Patch3: %realname-tty.patch
# http://bugs.gentoo.org/show_bug.cgi?id=200661
Patch4: %realname-0.9.25.1-sysfs.patch
Patch5: %realname-alt-libadd-fix.patch
# Automatically added by buildreq on Sun Dec 14 2008
BuildRequires: gcc-c++ glibc-devel-static libX11-devel libXext-devel libfreetype-devel libjpeg-devel libpng-devel libsysfs-devel man
%description
%realname is a graphics library which was designed with embedded systems
in mind. It offers maximum hardware accelerated performance at a minimum
of resource usage and overhead.
%package -n lib%name
Summary: %realname - graphics and windowing library on Linux framebuffer
Group: System/Libraries
%description -n lib%name
%realname is a graphics library which was designed with embedded systems
in mind. It offers maximum hardware accelerated performance at a minimum
of resource usage and overhead.
%package -n lib%name-devel
Summary: Includes and other files for devel %realname applications
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel
%description -n lib%name-devel
Devel for %realname is a graphics library which was designed with embedded systems
in mind. It offers maximum hardware accelerated performance at a minimum
of resource usage and overhead.
%package -n lib%name-devel-static
Summary: Static libraries for devel %realname applications
Group: Development/C
Requires: %name = %version-%release
%description -n lib%name-devel-static
Static libraries for devel %realname applications
%prep
%setup -q -n %realname-%version
%patch0 -p1 -b .fix0
%patch1 -p1 -b .fix1
%patch2 -p1 -b .fix2
%patch3 -p1 -b .fix3
%patch4 -p1 -b .fix4
%patch5 -p1 -b .fix5
%build
%autoreconf
%configure \
--enable-fbdev \
--enable-shared \
--enable-static \
--with-pic \
--with-gfxdrivers=all \
#
%make_build
%install
%make install DESTDIR=%buildroot
find %buildroot -name \*.la -delete
{
find %buildroot%_libdir/%name-* -name '*.so' -print
find %buildroot%_libdir/%name-* -type d -printf '%%%%dir %%p\n'
} |
sed -e 's#%{buildroot}##' |
sort -u > %name.files
find \
%buildroot%_libdir/lib*.a \
%buildroot%_libdir/%name-* \
-type f \( -name '*.a' -o -name '*.o' \) |
sed -e 's#^%{buildroot}##' |
sort -u > %name-static.files
%files -f %name.files
%doc TODO fb.modes
%_bindir/mk*
%_bindir/dfb*
%_datadir/%name-*
%_man1dir/dfb*
%_man5dir/*
%files -n lib%name
%doc AUTHORS NEWS README
%_libdir/lib*.so.*
%files -n lib%name-devel
%_includedir/*
%_bindir/%{name}*
%_libdir/lib*.so
%_pkgconfigdir/*.pc
%_man1dir/%{name}*
%files -n lib%name-devel-static -f %name-static.files
%changelog
…
Todas as alterações você pod ver aqui