~ubuntu-branches/ubuntu/vivid/nip2/vivid-proposed

« back to all changes in this revision

Viewing changes to nip2.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2009-05-12 09:26:46 UTC
  • mfrom: (1.2.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090512092646-j8lb1w2x69pvgma4
Tags: 7.18.1-1ubuntu1
* Merge from debian unstable (LP: #375435), remaining changes:
  - debian/control: Also Recommend abrowser

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Name:           @PACKAGE@
 
2
Version:        @VERSION@
 
3
Release:        1%{?dist}
 
4
Summary:        Interactive tool for working with large images
 
5
 
 
6
Group:          Applications/Multimedia
 
7
License:        GPLv2+
 
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
 
10
 
 
11
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
12
 
 
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
 
17
#Requires:
 
18
 
 
19
 
 
20
# description taken from Debian package
 
21
%description
 
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.
 
31
 
 
32
 
 
33
%prep
 
34
%setup -q
 
35
 
 
36
# CVS dirs
 
37
find . -name CVS -type d -print0 | xargs -0 rm -rf
 
38
 
 
39
 
 
40
%build
 
41
%configure
 
42
make %{?_smp_mflags}
 
43
 
 
44
 
 
45
%install
 
46
rm -rf $RPM_BUILD_ROOT
 
47
make install DESTDIR=$RPM_BUILD_ROOT
 
48
 
 
49
# delete doc (we will get it later with %doc)
 
50
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/nip2
 
51
 
 
52
# malkovich??
 
53
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/malkovich
 
54
 
 
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
 
60
 
 
61
# same with desktop file
 
62
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications
 
63
 
 
64
# locale stuff
 
65
%find_lang nip2
 
66
 
 
67
# icon
 
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
 
71
 
 
72
# desktop file
 
73
desktop-file-install --vendor fedora                    \
 
74
        --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
 
75
        nip2.desktop
 
76
 
 
77
 
 
78
%post
 
79
# scriptlet for icons
 
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 || :
 
83
fi
 
84
 
 
85
# scriptlet for desktop database
 
86
update-desktop-database &> /dev/null || :
 
87
 
 
88
# MIME
 
89
update-mime-database %{_datadir}/mime &> /dev/null || :
 
90
 
 
91
 
 
92
%postun
 
93
# scriptlet for icons
 
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 || :
 
97
fi
 
98
 
 
99
# scriptlet for desktop database
 
100
update-desktop-database &> /dev/null || :
 
101
 
 
102
# MIME
 
103
update-mime-database %{_datadir}/mime &> /dev/null || :
 
104
 
 
105
 
 
106
%clean
 
107
rm -rf $RPM_BUILD_ROOT
 
108
 
 
109
 
 
110
%files -f nip2.lang
 
111
%defattr(-,root,root,-)
 
112
%doc doc/html doc/pdf AUTHORS ChangeLog COPYING NEWS THANKS TODO
 
113
%{_bindir}/nip2
 
114
%{_bindir}/run-nip2.sh
 
115
%{_datadir}/nip2
 
116
%{_mandir}/man1/nip2.1.gz
 
117
%{_datadir}/icons/hicolor/*/apps/*
 
118
%{_datadir}/applications/*
 
119
%{_datadir}/mime/packages/nip2.xml
 
120
 
 
121
 
 
122
%changelog
 
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