Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > 5fbd1c906435ab2c7e1a79c07ace2aff > files > 8

gpaint-2-0.3.3-6mdv2010.1.src.rpm

Name:		gpaint-2
Summary:	Simple, easy-to-use paint program
Version:	0.3.3
Release:	%mkrel 6
License:	GPLv2+
Source0:	http://www.gnu.org/software/gpaint/#downloading/%{name}-%{version}.tar.gz
URL:		http://www.gnu.org/software/gpaint/
Group:		Graphics
Patch0:		gpaint-2-0.3.3-fix-drawing-fnt.patch
Patch1:		gpaint-2-0.3.3-remove-entry-menu.h.patch
Patch2:		gpaint-2-0.3.3-fix-crash-on-font-selection.patch
Patch3:		gpaint-2-0.3.3-fix-crash-on-saving-in-unsupported-format.patch
Patch4:		gpaint-2-0.3.3-fix-not-printable-string.patch
Patch5:		gpaint-2-0.3.3-fix-color-selection.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	libglade2.0-devel >= 2.6.4

%description
GNU Paint. A simple, easy-to-use paint program for GNOME. This is a port of
xpaint that takes advantages of features unique to the GNOME environment.

%prep
%setup -q
%patch0 -p1 
%patch1 -p0
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%configure2_5x 
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%find_lang %{name}

#mdk menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Gpaint
Comment=Paint program
Exec=%{_bindir}/%{name}
Icon=graphics_section
Terminal=false
Type=Application
Categories=Graphics;
MimeType=image/gif;image/jpeg;image/png;image/bmp;image/x-eps;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root root) 
%doc AUTHORS COPYING  NEWS README THANKS
%{_bindir}/%{name}
%{_datadir}/gpaint/glade/gpaint.glade
%{_datadir}/applications/%{name}.desktop


%changelog
* Thu Apr 22 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.3.3-6mdv2010.1
+ Revision: 537771
- Given a better name for a patch.

* Wed Apr 21 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.3.3-5mdv2010.1
+ Revision: 537540
- add 4 patches from upstream:
- Patch2:         gpaint-2-0.3.3-fix-crash-on-font-selection.patch
- Patch3:         gpaint-2-0.3.3-fix-crash-on-saving-in-unsupported-format.patch
- Patch4:         gpaint-2-0.3.3-fix-not-printable-string.patch
- Patch5:         gpaint-2-0.3.3-fix-color-selection.patch

* Wed Apr 07 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.3.3-4mdv2010.1
+ Revision: 532505
- don't define name, version and release on top of spec.
- fix source0

* Fri Mar 12 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.3.3-3mdv2010.1
+ Revision: 518303
- Add "MimeType=" in desktop file

* Thu Mar 11 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.3.3-2mdv2010.1
+ Revision: 518284
- import gpaint-2