d1b5828
%define         rc_subver     rc5
d1b5828
d1b5828
Summary:        ASCII art library
d1b5828
Name:           aalib
d1b5828
Version:        1.4.0
9d78f33
Release:        0.19.%{rc_subver}%{?dist}
Garrick Staples fc29175
License:        LGPLv2+
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
Garrick Staples cfbf879
Patch4:		aalib-1.4rc5-x_libs.patch
Garrick Staples 66f1a7e
Patch5:		aalib-1.4rc5-libflag.patch
d1b5828
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Garrick Staples 60a1688
BuildRequires:  slang-devel libXt-devel gpm-devel ncurses-devel
Garrick Staples cfbf879
BuildRequires:	autoconf libtool
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
Garrick Staples cfbf879
%package libs
Garrick Staples cfbf879
Summary:        Library files for aalib
Garrick Staples cfbf879
Group:          System/Libraries
Garrick Staples cfbf879
Obsoletes:	aalib < 1.4.0-0.14
Garrick Staples cfbf879
%description libs
Garrick Staples cfbf879
This package contains library files for aalib.
d1b5828
d1b5828
%package devel
d1b5828
Summary:        Development files for aalib
d1b5828
Group:          Development/Libraries
Garrick Staples 66f1a7e
Requires:       %{name}-libs = %{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
Garrick Staples cfbf879
%patch4 -p1 -b .x_libs
Garrick Staples 66f1a7e
%patch5 -p0 -b .libflag
Garrick Staples cfbf879
# included libtool is too old, we need to rebuild
Garrick Staples cfbf879
autoreconf -v -f -i
cvsextras bba5ee4
cvsextras bba5ee4
%build
Garrick Staples 60a1688
%configure --disable-static  --with-curses-driver=yes --with-ncurses
Garrick Staples cfbf879
cvsextras bba5ee4
make %{?_smp_mflags}
cvsextras bba5ee4
cvsextras bba5ee4
cvsextras bba5ee4
%install
cvsextras bba5ee4
rm -rf $RPM_BUILD_ROOT
Garrick Staples cfbf879
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
f530c55
rm -f $RPM_BUILD_ROOT{%{_libdir}/libaa.la,%{_infodir}/dir}
cvsextras bba5ee4
Garrick Staples cfbf879
# clean up multilib conflicts
Garrick Staples cfbf879
touch -r NEWS $RPM_BUILD_ROOT%{_bindir}/aalib-config $RPM_BUILD_ROOT%{_datadir}/aclocal/aalib.m4
Garrick Staples cfbf879
Garrick Staples cfbf879
cvsextras bba5ee4
cvsextras bba5ee4
%clean
cvsextras bba5ee4
rm -rf $RPM_BUILD_ROOT
cvsextras bba5ee4
cvsextras bba5ee4
Garrick Staples cfbf879
%post libs -p /sbin/ldconfig
Garrick Staples cfbf879
%postun libs -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
%{_bindir}/aafire
cvsextras bba5ee4
%{_bindir}/aainfo
cvsextras bba5ee4
%{_bindir}/aasavefont
cvsextras bba5ee4
%{_bindir}/aatest
cvsextras bba5ee4
%{_mandir}/man1/aafire.1*
cvsextras bba5ee4
Garrick Staples cfbf879
%files libs
Garrick Staples cfbf879
%defattr(-,root,root,-)
Garrick Staples 66f1a7e
%doc README COPYING ChangeLog NEWS
Garrick Staples cfbf879
%{_libdir}/libaa.so.*
Garrick Staples cfbf879
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
9d78f33
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-0.19.rc5
9d78f33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9d78f33
4bc7291
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-0.18.rc5
4bc7291
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4bc7291
9439ce1
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-0.17.rc5
9439ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9439ce1
affce4e
* Fri Jul 18 2008 Caolán McNamara <caolanm@redhat.com> 1.4.0-0.16.rc5
affce4e
- rebuild for new libgpm
affce4e
Garrick Staples 66f1a7e
* Mon Mar 24 2008 Garrick Staples <garrick@usc.edu> 1.4.0-0.15.rc5
Garrick Staples 66f1a7e
- remove unnecessary link bloat from aalib-config
Garrick Staples 66f1a7e
- libs package doesn't need to require base package
Garrick Staples 66f1a7e
- move docs to libs package
Garrick Staples 66f1a7e
Garrick Staples cfbf879
* Thu Feb 14 2008 Garrick Staples <garrick@usc.edu> 1.4.0-0.14.rc5
Garrick Staples cfbf879
- fix multilib conflicts by splitting out libs package and fix
Garrick Staples cfbf879
  timestamps and aalib-config
Garrick Staples cfbf879
Garrick Staples fc29175
* Wed Aug 15 2007 Garrick Staples <garrick@usc.edu> 1.4.0-0.13.rc5
Garrick Staples fc29175
- correct License: tag
Garrick Staples fc29175
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.