LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > unSpawn
User Name
Password

Notices

Rate this Entry

Mypaint-0.5.0 .spec

Posted 01-05-2011 at 08:41 AM by unSpawn

Mypaint is a open-source graphics application for use with a tablet. It kind of looks like Fractal Design Painter must have looked at alpha 0.1 stage. Nonetheless worth a try building a package. Here's a spec built, tested and installed on Centos 5.5 Intel. Note it doesn't build for x86_64 as I have none:
Code:
%define debug_packages  %{nil}
%define debug_package %{nil}
%define name mypaint
%define ver 0.5.0
%define rel 1
Name: %{name}
Summary: %{name}, a drawing program
Version: %{ver}
Release: %{rel}
License: GPL
Group: Graphics
Source: %{name}-%{ver}.tar.bz2
Prereq: gtk2 >= 2.10.4-21, python >= 2.4.3-27, pygtk2 >= 2.10.1-12 
BuildRequires: python-devel, gtk2-devel, pygtk2-devel
Provides: %{name}
BuildRoot: %{_tmppath}/%{name}-%{version}

%description 
A drawing program with dynamic brushes for graphic tablets
A pressure sensitive input device (graphic tablet) is highly recommended.
Project homepage:
http://people.ee.ethz.ch/~mrenold/mypaint/
http://old.homeip.net/martin/painting/
The license for this program is in the file COPYING.

%prep
%setup 
%build
%configure
make
%install
if [ "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}-%{version}" ]; then
        rm -rf $RPM_BUILD_ROOT
        make DESTDIR=$RPM_BUILD_ROOT install
fi
find $RPM_BUILD_ROOT -not -type d -printf "%%%attr(%%m,root,root) %%p\n" | sed -e "s|$RPM_BUILD_ROOT||g" > %{_tmppath}/%{name}_contents.txt

%clean
if [ "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}-%{version}" ]; then
        rm -rf $RPM_BUILD_ROOT
fi

%files -f %{_tmppath}/%{name}_contents.txt
%defattr(-,root,root)
%doc README COPYING PLAN

%changelog
* Wed Jan 01 2011 %{packager} - %{version}-%{release}
- Init spec.
Posted in Uncategorized
Views 926 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration