%define name aiksaurus %define version 1.2.1 %define release %mkrel 6 %define api_version 1.2 %define lib_major 0 %define lib_name %mklibname %{name} %{api_version} %{lib_major} %define develname %mklibname -d %name %define lib_namegtk %mklibname %{name}gtk %{api_version} %{lib_major} %define gtkdevelname %mklibname -d %{name}gtk Summary: An English-language thesaurus library Name: %{name} Version: %{version} Release: %{release} License: GPLv2+ Group: Office URL: http://sourceforge.net/projects/aiksaurus/ Source: %{name}-%{version}.tar.bz2 Patch0: aiksaurus-1.2.1-gcc43.patch BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: gtk2-devel BuildRequires: autoconf automake BuildRequires: gnome-common Requires: %{name}-data Provides: Aiksaurus Obsoletes: Aiksaurus %description Aiksaurus is an English-language thesaurus library that can be embedded in word processors, email composers, and other authoring software to provide thesaurus capabilities. This package contains a basic command line thesaurus program. Install Aiksaurus if you want to have a thesaurus available on your computer. %package -n %name-data Summary: An English-language thesaurus library Group: Office Provides: Aiksaurus-data Obsoletes: Aiksaurus-data %description -n %name-data Aiksaurus is an English-language thesaurus library that can be embedded in word processors, email composers, and other authoring software to provide thesaurus capabilities. This package contains the datafiles. %package -n %lib_name Summary: An English-language thesaurus library Group: System/Libraries Requires: %{name}-data Provides: libAiksaurus0 Obsoletes: libAiksaurus0 Obsoletes: %mklibname %{name}- 1.2 0 %description -n %lib_name Aiksaurus is an English-language thesaurus library that can be embedded in word processors, email composers, and other authoring software to provide thesaurus capabilities. This package contains these libraries. Install Aiksaurus if you want to have a thesaurus available on your computer. %package -n %develname Summary: Libraries and include files for Aiksuarus Group: Development/C Requires: %{lib_name} = %{version}-%{release} Provides: aiksaurus-devel = %{version}-%{release} Provides: aiksaurus-%{api_version}-devel = %{version}-%{release} Obsoletes: %{mklibname %{name}- 1.2 0}-devel %description -n %develname Aiksaurus is an English-language thesaurus library that can be embedded in word processors, email composers, and other authoring software to provide thesaurus capabilities. This package contains the libraries and includes files necessary to develop applications with Aiksaurus. %package -n %{name}gtk Summary: A GTK+ thesaurus application Group: Office %description -n %{name}gtk Aiksaurusgtk is a GTK+ interface to the Aiksaurus library. It provides an attractive thesaurus interface, and can be embedded in GTK+ projects, notably AbiWord. This package provides the standalone GTK+ interface. %package -n %{lib_namegtk} Summary: Libraries for aiksaurusgtk Group: System/Libraries Provides: AiksaurusGTK Obsoletes: AiksaurusGTK Obsoletes: %mklibname %{name}gtk- 1.2 0 %description -n %{lib_namegtk} Aiksaurusgtk is a GTK+ interface to the Aiksaurus library. It provides an attractive thesaurus interface, and can be embedded in GTK+ projects, notably AbiWord. This package provides the library files for aiksaurusgtk. %package -n %gtkdevelname Summary: A GTK+ thesaurus library Group: Development/C Requires: %{lib_namegtk} = %{version}-%{release} Provides: aiksaurusgtk-devel = %{version}-%{release} Provides: aiksaurusgtk-%{api_version}-devel = %{version}-%{release} Obsoletes: %{mklibname %{name}gtk- 1.2 0}-devel %description -n %{gtkdevelname} This package contains the libraries and includes files necessary to develop applications with Aiksaurusgtk. %prep %setup -q -n %{name}-%{version} %patch0 -p1 %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %if %mdkversion < 200900 %post -n %lib_name -p /sbin/ldconfig %endif %if %mdkversion < 200900 %post -n %lib_namegtk -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %lib_name -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %lib_namegtk -p /sbin/ldconfig %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc ChangeLog README COPYING AUTHORS %{_bindir}/aiksaurus %{_bindir}/caiksaurus %files -n %name-data %defattr(-, root, root) %dir %{_datadir}/aiksaurus %{_datadir}/aiksaurus/*.dat %files -n %lib_name %defattr(-, root, root) %{_libdir}/libAiksaurus-*.so.* %files -n %develname %defattr(-, root, root) %{_libdir}/libAiksaurus.so %{_libdir}/libAiksaurus.*a %{_libdir}/pkgconfig/aiksaurus-1.0.pc %dir %{_includedir}/Aiksaurus %{_includedir}/Aiksaurus/Aiksaurus.h %{_includedir}/Aiksaurus/AiksaurusC.h %files -n %{name}gtk %defattr(-, root, root) %{_bindir}/gaiksaurus %files -n %{lib_namegtk} %defattr(-, root, root) %{_libdir}/libAiksaurusGTK-*.so.* %files -n %gtkdevelname %defattr(-, root, root) %{_libdir}/libAiksaurusGTK.*a %{_libdir}/libAiksaurusGTK.so %{_libdir}/pkgconfig/gaiksaurus-1.0.pc %{_includedir}/Aiksaurus/AiksaurusGTK*.h %changelog * Sun Nov 09 2008 Funda Wang <fundawang@mandriva.org> 1.2.1-6mdv2009.0 + Revision: 301225 - add gcc 4.3 patch - new devel package name policy - new license policy + Thierry Vignaud <tvignaud@mandriva.com> - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Tue Mar 25 2008 Emmanuel Andry <eandry@mandriva.org> 1.2.1-4mdv2008.1 + Revision: 189871 - Fix lib group * Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 1.2.1-3mdv2008.1 + Revision: 135819 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request - import aiksaurus * Wed Jun 28 2006 Lenny Cartier <lenny@mandriva.com> 1.2.1-3mdv2007.0 - rebuild * Fri Sep 02 2005 Marcel Pol <mpol@mandriva.org> 1.2.1-2mdk - rebuild * Mon Aug 09 2004 Marcel Pol <mpol@mandrake.org> 1.2.1-1mdk - 1.2.1 - increase api version - no need to run aclocal anymore * Wed Jun 09 2004 Marcel Pol <mpol@mandrake.org> 1.0.2-0.cvs20040609.1mdk - cvs snapshot * Wed Dec 16 2003 Marcel Pol <mpol@mandrake.org> 1.0.1-5mdk - use better 64bit (build)requires * Sun Oct 19 2003 Marcel Pol <mpol@gmx.net> 1.0.1-4mdk - buildrequires * Fri Aug 29 2003 Marcel Pol <mpol@gmx.net> 1.0.1-3mdk - buildrequires * Mon Jul 21 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0.1-2mdk - Rebuild * Wed Jul 16 2003 Marcel Pol <mpol@gmx.net> 1.0.1-1mdk - rebuild for provides/requires - s/Aiksaurus/aiksaurus - new url - source now includes gtk frontend - drop patch0 - run aclocal to avoid libtool problems - new soname * Thu May 22 2003 Marcel Pol <mpol@gmx.net> 0.15-2mdk - rebuild for provides/requires * Mon Mar 10 2003 Marcel Pol <mpol@gmx.net> 0.15-1mdk - initial mandrake release