Hi everybody,
Is any developer out there still cares about this beast? Here is a
diff against aalib-1.2-10mdk spec file hope I've done it right.
Abel Cheung
--- aalib.spec Mon Oct 2 22:22:16 2000
+++ aalib.spec.new Fri Feb 9 09:08:28 2001
@@ -1,6 +1,8 @@
%define name aalib
%define version 1.2
-%define release 10mdk
+%define major1
+%define libname libaa
+%define release 11mdk
Summary: AA (Ascii Art) library
Summary(fr): bibliothèque AA (Ascii Art)
@@ -9,7 +11,7 @@
Release: %{release}
Copyright: LGPL
Group: System/Libraries
-BuildRequires: XFree86-devel gpm-devel ncurses-devel slang
+BuildRequires: XFree86-devel libgpm1-devel libncurses5-devel libslang1-devel
Source0: http://www.ta.jcu.cz/aa/aalib/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}
Prefix: /usr
@@ -25,12 +27,30 @@
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP
-%package devel
+%package -n %{libname}%{major}
+Summary: AA (Ascii Art) library
+Group: System/Libraries
+Provides: %{name}
+Obsoletes: %{name}
+
+%description -n %{libname}%{major}
+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
+
+%package -n %{libname}%{major}-devel
Summary: Header files and libraries for developing apps which will use %{name}.
Group: Development/C
-Requires: %{name}
+Requires: %{libname}%{major} = %{version}
+Provides: %{libname}-devel, %{name}-devel
+Obsoletes: %{name}-devel
-%description devel
+%description -n %{libname}%{major}-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
@@ -40,7 +60,7 @@
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
+Install the %{libname}%{major}-devel package if you want to develop applications that
will use the %{name} library.
%prep
@@ -61,22 +81,22 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
+%post -n %{libname}%{major} -p /sbin/ldconfig
-%post devel
+%post -n %{libname}%{major}-devel
%_install_info %{name}.info
-%postun -p /sbin/ldconfig
+%postun -n %{libname}%{major} -p /sbin/ldconfig
-%preun devel
+%preun -n %{libname}%{major}-devel
%_remove_install_info %{name}.info
-%files
+%files -n %{libname}%{major}
%defattr(-,root,root)
%doc ChangeLog NEWS README
%{_libdir}/*.so.*
-%files devel
+%files -n %{libname}%{major}-devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*a