[pinta] Initial import (#590244)

palango palango at fedoraproject.org
Thu Dec 9 12:00:01 UTC 2010


commit 8bfc628c4cbec1ef354f6890edba89b97dd49116
Author: Paul Lange <paul at paullaptop.(none)>
Date:   Thu Dec 9 12:59:52 2010 +0100

    Initial import (#590244)

 .gitignore |    1 +
 pinta.spec |  120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources    |    1 +
 3 files changed, 122 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d645ac4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pinta-0.5.tar.gz
diff --git a/pinta.spec b/pinta.spec
new file mode 100644
index 0000000..c0fc198
--- /dev/null
+++ b/pinta.spec
@@ -0,0 +1,120 @@
+%global debug_package %{nil}
+
+Name:		pinta
+Version:	0.5
+Release:	4%{?dist}
+Summary:	An easy to use drawing and image editing program
+
+Group:		Applications/Multimedia
+
+# the code is licensed under the MIT license while the icons are licensed as CC-BY
+License:	MIT and CC-BY
+URL:		http://pinta-project.com/
+
+Source0:	http://github.com/downloads/jpobst/Pinta/%{name}-%{version}.tar.gz
+      
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# We dont have mono on these arches:
+ExcludeArch: sparc64
+
+Requires:	hicolor-icon-theme
+BuildRequires:	mono-devel, gtk-sharp2-devel, gettext, desktop-file-utils
+
+%description
+Pinta is an image drawing/editing program.
+It's goal is to provide a simplified alternative to GIMP for casual users.
+
+%prep
+%setup -q
+
+chmod -x readme.txt
+chmod -x license-mit.txt
+chmod -x license-pdn.txt
+chmod -x todo.txt
+chmod -x xdg/pinta.1
+chmod -x xdg/pinta.desktop
+chmod -x xdg/pinta.xpm
+chmod -x xdg/scalable/pinta.svg
+
+sed -i 's/\r//' readme.txt
+sed -i 's/\r//' license-mit.txt
+sed -i 's/\r//' license-pdn.txt
+sed -i 's/\r//' todo.txt
+sed -i 's/\r//' pinta.in
+sed -i 's/\r//' xdg/pinta.desktop
+sed -i 's/\r//' xdg/pinta.xpm
+sed -i 's/\r//' xdg/pinta.1
+sed -i 's/\r//' xdg/scalable/pinta.svg
+
+sed -i -e 's!$(InstallPrefix)/lib/!$(InstallPrefix)/%{_lib}/!' Pinta/Pinta.csproj
+sed -i -e 's!@prefix@/lib/!%{_libdir}/!' pinta.in
+sed -i -i 's!$(InstallPrefix)/lib/!$(InstallPrefix)/%{_lib}/!' Pinta.Install.proj
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} INSTALL='install -p'
+
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+
+%find_lang %name
+  
+%post
+update-desktop-database &> /dev/null ||:
+
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+update-desktop-database &> /dev/null || :
+
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%clean
+rm -rf %{buildroot}
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc todo.txt readme.txt license-mit.txt license-pdn.txt
+%{_libdir}/%{name}
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/*/%{name}.*
+%{_datadir}/man/man1/%{name}*
+%{_datadir}/pixmaps/%{name}*
+
+%changelog
+* Wed Dec 08 2010 Paul Lange <palango at gmx.de> - 0.5-4
+- Fix issues from review
+
+* Sun Dec 05 2010 Paul Lange <palango at gmx.de> - 0.5-3
+- Fix build for x86_64
+
+* Wed Dec 01 2010 Paul Lange <palango at gmx.de> - 0.5-2
+- Fix rpmlint warnings
+
+* Sat Nov 20 2010 Paul Lange <palango at gmx.de> - 0.5-1
+- update to version 0.5
+
+* Sun Aug 01 2010 Paul Lange <palango at gmx.de> - 0.4-3
+- Fix links in /bin
+- Improve patch naming and add upstream links
+- Fix mimetype patch
+
+* Thu Jul 29 2010 Paul Lange <palango at gmx.de> - 0.4-2
+- Fix icon cache handling
+- Add some Requires and BuildRequires
+- Add docs
+- Add patches from debian
+
+* Sat May 08 2010 Paul Lange <palango at gmx.de> - 0.4-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..d069fdb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e7bbee973f9dcf86b4c9a5a232f513f9  pinta-0.5.tar.gz


More information about the scm-commits mailing list