1Name: @PACKAGE@ 2Version: @VERSION@ 3Release: 1%{?dist} 4Summary: Interactive tool for working with large images 5 6Group: Applications/Multimedia 7License: GPLv2+ 8URL: https://github.com/jcupitt/nip2 9Source0: https://github.com/jcupitt/nip2/releases 10 11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 12 13BuildRequires: vips-devel = %{version} 14BuildRequires: gtk2-devel shared-mime-info gnome-icon-theme 15BuildRequires: flex bison intltool fftw-devel libxml2-devel gettext 16BuildRequires: desktop-file-utils 17#Requires: 18 19 20# description taken from Debian package 21%description 22nip2 is a graphical front end to the VIPS package. 23With nip2, rather than directly editing images, you build 24relationships between objects in a spreadsheet-like fashion. When you 25make a change somewhere, nip2 recalculates the objects affected by 26that change. Since it is demand-driven this update is very fast, even 27for very, very large images. nip2 is very good at creating pipelines 28of image manipulation operations. It is not very good for image 29editing tasks like touching up photographs. For that, a tool like the 30GIMP should be used instead. 31 32 33%prep 34%setup -q 35 36 37%build 38%configure 39make %{?_smp_mflags} 40 41 42%install 43rm -rf $RPM_BUILD_ROOT 44make install DESTDIR=$RPM_BUILD_ROOT 45 46# delete doc (we will get it later with %doc) 47rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/nip2 48 49# malkovich?? 50rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/malkovich 51 52# the nip2 post install hook seems to run update-mime-database, but we 53# need to run it in post 54rm -rf $RPM_BUILD_ROOT%{_datadir}/mime 55mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages 56cp -a nip2.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages 57 58# same with desktop file 59rm -rf $RPM_BUILD_ROOT%{_datadir}/applications 60 61# locale stuff 62%find_lang nip2 63 64# icon 65install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps 66cp -a share/nip2/data/vips-128.png \ 67 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/nip2.png 68 69# desktop file 70desktop-file-install --vendor fedora \ 71 --dir $RPM_BUILD_ROOT%{_datadir}/applications \ 72 nip2.desktop 73 74 75%post 76# scriptlet for icons 77touch --no-create %{_datadir}/icons/hicolor || : 78if [ -x %{_bindir}/gtk-update-icon-cache ]; then 79 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : 80fi 81 82# scriptlet for desktop database 83update-desktop-database &> /dev/null || : 84 85# MIME 86update-mime-database %{_datadir}/mime &> /dev/null || : 87 88 89%postun 90# scriptlet for icons 91touch --no-create %{_datadir}/icons/hicolor || : 92if [ -x %{_bindir}/gtk-update-icon-cache ]; then 93 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : 94fi 95 96# scriptlet for desktop database 97update-desktop-database &> /dev/null || : 98 99# MIME 100update-mime-database %{_datadir}/mime &> /dev/null || : 101 102 103%clean 104rm -rf $RPM_BUILD_ROOT 105 106 107%files -f nip2.lang 108%defattr(-,root,root,-) 109%doc doc/html doc/pdf AUTHORS ChangeLog COPYING NEWS THANKS TODO 110%{_bindir}/nip2 111%{_bindir}/run-nip2.sh 112%{_datadir}/nip2 113%{_mandir}/man1/nip2.1.gz 114%{_datadir}/icons/hicolor/*/apps/* 115%{_datadir}/applications/* 116%{_datadir}/mime/packages/nip2.xml 117 118 119%changelog 120* Sat Jun 10 2008 John Cupitt <jcupitt@gmail.com> - 8.7.0 121- Update URLs 122 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 125 126* Sat Mar 15 2008 Adam Goode <adam@spicenitz.org> - 7.14.1-1 127- New release 128 129* Mon Mar 10 2008 Adam Goode <adam@spicenitz.org> - 7.14.0-1 130- New release 131 132* Sat Feb 9 2008 Adam Goode <adam@spicenitz.org> - 7.12.5-4 133- GCC 4.3 mass rebuild 134 135* Wed Dec 5 2007 Adam Goode <adam@spicenitz.org> - 7.12.5-3 136- Fix desktop file validation 137 138* Tue Oct 16 2007 Adam Goode <adam@spicenitz.org> - 7.12.5-2 139- Rebuild for OpenEXR soname change 140 141* Fri Sep 21 2007 Adam Goode <adam@spicenitz.org> - 7.12.5-1 142- New upstream release 143 144* Thu Aug 16 2007 Adam Goode <adam@spicenitz.org> - 7.12.4-1 145- New upstream release 146- Update License tag 147 148* Wed Jul 25 2007 Adam Goode <adam@spicenitz.org> - 7.12.2-1 149- New stable release 7.12 150 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 155 156* Thu Aug 31 2006 Adam Goode <adam@spicenitz.org> - 7.10.21-1 157- New upstream release 158 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 162 163* Sat Jul 22 2006 Adam Goode <adam@spicenitz.org> - 7.10.20-1 164- New upstream release 165- Updated for FC5 166 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 169