-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathmathmap.spec.in
More file actions
152 lines (119 loc) · 3.84 KB
/
mathmap.spec.in
File metadata and controls
152 lines (119 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
%define _plugindir %{_libdir}/gimp/2.0/plug-ins
%define _mathmapdir %{_datadir}/gimp/2.0/mathmap
%define _langdir %{_datadir}/gtksourceview-2.0/language-specs
%if 0%{?opensuse_bs}
%if "x%{?_vendor}" == "xmandriva"
%define mandriva 1
%if 0%{?mandriva_version}
%define mdkversion %{mandriva_version}00
%endif
%endif
%else
%if %{?_vendor:%_vendor==mandriva || %_vendor==Mandriva}
%define mandriva 1
%endif
%{?mandriva_version:%define mdkversion %{mandriva_version}00}
%{?!mdkversion:%define mdkversion %(perl -pe '/(\\d+)\\.(\\d)\\.?(\\d)?/; $_="$1$2".($3||0)' /etc/mandriva-release)}
%endif
%if 0%{?mandriva}
%define _mmrelease %mkrel 1
%define _gtksourceview libgtksourceview-2.0
%define _giflib ungif
%else
%define _mmrelease 1
%define _giflib giflib
%if 0%{?suse_version}
%define _gtksourceview gtksourceview
%else
%define _gtksourceview gtksourceview2
%endif
%endif
Name: mathmap
Version: \version
Release: %{_mmrelease}
License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Group: Applications/Multimedia
Summary: MathMap GIMP Plug-In and Command-Line Tool
URL: http://www.complang.tuwien.ac.at/schani/mathmap/
Source: %{name}_%{version}-1.tar.gz
Requires: gcc
Requires: gimp
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: %{_giflib}-devel
BuildRequires: gsl-devel
BuildRequires: gimp-devel
BuildRequires: gimp
BuildRequires: make
BuildRequires: fftw3-devel
BuildRequires: %{_gtksourceview}-devel
BuildRequires: gettext
BuildRequires: unzip
BuildRequires: doxygen
BuildRequires: perl
%if 0%{?opensuse_bs}
%if 0%{?mandriva}
BuildRequires: gimp-help-2-en
BuildRequires: which libtool
%if %mdkversion >= 200900
BuildRequires: pulseaudio-esound-compat
%endif
%endif
%if 0%{?fedora_version}
%if %fedora_version == 8
BuildRequires: lynx
%endif
%endif
%endif
%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
%build
%{__make} CFLAGS="%{optflags}" LOCALEDIR="%{_datadir}/locale"
%install
make DESTDIR=$RPM_BUILD_ROOT LOCALEDIR="%{_datadir}/locale" install
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%doc ANNOUNCEMENT COPYING README README.filters README.git
%{_bindir}/mathmap
%{_plugindir}/mathmap
%{_langdir}/mathmap.lang
%{_mathmapdir}
%{_datadir}/locale/*/LC_MESSAGES/mathmap.mo
%changelog
* Sat Aug 22 2009 Mark Probst <schani@complang.tuwien.ac.at> 1.3.4
- Updated with changes from the Fedora 11 spec file
* Sun Jul 26 2009 Mark Probst <schani@complang.tuwien.ac.at> 1.3.4
- Update for gtksourceview2
* Sun Aug 31 2008 Mark Probst <schani@complang.tuwien.ac.at> 1.3.4
- Update for version 1.3.4
* Tue Aug 26 2008 Mark Probst <schani@complang.tuwien.ac.at> 1.3.3
- Update for version 1.3.3
* Sat Feb 16 2008 Mark Probst <schani@complang.tuwien.ac.at> 1.3.2
- Update for version 1.3.2
* Sun Jan 13 2008 Mark Probst <schani@complang.tuwien.ac.at> 1.3.1
- Update for version 1.3.1
* Tue Jan 01 2008 Mark Probst <schani@complang.tuwien.ac.at> 1.3.0
- Update for version 1.3.0
* Mon Dec 03 2007 Mark Probst <schani@complang.tuwien.ac.at> 1.2.4
- openSUSE Build Service
* Fri Nov 23 2007 Mark Probst <schani@complang.tuwien.ac.at> 1.2.4
- Update for version 1.2.4
* Fri Nov 09 2007 Mark Probst <schani@complang.tuwien.ac.at> 1.2.3
- Update for version 1.2.3
* Sun Nov 04 2007 Mark Probst <schani@complang.tuwien.ac.at> 1.2.2
- Update for version 1.2.2
* Thu May 04 2007 Mark Probst <schani@complang.tuwien.ac.at> 1.2.0
- Update for version 1.2.0
* Thu Apr 12 2007 Mark Probst <schani@complang.tuwien.ac.at> 1.1.3
- First creation of spec file