Paul Lange 8bfc628
%global debug_package %{nil}
Paul Lange 8bfc628
7dd5222
Name:		pinta
74130c0
Version:	1.6
09b96a9
Release:	2%{?dist}
Paul Lange 8bfc628
Summary:	An easy to use drawing and image editing program
Paul Lange 8bfc628
Paul Lange 8bfc628
# the code is licensed under the MIT license while the icons are licensed as CC-BY
Paul Lange 8bfc628
License:	MIT and CC-BY
Paul Lange 8bfc628
URL:		http://pinta-project.com/
Paul Lange 8bfc628
7dd5222
Source0:	http://github.com/PintaProject/Pinta/releases/download/%{version}/%{name}-%{version}.tar.gz
Paul Lange 8bfc628
63bdc6a
# Mono only available on these:
09b96a9
ExclusiveArch: %mono_arches
7dd5222
7dd5222
# Pinta doesn't build on arm with mono 2.10
7dd5222
# https://bugzilla.redhat.com/show_bug.cgi?id=992798
7dd5222
ExcludeArch:	%{arm}
Paul Lange 8bfc628
Paul Lange 833bb5e
Requires:	hicolor-icon-theme, mono-addins
Paul Lange 833bb5e
BuildRequires:	mono-devel, gtk-sharp2-devel, gettext, desktop-file-utils
Paul Lange 833bb5e
BuildRequires:	intltool, mono-addins-devel
Paul Lange 8bfc628
Paul Lange 8bfc628
%description
Paul Lange 8bfc628
Pinta is an image drawing/editing program.
Paul Lange 8bfc628
It's goal is to provide a simplified alternative to GIMP for casual users.
Paul Lange 8bfc628
Paul Lange 8bfc628
%prep
Paul Lange 8bfc628
%setup -q
Paul Lange 8bfc628
Paul Lange 347221c
chmod -x readme.md
Paul Lange 8bfc628
chmod -x license-mit.txt
Paul Lange 8bfc628
chmod -x license-pdn.txt
Paul Lange 8bfc628
chmod -x xdg/pinta.1
Paul Lange 8bfc628
chmod -x xdg/pinta.xpm
Paul Lange 8bfc628
chmod -x xdg/scalable/pinta.svg
Paul Lange 8bfc628
Paul Lange 347221c
sed -i 's/\r//' readme.md
Paul Lange 8bfc628
sed -i 's/\r//' license-mit.txt
Paul Lange 8bfc628
sed -i 's/\r//' license-pdn.txt
Paul Lange 8bfc628
sed -i 's/\r//' pinta.in
Paul Lange 8bfc628
sed -i 's/\r//' xdg/pinta.xpm
Paul Lange 8bfc628
sed -i 's/\r//' xdg/pinta.1
Paul Lange 8bfc628
sed -i 's/\r//' xdg/scalable/pinta.svg
Paul Lange 8bfc628
Paul Lange 8bfc628
%build
Paul Lange 8bfc628
%configure
Paul Lange 8bfc628
make %{?_smp_mflags}
Paul Lange 8bfc628
Paul Lange 8bfc628
%install
Paul Lange 8bfc628
rm -rf %{buildroot}
Paul Lange 44152e4
make install DESTDIR=%{buildroot}
Paul Lange 8bfc628
Richard Hughes 0e6f572
# Register as an application to be visible in the software center
Richard Hughes 0e6f572
#
Richard Hughes 0e6f572
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 0e6f572
# project, translated and installed into the right place during `make install`.
Richard Hughes 0e6f572
#
Richard Hughes 0e6f572
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 0e6f572
#
Richard Hughes 0e6f572
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 0e6f572
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 0e6f572
Richard Hughes 0e6f572
Richard Hughes 0e6f572
Richard Hughes 0e6f572
EmailAddress: cameronwhite91@gmail.com
Richard Hughes 0e6f572
SentUpstream: 2014-03-23
Richard Hughes 0e6f572
-->
Richard Hughes 0e6f572
<application>
Richard Hughes 0e6f572
  <id type="desktop">pinta.desktop</id>
Richard Hughes 0e6f572
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 0e6f572
  <summary>Edit images and paint digitally</summary>
Richard Hughes 0e6f572
  <description>
Richard Hughes 0e6f572
    

Richard Hughes 0e6f572
      Pinta is a image editing, drawing and painting application with a simple
Richard Hughes 0e6f572
      yet powerful interface.
Richard Hughes 0e6f572
      Pinta has a wide range of drawing tools, including: freehand, rectangles,
Richard Hughes 0e6f572
      circles and lines.
Richard Hughes 0e6f572
      It also has over 35 effects to apply to your images, and also has the
Richard Hughes 0e6f572
      ability to create unlimited layers to help organize your creativity.
Richard Hughes 0e6f572
    

Richard Hughes 0e6f572
  </description>
Richard Hughes 0e6f572
  <url type="homepage">http://pinta-project.com/</url>
Richard Hughes 0e6f572
  <screenshots>
Richard Hughes 0e6f572
    <screenshot type="default">http://pinta-project.com/Images/ss1-800.jpg</screenshot>
Richard Hughes 0e6f572
    <screenshot>http://pinta-project.com/Images/ss2-800.jpg</screenshot>
Richard Hughes 0e6f572
  </screenshots>
Richard Hughes 0e6f572
</application>
Richard Hughes 0e6f572
EOF
Richard Hughes 0e6f572
74130c0
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
Richard Hughes bc16f5d
Richard Hughes bc16f5d
%find_lang %name
Richard Hughes bc16f5d
  
Richard Hughes bc16f5d
%post
Richard Hughes bc16f5d
update-desktop-database &> /dev/null ||:
Richard Hughes bc16f5d
Richard Hughes bc16f5d
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Richard Hughes bc16f5d
Paul Lange 8bfc628
%postun
Paul Lange 8bfc628
update-desktop-database &> /dev/null || :
Paul Lange 8bfc628
Paul Lange 8bfc628
if [ $1 -eq 0 ] ; then
Paul Lange 8bfc628
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
Paul Lange 8bfc628
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Paul Lange 8bfc628
fi
Paul Lange 8bfc628
Paul Lange 8bfc628
%posttrans
Paul Lange 8bfc628
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Paul Lange 8bfc628
Paul Lange 8bfc628
%files -f %{name}.lang
Paul Lange c8adce0
%doc readme.md license-mit.txt license-pdn.txt
Paul Lange 8bfc628
%{_libdir}/%{name}
Paul Lange 8bfc628
%{_bindir}/%{name}
Richard Hughes 0e6f572
%{_datadir}/appdata/%{name}.appdata.xml
Paul Lange 8bfc628
%{_datadir}/applications/%{name}.desktop
Paul Lange 8bfc628
%{_datadir}/icons/hicolor/*/*/%{name}.*
Paul Lange 8bfc628
%{_datadir}/man/man1/%{name}*
Paul Lange 8bfc628
%{_datadir}/pixmaps/%{name}*
Paul Lange 8bfc628
Paul Lange 8bfc628
%changelog
09b96a9
* Thu Dec 10 2015 Than Ngo <than@redhat.com> - 1.6-2
09b96a9
- use %%mono_arches
09b96a9
74130c0
* Sat Mar 28 2015 Andrea Musuruane <musuruan@gmail.com> - 1.6-1
74130c0
- Updated to v1.6
74130c0
- Minor cleanup
74130c0
Richard Hughes 0e6f572
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.5-2
Richard Hughes 0e6f572
- Add an AppData file for the software center
Richard Hughes 0e6f572
7dd5222
* Mon Oct 27 2014 Andrea Musuruane <musuruan@gmail.com> 1.5-1
7dd5222
- Updated to v1.5
7dd5222
- Updated Source0 tag
7dd5222
- Dropped obsolete Group tags
7dd5222
- Pinta doesn't build on arm (#992798)
7dd5222
f7caa32
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
f7caa32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f7caa32
9375a89
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
9375a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9375a89
018ae38
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
018ae38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
018ae38
28f0d2c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
28f0d2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
28f0d2c
Paul Lange c8adce0
* Sun Oct 07 2012 Paul Lange <palango@gmx.de> - 1.4-1
Paul Lange c8adce0
- Update to 1.4
Paul Lange c8adce0
a0a51bb
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
a0a51bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a0a51bb
Paul Lange 4ba8db5
* Mon Apr 30 2012 Paul Lange <palango@gmx.de> - 1.3-1
Paul Lange 4ba8db5
- update to 1.3
Paul Lange 4ba8db5
Paul Lange 9f14d62
* Wed Apr 18 2012 Paul Lange <palango@gmx.de> - 1.2-1
Paul Lange 9f14d62
- update to 1.2
Paul Lange 9f14d62
Paul Lange 2617b69
* Sat Feb 18 2012 Paul Lange <palango@gmx.de> - 1.1-4
Paul Lange 2617b69
- correct path in bin/pinta
Paul Lange 2617b69
Paul Lange 833bb5e
* Sat Feb 11 2012 Paul Lange <palango@gmx.de> - 1.1-3
Paul Lange 833bb5e
- Update libdir
Paul Lange 833bb5e
Paul Lange e34e1f7
* Fri Feb 10 2012 Paul Lange <palango@gmx.de> - 1.1-2
Paul Lange e34e1f7
- Add intltool to BuildRequires
Paul Lange e34e1f7
Paul Lange 347221c
* Fri Feb 10 2012 Paul Lange <palango@gmx.de> - 1.1-1
Paul Lange 347221c
- Update to 1.1
Paul Lange 347221c
3748d25
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
3748d25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3748d25
Paul Lange e582f15
* Thu Apr 28 2011 Paul Lange <palango@gmx.de> - 1.0-1
Paul Lange e582f15
- Upload right sources
Paul Lange e582f15
63bdc6a
* Tue Apr 19 2011 Dan HorĂ¡k <dan[at]danny.cz> - 0.8-2
63bdc6a
- updated the supported arch list
63bdc6a
Paul Lange 96bd44a
* Wed Apr 06 2011 Paul Lange <palango@gmx.de> - 0.8-1
Paul Lange 96bd44a
- Update to version 0.8
Paul Lange 96bd44a
Paul Lange 4ed60d5
* Thu Mar 03 2011 Paul Lange <palango@gmx.de> - 0.7-1
Paul Lange 4ed60d5
- Update to version 0.7
Paul Lange 4ed60d5
13d117b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
13d117b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
13d117b
Paul Lange e18d974
* Wed Jan 12 2011 Paul Lange <palango@gmx.de> - 0.6-1
Paul Lange e18d974
- Update to version 0.6
Paul Lange e18d974
Paul Lange d34eb12
* Thu Dec 09 2010 Paul Lange <palango@gmx.de> - 0.5-6
Paul Lange d34eb12
- Upload right sources
Paul Lange d34eb12
Paul Lange 44152e4
* Thu Dec 09 2010 Paul Lange <palango@gmx.de> - 0.5-5
Paul Lange 44152e4
- Fix build for x86_64
Paul Lange 44152e4
Paul Lange 8bfc628
* Wed Dec 08 2010 Paul Lange <palango@gmx.de> - 0.5-4
Paul Lange 8bfc628
- Fix issues from review
Paul Lange 8bfc628
Paul Lange 8bfc628
* Sun Dec 05 2010 Paul Lange <palango@gmx.de> - 0.5-3
Paul Lange 8bfc628
- Fix build for x86_64
Paul Lange 8bfc628
Paul Lange 8bfc628
* Wed Dec 01 2010 Paul Lange <palango@gmx.de> - 0.5-2
Paul Lange 8bfc628
- Fix rpmlint warnings
Paul Lange 8bfc628
Paul Lange 8bfc628
* Sat Nov 20 2010 Paul Lange <palango@gmx.de> - 0.5-1
Paul Lange 8bfc628
- update to version 0.5
Paul Lange 8bfc628
Paul Lange 8bfc628
* Sun Aug 01 2010 Paul Lange <palango@gmx.de> - 0.4-3
Paul Lange 8bfc628
- Fix links in /bin
Paul Lange 8bfc628
- Improve patch naming and add upstream links
Paul Lange 8bfc628
- Fix mimetype patch
Paul Lange 8bfc628
Paul Lange 8bfc628
* Thu Jul 29 2010 Paul Lange <palango@gmx.de> - 0.4-2
Paul Lange 8bfc628
- Fix icon cache handling
Paul Lange 8bfc628
- Add some Requires and BuildRequires
Paul Lange 8bfc628
- Add docs
Paul Lange 8bfc628
- Add patches from debian
Paul Lange 8bfc628
Paul Lange 8bfc628
* Sat May 08 2010 Paul Lange <palango@gmx.de> - 0.4-1
Paul Lange 8bfc628
- Initial packaging