/[pkgs]/devel/GREYCstoration/GREYCstoration.spec
ViewVC logotype

Contents of /devel/GREYCstoration/GREYCstoration.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Jul 24 15:30:06 2009 UTC (3 months, 4 weeks ago) by jkeating
Branch: MAIN
CVS Tags: F-12-split, GREYCstoration-2_8-5_fc12, HEAD
Changes since 1.9: +4 -1 lines
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1 Name: GREYCstoration
2 Version: 2.8
3 Release: 5%{?dist}
4 Summary: An image denoising and interpolation tool
5 Group: Applications/Multimedia
6 License: CeCILL
7 URL: http://www.greyc.ensicaen.fr/~dtschump/greycstoration/index.html
8 Source0: http://dl.sf.net/cimg/%{name}-%{version}.zip
9 Source1: %{name}.png
10 Patch0: GREYCstoration-2.8-fixmakefile.patch
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 BuildRequires: gimp-devel gimp
13 BuildRequires: desktop-file-utils
14 BuildRequires: libpng-devel libjpeg-devel libtiff-devel fftw-devel
15
16 %description
17 GREYCstoration is an image regularization algorithm which is able to process
18 a color image by locally removing small variations of pixel intensities while
19 preserving significant global image features, such as edges and corners. The
20 most direct application of image regularization is image denoising. By
21 extension, it can also be used to inpaint or resize images.
22
23
24 %package gimp
25 Summary: GREYCstoration image denoising and interpolation plugin for gimp
26 Group: Applications/Multimedia
27 Requires: gimp %{name}
28
29
30 %description gimp
31 GREYCstoration is an image regularization algorithm which is able to process
32 a color image by locally removing small variations of pixel intensities while
33 preserving significant global image features, such as edges and corners. The
34 most direct application of image regularization is image denoising. By
35 extension, it can also be used to inpaint or resize images.
36
37 This package contains the GREYCstoration plugin for gimp.
38
39
40 %package gui
41 Summary: GREYCstoration image denoising and interpolation tool
42 Group: Applications/Multimedia
43 Requires: %{name} hicolor-icon-theme tcl tk
44
45
46 %description gui
47 GREYCstoration is an image regularization algorithm which is able to process
48 a color image by locally removing small variations of pixel intensities while
49 preserving significant global image features, such as edges and corners. The
50 most direct application of image regularization is image denoising. By
51 extension, it can also be used to inpaint or resize images.
52
53 This package contains the GREYCstoration GUI.
54
55
56 %prep
57 %setup -q
58 %patch0 -p1
59 # Include path for CImg.h is wrong, fix it.
60 sed -i -r "s|#include \"../CImg.h\"|#include \"CImg.h\"|" src/greycstoration*.cpp
61 iconv -f iso-8859-1 -t utf-8 Licence_CeCILL_V2-en.txt > Licence_CeCILL_V2-en.txt.conv
62 mv Licence_CeCILL_V2-en.txt.conv Licence_CeCILL_V2-en.txt
63 # Fix lib path on lib64 systems
64 %ifarch ppc64 x86_64
65 sed -ir "s|/lib|/lib64|" src/Makefile
66 %endif
67
68
69 %build
70 make -C src %{?_smp_mflags} CFLAGS="%{optflags} -fno-tree-pre" all
71
72 # Build desktop icon
73 cat >%{name}.desktop <<EOF
74 [Desktop Entry]
75 Encoding=UTF-8
76 Name=GREYCstoration
77 GenericName=(Image noise tool)
78 Comment=%{summary}
79 Exec=%{_bindir}/%{name}_gui.tcl
80 Icon=%{name}.png
81 Terminal=false
82 Type=Application
83 StartupNotify=false
84 Categories=Graphics;2DGraphics;RasterGraphics;
85 EOF
86
87
88 %install
89 rm -rf %{buildroot}
90
91 mkdir -p %{buildroot}%{_bindir}
92 mkdir -p %{buildroot}%{_libdir}/gimp/2.0/plug-ins/
93 mkdir -p %{buildroot}%{_datadir}/%{name}
94 mkdir -p %{buildroot}%{_datadir}/icons/hicolor/96x96/apps
95 install -m0755 src/greycstoration %{buildroot}%{_bindir}/
96 install -m0755 src/greycstoration4integration %{buildroot}%{_bindir}/
97 install -m0755 src/greycstoration4gimp %{buildroot}%{_libdir}/gimp/2.0/plug-ins/
98 install -m0755 GREYCstoration_gui.tcl %{buildroot}%{_bindir}
99 install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/96x96/apps
100 desktop-file-install \
101 --vendor fedora \
102 --dir %{buildroot}%{_datadir}/applications \
103 %{name}.desktop
104
105 %clean
106 rm -rf %{buildroot}
107
108
109 %post gui
110 touch --no-create %{_datadir}/icons/hicolor || :
111 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
112 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
113 fi
114
115
116 %postun gui
117 touch --no-create %{_datadir}/icons/hicolor || :
118 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
119 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
120 fi
121
122
123 %files
124 %defattr(-,root,root)
125 %doc README.txt
126 %doc Licence_CeCILL_V2-en.txt
127 %{_bindir}/greycstoration
128 %{_bindir}/greycstoration4integration
129
130 %files gimp
131 %{_libdir}/gimp/2.0/plug-ins/greycstoration4gimp
132
133 %files gui
134 %{_datadir}/icons/hicolor/96x96/apps/%{name}.png
135 %{_datadir}/applications/fedora-%{name}.desktop
136 %{_bindir}/%{name}_gui.tcl
137
138 %changelog
139 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-5
140 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
141
142 * Tue Feb 24 2009 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.8-4
143 - Fixed broken revision 3
144
145 * Tue Feb 24 2009 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.8-3
146 - Fixed dependancy ref BZ#479993
147
148 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-2
149 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
150
151 * Wed Oct 08 2008 Nils Philippsen <nils@redhat.com>
152 - use "-fno-tree-pre" option to avoid ages long compilation with gcc-4.3
153
154 * Thu Mar 13 2008 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.8-1
155 - New upstream version
156
157 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.6-3
158 - Autorebuild for GCC 4.3
159
160 * Tue Jan 15 2008 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.6-2
161 - New upstream version, testing 64 bit build issues
162
163 * Wed Jan 09 2008 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.6-1
164 - New upstream version
165 - This release deals with RGB/YCbCr color bases, and processes only particular
166 - channels of a hyperspectral image. Only the command line version has been updated.
167
168 * Tue Oct 11 2007 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.5.2-6
169 - Source URL Change
170
171 * Mon Oct 10 2007 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.5.2-5
172 - Specfile fixes
173
174 * Thu Oct 04 2007 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.5.2-4
175 - Fixed Buildroot, Patch, Build and Setup
176 - Added GUI
177 - Added support for more image formats in Makefile
178 - Fixed build on systems with lib64
179
180 * Sun Sep 30 2007 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.5.2-3
181 - Patch makefile regarding stripped binaries
182
183 * Fri Sep 28 2007 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.5.2-2
184 - Missing build require added for gimp
185
186 * Fri Sep 28 2007 Marc Bradshaw <packages@marcbradshaw.co.uk> 2.5.2-1
187 - Initial release

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2