rpms/mathmap/devel mathmap.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Robin Norwood (rnorwood) fedora-extras-commits at redhat.com
Thu May 22 21:35:47 UTC 2008


Author: rnorwood

Update of /cvs/pkgs/rpms/mathmap/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1864/devel

Modified Files:
	.cvsignore sources 
Added Files:
	mathmap.spec 
Log Message:
Initial commit



--- NEW FILE mathmap.spec ---
%define _plugindir %(gimptool --gimpplugindir)/plug-ins
%define _mathmapdir %(gimptool --gimpdatadir)/mathmap
%define _langdir %{_datadir}/gtksourceview-1.0/language-specs

Name:           mathmap
Version:        1.2.4
Release:        4%{?dist}
Summary:        MathMap GIMP Plug-In and Command-Line Tool

Group:          Applications/Multimedia
License:        GPLv2+
URL:            http://www.complang.tuwien.ac.at/schani/mathmap/
Source:         http://www.complang.tuwien.ac.at/schani/mathmap/files/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  libpng-devel
BuildRequires:  libjpeg-devel
BuildRequires:  giflib-devel
BuildRequires:  gsl-devel
BuildRequires:  gimp
BuildRequires:  gimp-devel
BuildRequires:  gtksourceview-devel
BuildRequires:  lynx

Requires:	gimp


%description
MathMap is a GIMP plug-in which allows distortion of images specified
by mathematical formulae.  For each pixel in the generated image, an
expression is evaluated which should return a pixel value.  The
expression can either refer to a pixel in the source image or can
generate pixels completely independent of the source.


%prep
%setup -q

%{__perl} -pi -e 's|^LOCALEDIR = .*$|LOCALEDIR = %{_datadir}/locale|' Makefile
%{__perl} -pi -e 's|^OPT_CFLAGS :=.*$|OPT_CFLAGS := %{optflags}|' Makefile


%build
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
## FIXME: make install from upstream package doesn't support DESTDIR
#make install DESTDIR=$RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT/%{_bindir}
install -d $RPM_BUILD_ROOT/%{_plugindir}
install -d $RPM_BUILD_ROOT/%{_mathmapdir}
install -d $RPM_BUILD_ROOT/%{_langdir}
install -p -m 755 mathmap $RPM_BUILD_ROOT/%{_bindir}/mathmap
ln -s ../../../../bin/mathmap $RPM_BUILD_ROOT/%{_plugindir}/mathmap

# These next two lines generate rpmlint warnings because they install
# 'devel' files, but apparently are required at runtime because of the
# way gimp/blender plugins work.
install -p -m 644 new_template.c opmacros.h lispreader/pools.h $RPM_BUILD_ROOT/%{_mathmapdir}/
install -p -m 644 generators/blender/blender_template.c generators/blender/blender_opmacros.h $RPM_BUILD_ROOT/%{_mathmapdir}/

install -p -m 644 pixmaps/*.png $RPM_BUILD_ROOT/%{_mathmapdir}/
install -p -m 644 mathmap.lang $RPM_BUILD_ROOT/%{_langdir}/
cp -p -r examples $RPM_BUILD_ROOT/%{_mathmapdir}/expressions
%{_fixperms} $RPM_BUILD_ROOT/*


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc ANNOUNCEMENT COPYING README
%{_bindir}/mathmap
%{_plugindir}/mathmap
%{_langdir}/mathmap.lang
%{_mathmapdir}


%changelog
* Wed May 21 2008 Robin Norwood <rnorwood at redhat.com> - 1.2.4-4
- Add a Requires: gimp

* Mon May 12 2008 Robin Norwood <rnorwood at redhat.com> - 1.2.4-3
- More fixes from package review:
- Honor optflags
- Set localedir properly

* Thu Feb  7 2008 Robin Norwood <rnorwood at redhat.com> - 1.2.4-2
- Update with fixes from package review
 
* Thu Jan 31 2008 Robin Norwood <rnorwood at redhat.com> - 1.2.4-1
- Initial build based upon spec by Mark Probst <schani at complang.tuwien.ac.at>


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mathmap/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	22 May 2008 18:33:04 -0000	1.1
+++ .cvsignore	22 May 2008 21:35:08 -0000	1.2
@@ -0,0 +1 @@
+mathmap-1.2.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mathmap/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	22 May 2008 18:33:04 -0000	1.1
+++ sources	22 May 2008 21:35:08 -0000	1.2
@@ -0,0 +1 @@
+e2e6e14349f7a8ca0b02217364f744af  mathmap-1.2.4.tar.gz




More information about the fedora-extras-commits mailing list