Group :: Sistema/Bibliotecas
RPM: aalib
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable static
%define prerel rc5
Name: aalib
Version: 1.4
Release: alt2%prerel
Summary: AA (Ascii Art) library
License: LGPL
Group: System/Libraries
Url: http://aa-project.sourceforge.net/%name/
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source: http://prdownloads.sourceforge.net/aa-project/%name-%version%prerel.tar.gz
Source1: %name-config.1
Patch: %name-info.patch
Patch1: %name-debian_man.patch
Patch2: %name-1.4-suse-m4.patch
Patch3: %name-1.4-fc-aalinuxkbd.patch
%ifdef prerel
Provides: %name = %version%prerel
%endif
Requires(post): %install_info
Requires(preun): %uninstall_info
BuildRequires: libgpm-devel libslang-devel libX11-devel
%package devel
Summary: Header files for developing apps which will use %name
Group: Development/C
Requires: %name = %version-%release
%ifdef prerel
Provides: %name-devel = %version%prerel
%endif
%package devel-static
Summary: Static library for developing apps which will use %name
Group: Development/C
Requires: %name-devel = %version-%release
%package utils
Summary: AA-lib tools
Group: Graphics
Requires: %name = %version-%release
%description
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP.
%description devel
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP
Install the %name-devel package if you want to develop applications that
will use the %name library.
%description devel-static
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP.
Install the %name-devel-static package if you want to develop
statically linked applications that will use the %name library.
%description utils
These programs demonstrate the capabilities of the aalib
library, an ASCII art library.
%prep
%setup -q -n %name-%version.0
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1
%build
%__autoreconf
%configure \
%{subst_enable static}
%make_build
%install
%makeinstall
install -pD -m644 %SOURCE1 %buildroot%_man1dir/aalib-config.1
for p in `ls -1 %buildroot%_bindir | grep -Ev '\-|fire'`; do
echo .so aafire.1 >%buildroot%_man1dir/"$p".1
done
# remove none-packaged files
%__rm -f %buildroot%_infodir/dir
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%post devel
%install_info %name.info
%preun devel
%uninstall_info %name.info
%files
%_libdir/*.so.*
%files devel
%_bindir/*-config
%_libdir/*.so
%_includedir/*
%_datadir/aclocal/*
%_infodir/*.info*
%_man1dir/*-config.*
%_man3dir/*
%doc ChangeLog NEWS README
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%files utils
%_bindir/*
%exclude %_bindir/*-config
%_man1dir/*
%exclude %_man1dir/*-config.*
%changelog
…
Todas as alterações você pod ver aqui
%define prerel rc5
Name: aalib
Version: 1.4
Release: alt2%prerel
Summary: AA (Ascii Art) library
License: LGPL
Group: System/Libraries
Url: http://aa-project.sourceforge.net/%name/
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source: http://prdownloads.sourceforge.net/aa-project/%name-%version%prerel.tar.gz
Source1: %name-config.1
Patch: %name-info.patch
Patch1: %name-debian_man.patch
Patch2: %name-1.4-suse-m4.patch
Patch3: %name-1.4-fc-aalinuxkbd.patch
%ifdef prerel
Provides: %name = %version%prerel
%endif
Requires(post): %install_info
Requires(preun): %uninstall_info
BuildRequires: libgpm-devel libslang-devel libX11-devel
%package devel
Summary: Header files for developing apps which will use %name
Group: Development/C
Requires: %name = %version-%release
%ifdef prerel
Provides: %name-devel = %version%prerel
%endif
%package devel-static
Summary: Static library for developing apps which will use %name
Group: Development/C
Requires: %name-devel = %version-%release
%package utils
Summary: AA-lib tools
Group: Graphics
Requires: %name = %version-%release
%description
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP.
%description devel
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP
Install the %name-devel package if you want to develop applications that
will use the %name library.
%description devel-static
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP.
Install the %name-devel-static package if you want to develop
statically linked applications that will use the %name library.
%description utils
These programs demonstrate the capabilities of the aalib
library, an ASCII art library.
%prep
%setup -q -n %name-%version.0
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1
%build
%__autoreconf
%configure \
%{subst_enable static}
%make_build
%install
%makeinstall
install -pD -m644 %SOURCE1 %buildroot%_man1dir/aalib-config.1
for p in `ls -1 %buildroot%_bindir | grep -Ev '\-|fire'`; do
echo .so aafire.1 >%buildroot%_man1dir/"$p".1
done
# remove none-packaged files
%__rm -f %buildroot%_infodir/dir
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%post devel
%install_info %name.info
%preun devel
%uninstall_info %name.info
%files
%_libdir/*.so.*
%files devel
%_bindir/*-config
%_libdir/*.so
%_includedir/*
%_datadir/aclocal/*
%_infodir/*.info*
%_man1dir/*-config.*
%_man3dir/*
%doc ChangeLog NEWS README
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%files utils
%_bindir/*
%exclude %_bindir/*-config
%_man1dir/*
%exclude %_man1dir/*-config.*
%changelog
…
Todas as alterações você pod ver aqui