File xmorph.spec of Package xmorph
#
# spec file for package xmorph (Version 20060817)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xmorph
BuildRequires: ctags fftw3-devel gcc-c++ gtk2-devel libexpat0 libglade2-devel update-desktop-files xorg-x11
License: GPL v2 or later
Group: Productivity/Graphics/Other
PreReq: %{install_info_prereq}
AutoReqProv: on
Version: 20060817
Release: 106
Url: http://sourceforge.net/projects/xmorph/
Summary: A morphing program
Source: %{name}_%{version}.tar.bz2
Source1: %{name}.desktop
Source2: acinclude.m4
Patch1: xmorph-dirinfo.patch
Patch2: xmorph-gcc_warnings.patch
Patch3: xmorph-missing-include.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This morphing program reads two images in Targa format and computes the
transitions from one image to the other (arbitrarily many steps). To
avoid a simple fading effect, the program needs information about the
shapes contained in the two images. This is done by using a grid
consisting of connected checkpoints. The source grid is then
transformed into the destination grid during the morphing process.
Authors:
--------
Michael J. Gourlay <mike@penguin.gatech.edu>
%package devel
Summary: Development Files For Xmorph
Group: Productivity/Graphics/Other
Requires: %{name} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Michael J. Gourlay <mike@penguin.gatech.edu>
%prep
%setup
cat %{S:2} >>acinclude.m4
%patch1
%patch2
%patch3
%build
libtoolize -f
gettextize -f
aclocal -I m4
autoreconf --force --install
automake -a
CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} --with-gtk2
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
%suse_update_desktop_file -i %name Graphics RasterGraphics
rm -r $RPM_BUILD_ROOT%{_datadir}/xmorph/example
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/packages/xmorph/example
ln -s ../doc/packages/xmorph/example $RPM_BUILD_ROOT%{_datadir}/xmorph/example
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%post devel
/sbin/ldconfig
%postun devel
/sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
/usr/share/applications/*.desktop
/usr/share/xmorph
/usr/share/locale/*/LC_MESSAGES/*.mo
%doc README HISTORY example
%doc %{_mandir}/man1/*
%doc %{_infodir}/*info*.gz
%{_libdir}/libmorph.la
%{_libdir}/libmorph.so.*
%files devel
%defattr(-,root,root)
/usr/include/xmorph
%{_libdir}/libmorph.a
%{_libdir}/libmorph.so
%changelog
* Mon Oct 15 2007 - pgajdos@suse.cz
- added missing #include <string.h>
* missing-include.patch
* Mon Jun 25 2007 - pgajdos@suse.cz
- reparing false libdir
* Fri Jun 22 2007 - pgajdos@suse.cz
- splitted to xmorph and xmorph-devel
- used /sbin/ldconfig instead of %%run_ldconfig
* Fri Apr 27 2007 - lmichnovic@suse.cz
- added renamed package libexpat0 into BuildRequires
* Thu Sep 14 2006 - lmichnovic@suse.cz
- update to version 20060817
French program translation update. Thanks Christophe Masson
Corrected handling of i18n in iso environment. Thanks Thomas Huriaux
* Thu Sep 07 2006 - lmichnovic@suse.cz
- building with ROM_OPT_FLAGS
- fixed ggc warning and random return data (gcc_warnings.patch)
* Mon Aug 07 2006 - lmichnovic@suse.cz
- using gettextize -f to fix not expanding macro MKINSTALLDIRS
* Mon Jun 26 2006 - lmichnovic@suse.cz
- added missing gcc-c++ to Buildrequires
- not removing RPM_BUILD_ROOT in install section
* Thu Jun 08 2006 - sbrabec@suse.cz
- Updated to version 20060304:
* gtk2 related fixes
* fftw3 support
* bug fixes
* examples
* Thu Jun 01 2006 - sbrabec@suse.cz
- Switched to gtk2 interface.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Nov 12 2004 - ro@suse.de
- fixed file list
* Sun Jan 11 2004 - adrian@suse.de
- add %%run_ldconfig
* Fri Dec 05 2003 - ltinkl@suse.cz
- update to version 20030527
- build fixes
* Fri Aug 15 2003 - adrian@suse.de
- add desktop file
* Thu Apr 24 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
* Thu Mar 13 2003 - ro@suse.de
- removed serial
* Sat Feb 08 2003 - kukuk@suse.de
- Use install-info macros [Bug #23475]
- Add dir-info entry
* Mon Jan 13 2003 - tcrhak@suse.cz
- update to version 20010220
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Fri May 31 2002 - ro@suse.de
- fix build on lib64 platforms
* Thu Jun 21 2001 - adostal@suse.cz
- upgrade to v.11sep97
- fix neededforbuild (ctags)
- fix make (depend and compile)
* Wed May 09 2001 - mfabian@suse.de
- bzip2 sources
* Fri Mar 09 2001 - ro@suse.de
- added xf86
* Thu Jun 08 2000 - ro@suse.de
- fixed to compile: added -lXpm
* Fri Mar 03 2000 - uli@suse.de
- moved man page to %%{_mandir}
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Oct 02 1998 - ro@suse.de
- recrecate dependencies before build
* Mon Oct 20 1997 - ro@suse.de
- ready for autobuild