4
Summary: Interactive tool for working with large images
6
Group: Applications/Multimedia
8
URL: http://www.vips.ecs.soton.ac.uk/
9
Source0: http://www.vips.ecs.soton.ac.uk/supported/7.14/%{name}-%{version}.tar.gz
11
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
BuildRequires: vips-devel = %{version}
14
BuildRequires: gtk2-devel shared-mime-info gnome-icon-theme
15
BuildRequires: flex bison intltool fftw-devel libxml2-devel gettext
16
BuildRequires: desktop-file-utils
20
# description taken from Debian package
22
nip2 is a graphical front end to the VIPS package.
23
With nip2, rather than directly editing images, you build
24
relationships between objects in a spreadsheet-like fashion. When you
25
make a change somewhere, nip2 recalculates the objects affected by
26
that change. Since it is demand-driven this update is very fast, even
27
for very, very large images. nip2 is very good at creating pipelines
28
of image manipulation operations. It is not very good for image
29
editing tasks like touching up photographs. For that, a tool like the
30
GIMP should be used instead.
37
find . -name CVS -type d -print0 | xargs -0 rm -rf
46
rm -rf $RPM_BUILD_ROOT
47
make install DESTDIR=$RPM_BUILD_ROOT
49
# delete doc (we will get it later with %doc)
50
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/nip2
53
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/malkovich
55
# the nip2 post install hook seems to run update-mime-database, but we
56
# need to run it in post
57
rm -rf $RPM_BUILD_ROOT%{_datadir}/mime
58
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages
59
cp -a nip2.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages
61
# same with desktop file
62
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications
68
install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
69
cp -a share/nip2/data/vips-128.png \
70
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/nip2.png
73
desktop-file-install --vendor fedora \
74
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
80
touch --no-create %{_datadir}/icons/hicolor || :
81
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
82
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
85
# scriptlet for desktop database
86
update-desktop-database &> /dev/null || :
89
update-mime-database %{_datadir}/mime &> /dev/null || :
94
touch --no-create %{_datadir}/icons/hicolor || :
95
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
96
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
99
# scriptlet for desktop database
100
update-desktop-database &> /dev/null || :
103
update-mime-database %{_datadir}/mime &> /dev/null || :
107
rm -rf $RPM_BUILD_ROOT
111
%defattr(-,root,root,-)
112
%doc doc/html doc/pdf AUTHORS ChangeLog COPYING NEWS THANKS TODO
114
%{_bindir}/run-nip2.sh
116
%{_mandir}/man1/nip2.1.gz
117
%{_datadir}/icons/hicolor/*/apps/*
118
%{_datadir}/applications/*
119
%{_datadir}/mime/packages/nip2.xml
123
* Sat Jul 19 2008 Jesper Friis <jesper.friis(at)sintef.no> - 7.15.0-1
124
- Added this spec file from the Fedora source rpm
126
* Sat Mar 15 2008 Adam Goode <adam@spicenitz.org> - 7.14.1-1
129
* Mon Mar 10 2008 Adam Goode <adam@spicenitz.org> - 7.14.0-1
132
* Sat Feb 9 2008 Adam Goode <adam@spicenitz.org> - 7.12.5-4
133
- GCC 4.3 mass rebuild
135
* Wed Dec 5 2007 Adam Goode <adam@spicenitz.org> - 7.12.5-3
136
- Fix desktop file validation
138
* Tue Oct 16 2007 Adam Goode <adam@spicenitz.org> - 7.12.5-2
139
- Rebuild for OpenEXR soname change
141
* Fri Sep 21 2007 Adam Goode <adam@spicenitz.org> - 7.12.5-1
142
- New upstream release
144
* Thu Aug 16 2007 Adam Goode <adam@spicenitz.org> - 7.12.4-1
145
- New upstream release
148
* Wed Jul 25 2007 Adam Goode <adam@spicenitz.org> - 7.12.2-1
149
- New stable release 7.12
151
* Sat May 5 2007 Adam Goode <adam@spicenitz.org> - 7.12.0-1
152
- New upstream release
153
- Update desktop file
154
- Remove X-Fedora category
156
* Thu Aug 31 2006 Adam Goode <adam@spicenitz.org> - 7.10.21-1
157
- New upstream release
159
* Sun Aug 13 2006 Adam Goode <adam@spicenitz.org> - 7.10.20-2
160
- Fix location of documentation in program so help works
161
- Semicolon-terminate Category entry in desktop file
163
* Sat Jul 22 2006 Adam Goode <adam@spicenitz.org> - 7.10.20-1
164
- New upstream release
167
* Thu Jan 30 2003 John Cupitt <john.cupitt@ng-london.org.uk> 7.8.6-1
168
- first stab at an rpm package for nip