d1b5828
%define         rc_subver     rc5
d1b5828
d1b5828
Summary:        ASCII art library
d1b5828
Name:           aalib
d1b5828
Version:        1.4.0
05ab7c5
Release:        0.12.%{rc_subver}%{?dist}
d1b5828
License:        LGPL
d1b5828
Group:          System Environment/Libraries
d1b5828
URL:            http://aa-project.sourceforge.net/aalib/
d1b5828
Source0:        http://download.sourceforge.net/aa-project/%{name}-1.4%{rc_subver}.tar.gz
d1b5828
Patch0:         aalib-aclocal.patch
d1b5828
Patch1:         aalib-config-rpath.patch
d1b5828
Patch2:         aalib-1.4rc5-bug149361.patch
d1b5828
Patch3:         aalib-1.4rc5-rpath.patch
05ab7c5
Patch4:		aalib-ppc.patch
d1b5828
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Garrick Staples 60a1688
BuildRequires:  slang-devel libXt-devel gpm-devel ncurses-devel
cvsextras bba5ee4
cvsextras bba5ee4
%description
cvsextras bba5ee4
AA-lib is a low level gfx library just as many other libraries are. The
cvsextras bba5ee4
main difference is that AA-lib does not require graphics device. In
cvsextras bba5ee4
fact, there is no graphical output possible. AA-lib replaces those
cvsextras bba5ee4
old-fashioned output methods with a powerful ASCII art renderer. The API
cvsextras bba5ee4
is designed to be similar to other graphics libraries.
cvsextras bba5ee4
d1b5828
d1b5828
%package devel
d1b5828
Summary:        Development files for aalib
d1b5828
Group:          Development/Libraries
d1b5828
Requires:       %{name} = %{version}-%{release}
d1b5828
Requires(post):  /sbin/install-info
d1b5828
Requires(postun): /sbin/install-info
d1b5828
cvsextras bba5ee4
%description devel
cvsextras bba5ee4
This package contains header files and other files needed to develop
cvsextras 13f116d
with aalib.
cvsextras bba5ee4
cvsextras bba5ee4
cvsextras bba5ee4
%prep
cvsextras bba5ee4
%setup -q
cvsextras 13f116d
%patch0 -p0
cvsextras 13f116d
%patch1 -p0
8478dc6
%patch2 -p1 -b .bug149361
d1b5828
%patch3 -p1 -b .rpath
05ab7c5
%patch4 -p1 -b .ppc
f530c55
sed -i -e 's/^\(.*SHARED.*\)@AALIB_LIBS@/\1 -laa/' aalib-config.in
d1b5828
# sigh stop autoxxx from rerunning because of our patches above.
d1b5828
touch aclocal.m4
d1b5828
touch configure
d1b5828
touch src/stamp-h.in
d1b5828
touch src/config.h.in
d1b5828
touch `find -name Makefile.in`
cvsextras bba5ee4
cvsextras bba5ee4
cvsextras bba5ee4
%build
Garrick Staples 60a1688
%configure --disable-static  --with-curses-driver=yes --with-ncurses
d1b5828
# Don't use rpath!
d1b5828
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
d1b5828
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
cvsextras bba5ee4
make %{?_smp_mflags}
cvsextras bba5ee4
cvsextras bba5ee4
cvsextras bba5ee4
%install
cvsextras bba5ee4
rm -rf $RPM_BUILD_ROOT
cvsextras 13f116d
make install DESTDIR=$RPM_BUILD_ROOT
f530c55
rm -f $RPM_BUILD_ROOT{%{_libdir}/libaa.la,%{_infodir}/dir}
cvsextras bba5ee4
cvsextras bba5ee4
cvsextras bba5ee4
%clean
cvsextras bba5ee4
rm -rf $RPM_BUILD_ROOT
cvsextras bba5ee4
cvsextras bba5ee4
cvsextras bba5ee4
%post -p /sbin/ldconfig
cvsextras bba5ee4
%postun -p /sbin/ldconfig
cvsextras bba5ee4
cvsextras bba5ee4
%post devel
cvsextras 13f116d
/sbin/install-info %{_infodir}/libaa.info %{_infodir}/dir 2>/dev/null || :
cvsextras bba5ee4
cvsextras bba5ee4
%preun devel
4ce1dc7
if [ $1 -eq 0 ]; then
cvsextras 13f116d
  /sbin/install-info --delete %{_infodir}/libaa.info %{_infodir}/dir \
cvsextras 13f116d
    2>/dev/null || :
cvsextras bba5ee4
fi
cvsextras bba5ee4
cvsextras bba5ee4
cvsextras bba5ee4
%files
cvsextras bba5ee4
%defattr(-,root,root,-)
cvsextras bba5ee4
%doc README COPYING ChangeLog NEWS
cvsextras bba5ee4
%{_bindir}/aafire
cvsextras bba5ee4
%{_bindir}/aainfo
cvsextras bba5ee4
%{_bindir}/aasavefont
cvsextras bba5ee4
%{_bindir}/aatest
cvsextras bba5ee4
%{_libdir}/libaa.so.*
cvsextras bba5ee4
%{_mandir}/man1/aafire.1*
cvsextras bba5ee4
cvsextras bba5ee4
%files devel
cvsextras bba5ee4
%defattr(-,root,root,-)
cvsextras bba5ee4
%{_bindir}/aalib-config
4ce1dc7
%{_mandir}/man3/*
cvsextras bba5ee4
%{_libdir}/libaa.so
cvsextras bba5ee4
%{_includedir}/aalib.h
cvsextras bba5ee4
%{_infodir}/aalib.info*
cvsextras bba5ee4
%{_datadir}/aclocal/aalib.m4
cvsextras bba5ee4
cvsextras bba5ee4
%changelog
05ab7c5
* Fri May  4 2007 Bill Nottingham <notting@redhat.com> 1.4.0-0.12.rc5
05ab7c5
- remove some dainbramage in ltconfig so it builds shared libs on ppc64
05ab7c5
Garrick Staples e868d94
* Thu Oct 19 2006 Garrick Staples <garrick@usc.edu> 1.4.0-0.11.rc5
Garrick Staples e868d94
- incorrect subversion in previous two changelog entries
Garrick Staples e868d94
Garrick Staples 60a1688
* Thu Oct 19 2006 Garrick Staples <garrick@usc.edu> 1.4.0-0.10.rc6
Garrick Staples 60a1688
- Rebuild with ncurses support
Garrick Staples 60a1688
3b36db7
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.0-0.8.rc6
3b36db7
- FE6 Rebuild
3b36db7
cff1fc1
* Sun Jul 23 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.0-0.8.rc5
cff1fc1
- Taking over as maintainer since Anvil has other priorities
cff1fc1
- Long long due rebuild with new gcc for FC-5 (bug 185870)
cff1fc1
- Add %%{?dist} tag
cff1fc1
- Make release field comply with the Package Naming guidelines for
cff1fc1
  pre releases. Luckily according to rpm 8 > rc5 so this can be done.
d1b5828
- Fix some rpmlint warnings
d1b5828
- Fix (remove) use of rpath
cff1fc1
f530c55
* Mon Nov 28 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.4.0-0.rc5.7
f530c55
- Fix modular X dependencies.
f530c55
- Rebuild against new slang.
f530c55
- Disable static lib, not shipping it anyway.
f530c55
- Prune unneeded libs from aalib-config (and corresponding deps from -devel).
f530c55
- Don't use %%exclude.
f530c55
aab663a
* Mon Nov 21 2005 Warren Togami <wtogami@redhat.com> - 1.4.0-0.rc5.6
aab663a
- remove .a
aab663a
- XFree86-devel -> libX11-devel
aab663a
8478dc6
* Fri Jul  1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1.4.0-0.rc5.5
8478dc6
- fix missing return value (#149361)
8478dc6
8478dc6
* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1.4.0-0.rc5.4
8a6b795
- rebuilt
8a6b795
964e960
* Thu Dec 16 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.4.0-0.rc5.3
964e960
- If Epoch is dropped, %%epoch must not be used anywhere else.
964e960
4ce1dc7
* Wed Nov 10 2004 Matthias Saou <http://freshrpms.net/> 1.4.0-0.rc5.2
4ce1dc7
- Bump release for compatibility (still, it'll break *sigh*).
4ce1dc7
- Fix possible non zero exit status from %%install.
4ce1dc7
- Fix owning the entire man3/ directory.
4ce1dc7
- Pending possible changes : --with-ncurses & ncurses-devel build dep.
4ce1dc7
cvsextras 13f116d
* Fri Jul 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.4.0-0.fdr.0.9.rc5
cvsextras 13f116d
- Fix underquoted definition in aalib.m4 to appease aclocal >= 1.8.
cvsextras 13f116d
- Avoid rpath in aalib-config.
d1b5828
- Split Requires for post and postun into two to work around a rpm bug.
cvsextras 13f116d
- Other minor specfile improvements.
cvsextras 13f116d
cvsextras bba5ee4
* Thu Aug 21 2003 Dams <anvil[AT]livna.org> 0:1.4.0-0.fdr.0.8.rc5
cvsextras bba5ee4
- devel package now requires info
cvsextras bba5ee4
- Rewrote scriplets
cvsextras bba5ee4
- buildroot -> RPM_BUILD_ROOT
cvsextras bba5ee4
- Moved info files into devel package
cvsextras bba5ee4
cvsextras bba5ee4
* Tue Aug  5 2003 Dams <anvil[AT]livna.org> 0:1.4.0-0.fdr.0.7.rc5
cvsextras bba5ee4
- Removed '-p /sbin/ldconfig' in post scriptlet
cvsextras bba5ee4
cvsextras bba5ee4
* Thu Apr 10 2003 Dams <anvil[AT]livna.org> 0:1.4.0-0.fdr.0.6.rc5
cvsextras bba5ee4
- Added missing gpm-devel *Requires
cvsextras bba5ee4
cvsextras bba5ee4
* Mon Apr  7 2003 Dams <anvil[AT]livna.org> 0:1.4.0-0.fdr.0.5.rc5
cvsextras bba5ee4
- Moved configure from prep to build section.
cvsextras bba5ee4
- Modified post* and pre* scriplets
cvsextras bba5ee4
cvsextras bba5ee4
* Thu Apr  3 2003 Dams <anvil[AT]livna.org> 0:1.4.0-0.fdr.0.4.rc5
cvsextras bba5ee4
- Fix things between exclude, rm -f, lib*.la, and infodir/dir things
cvsextras bba5ee4
- Added URL in Source0.
cvsextras bba5ee4
cvsextras bba5ee4
* Thu Apr  3 2003 Dams <anvil[AT]livna.org> 0:1.4.0-0.fdr.0.3.rc5
cvsextras bba5ee4
- Modified devel Requires:
cvsextras bba5ee4
- Removed gcc as requirement
cvsextras bba5ee4
cvsextras bba5ee4
* Wed Apr  2 2003 Dams <anvil[AT]livna.org> 0:1.4.0-0.fdr.0.2.rc5
cvsextras bba5ee4
- Applied spec modifications from Adrian Reber
cvsextras bba5ee4
8336e7b
* Tue Apr  1 2003 Dams <anvil[AT]livna.org>
cvsextras bba5ee4
- Initial build.