%define name xmorph %define release 4 %define version 20060817 %define epoch 2 %define lib_major 0 %define lib_name_orig %mklibname morph %define lib_name %{lib_name_orig}%{lib_major} Summary: An X Window System tool for creating morphed images Name: %{name} Version: %{version} Release: %mkrel %{release} Epoch: %{epoch} License: GPL Group: Graphics/Editors and Converters BuildRequires: xaw-devel BuildRequires: bison BuildRequires: gettext-devel BuildRequires: gtk+2-devel BuildRequires: texinfo # for X11/bitmaps/gray: BuildRequires: x11-data-bitmaps URL: http://sourceforge.net/projects/xmorph/ Source0: xmorph_%{version}.tar.gz Source2: xmorph-icons.tar.bz2 # (fc) 20060817-1mdv fix build with latest gcc Patch0: xmorph-20060817-fixbuild.patch %package -n %{lib_name} Summary: Internal library required for xmorph/gtkmorph Provides: %{lib_name_orig} Group: System/Libraries %package -n %{lib_name}-devel Summary: Headers and static libraries required for xmorph/gtkmorph development Requires: %{lib_name} = %{epoch}:%{version}-%{release} Provides: %{lib_name_orig}-devel, %{name}-devel Group: Development/C %description Xmorph is a digital image warping (aka morphing) program. Xmorph provides the tools needed and comprehensible instructions for you to create morphs: changing one image into another. Xmorph runs under the X Window System. Install the xmorph package if you need a program that will create morphed images. %description -n %{lib_name} Internal library for xmorph and gtkmorph. %description -n %{lib_name}-devel Development headers and static libs for xmorph and gtkmorph. %prep %setup -q %patch0 -p1 -b .fixbuild %build %configure2_5x --without-morph --with-gtk=2 %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std #menu entry mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/ cat << EOF > %buildroot%{_datadir}/applications/%{_real_vendor}-xmorph.desktop [Desktop Entry] Type=Application Categories=Graphics;Viewer; Name=Xmorph Comment=Morphing software Exec=gtkmorph Icon=xmorph EOF #mdk icons install -d $RPM_BUILD_ROOT%{_iconsdir} tar xjvf %{SOURCE2} -C $RPM_BUILD_ROOT%{_iconsdir} # find i18n files %find_lang %{name} %post %_install_info %{name}.info %preun %_remove_install_info %{name}.info %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root) %doc ABOUT-NLS AUTHORS README HISTORY NEWS %{_bindir}/* %{_mandir}/*/* %{_datadir}/applications/%{_real_vendor}-*.desktop %{_infodir}/* %{_miconsdir}/*.png %{_iconsdir}/*.png %{_liconsdir}/*.png %_libdir/*.la %{_datadir}/xmorph %files -n %{lib_name} %defattr(-,root,root) %_libdir/*.so.* %files -n %{lib_name}-devel %defattr(-,root,root) %doc TODO %{_libdir}/*.a %{_libdir}/*.so %{_prefix}/include/* %changelog * Mon Jan 14 2013 umeabot <umeabot> 2:20060817-4.mga3 + Revision: 387221 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + boklm <boklm> - Update group: Graphics/Editors -> Graphics/Editors and Converters * Sat Dec 08 2012 malo <malo> 2:20060817-3.mga3 + Revision: 328905 - update RPM group * Wed Apr 27 2011 wally <wally> 2:20060817-2.mga2 + Revision: 92052 - fix desktop file name (mga#954) - drop buildroot definition * Wed Mar 16 2011 steletch <steletch> 2:20060817-1.mga1 + Revision: 72963 - Clean spec file - imported package xmorph