LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gimp-plugin-wavelet-denoise.spec of Package gimp-plugin-wavelet-denoise (Project home:snwint)

#
# rpm spec for nitrogen
#
#Общая информация о пакете,тут думаю все понятно по названиям
Summary: Gimp plugin to reduce noise in each channel of an image separately
Name: gimp-plugin-wavelet-denoise
Version: 0.3.1
Release: 1
Epoch: 0
License: GPL
#группа пакета,т.е. то место где можно будет его найти в менеджере пакетов
#найти группы можно тут - http://en.opensuse.org/SUSE_Package_Conventions/RPM_Groups
Group: Productivity/Graphics/Bitmap Editors
Url:  http://registry.gimp.org/node/4235
Source0:  http://registry.gimp.org/files/wavelet-denoise-%{version}.tar.gz



Patch1:  wavelet-denoise-lib.patch

Requires:  gimp

BuildRequires:  gimp-devel >= 2.4


%description
The wavelet denoise plugin is a tool to reduce noise in each channel
of an image separately..
The default colour space to do denoising is YCbCr which has the.
advantage that chroma noise can be reduced without affecting image details..
Denoising in CIELAB (L*a*b*) or RGB is available as an option..
The user interface allows colour mode and preview channel selection..
The denoising threshold can be set for each colour channel independently.

%prep

%setup -q -n wavelet-denoise-%{version}

%patch1 -p0


%build
make

%install
for i in `find po -name "*.po"`;
do
    lang=`basename $i`
    lang=${lang/\.po/}
    install -D -d -m 755 %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done
make -C po install LOCALEDIR=%{buildroot}%{_datadir}/locale
install -Dm 755 src/wavelet-denoise %{buildroot}%{_libdir}/gimp/2.0/plug-ins/wavelet-denoise

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root,-)
%doc COPYING AUTHORS ChangeLog THANKS README TRANSLATIONS
%{_datadir}/locale/*/LC_MESSAGES/gimp20-wavelet-denoise-plug-in.mo
%{_libdir}/gimp/2.0/plug-ins/wavelet-denoise