source: projects/specs/tags/6_0_REL/m/mtpaint/mtpaint-vl.spec @ 3474

Revision 3474, 5.9 KB checked in by inagaki, 13 years ago (diff)

update: freeimage, koffice, mtpaint, openjpeg, poppler

Line 
1Summary:        Painting program for creating icons and pixel-based artwork
2Summary(ja):    アイコンやピクセルベースの描画向けのペイントプログラム
3Name:           mtpaint
4Version:        3.31
5Release:        2%{?_dist_release}
6License:        GPLv3+
7Group:          Applications/Graphics
8URL:            http://mtpaint.sourceforge.net/
9Source:         http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2
10Patch:          %{name}-3.19-xdg-open.patch
11#Patch1:                %{name}-3.19-openjpeg.patch
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14BuildRequires:  gtk2-devel zlib-devel
15BuildRequires:  libpng-devel giflib-devel libjpeg-devel libtiff-devel
16BuildRequires:  openjpeg-devel
17BuildRequires:  desktop-file-utils gettext
18
19%description
20mtPaint is a simple painting program designed for creating icons and
21pixel-based artwork. It can edit indexed palette or 24 bit RGB images
22and offers basic painting and palette manipulation tools. Its main
23file format is PNG, although it can also handle JPEG, GIF, TIFF, BMP,
24XPM, and XBM files.
25
26%description -l ja
27mtPaint はシンプルなアイコンやピクセルベースの画像の作成用に
28デザインされたペイントプログラムです。インデックスパレットや
2924ビットカラーの画像を編集することが可能で、基本的なペイント
30機能とパレットの編集ツールを備えています。ファイル形式は PNG
31の他にも、JPEG や GIF、TIFF、BMP、XPM、XBM等が扱えます。
32
33
34%prep
35%setup -q
36%patch -p1
37#%patch1 -p1
38
39# We have moved docs
40%{__sed} -i 's,"/usr/doc/mtpaint/index.html","%{_docdir}/%{name}-handbook-%{version}/index.html",' src/png.c
41
42%build
43# This is not a "normal" configure
44%configure cflags asneeded intl man gtk2 tiff jpeg GIF
45%{__make} %{?_smp_mflags}
46
47%install
48%{__rm} -rf %{buildroot}
49%{__make} install MT_PREFIX=%{buildroot}%{_prefix}            \
50                  MT_MAN_DEST=%{buildroot}%{_mandir}/man1     \
51                  MT_LANG_DEST=%{buildroot}%{_datadir}/locale \
52                  BIN_INSTALL=%{buildroot}%{_bindir}
53
54# install .desktop
55cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF
56[Desktop Entry]
57Version=1.0
58Encoding=UTF-8
59Type=Application
60Name=%{name}
61GenericName=Image Editor
62GenrricName[ja]=イメージエディタ
63Comment=Painting program to create pixel art and manipulate digital photos
64Comment[ja]=ピクセルアートやデジタル写真の加工を行います
65TryExec=%{name}
66Exec=%{_bindir}/%{name} %%F
67Icon=mtpaint
68Terminal=false
69Categories=Graphics;2DGraphics;RasterGraphics;GTK;
70MimeType=image/bmp;image/x-bmp;image/gif;image/jpeg;\
71image/jpg;image/pjpeg;image/png;image/x-png;image/tiff;\
72image/x-tga;image/xbm;image/x-xbm;image/x-xbitmap;\
73image/xpm;image/x-xpm;image/x-xpixmap;
74EOF
75
76%find_lang %{name}
77
78%clean
79%{__rm} -rf %{buildroot}
80
81%post
82touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
83if [ -x %{_bindir}/update-desktop-database ] ; then
84  %{_bindir}/update-desktop-database &> /dev/null
85fi
86exit 0
87
88%postun
89if [ $1 -eq 0 ] ; then
90  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
91  gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
92fi
93if [ -x %{_bindir}/update-desktop-database ] ; then
94  %{_bindir}/update-desktop-database &> /dev/null
95fi
96exit 0
97
98%posttrans
99gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
100
101%files -f %{name}.lang
102%defattr(-, root, root, -)
103%doc COPYING NEWS README
104%{_mandir}/man1/%{name}*
105%{_bindir}/%{name}
106%{_datadir}/applications/*.desktop
107%{_datadir}/pixmaps/%{name}.png
108
109%changelog
110* Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.31-2
111- rebuilt with openjpeg-1.4
112
113* Thu Mar 11 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 3.31-1
114- initial build for Vine Linux based on fedora development
115
116* Wed Aug 19 2009 Christoph Wickert <cwickert@fedoraproject.org> - 3.31-1
117- Update to 3.31
118- Make handbook package noarch
119- New gtk-update-icon-cache scriptlets
120
121* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21-3
122- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
123
124* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21-2
125- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
126
127* Fri Aug 15 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.21-1
128- 3.21
129- add %%defattr on handbook
130
131* Sat Feb  9 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.20-3
132- Rebuild
133
134* Wed Jan 23 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.20-2
135- Unzip by %%setup
136- Simplify %%post/postun
137- Added COPYING to handbook
138
139* Sat Dec 29 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.20-1
140- 3.20
141- include patch now upstream
142- handbook patch now upstream
143
144* Wed Dec 19 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.20-0.1.rc2
145- 3.20RC2
146- disable openjpeg support
147- icon and desktop file now upstream
148
149* Sun Dec 16 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.19-1
150- upgrade to 3.19
151- misc fixes to be rpmlint clean
152- fix debuginfo package
153- handle translations
154- fix license
155- compile with correct flags
156- add patch to compile
157- add handbook subpackage (and fix app to find docs)
158- add xdg-open patch
159- dont' use %%makeinstall
160- add icon and mimetypes to desktop file
161
162* Mon Apr 16 2007 Dries Verachtert <dries@ulyssis.org> - 3.11-1 - 5280/dries
163- Updated to release 3.11.
164
165* Sun Nov 12 2006 Dries Verachtert <dries@ulyssis.org> - 3.02-1
166- Updated to release 3.02.
167
168* Mon Aug 07 2006 Dries Verachtert <dries@ulyssis.org> - 3.01-1
169- Updated to release 3.01.
170
171* Wed May 31 2006 Dries Verachtert <dries@ulyssis.org> - 2.31-1
172- Updated to release 2.31.
173
174* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.30-1.2
175- Rebuild for Fedora Core 5.
176
177* Wed Mar 01 2006 Dries Verachtert <dries@ulyssis.org> - 2.30-1
178- Updated to release 2.30.
179
180* Sun Jan 01 2006 Dries Verachtert <dries@ulyssis.org> - 2.20-1
181- Updated to release 2.20.
182
183* Mon Nov 21 2005 Dries Verachtert <dries@ulyssis.org> - 2.10-1
184- Updated to release 2.10.
185
186* Sat Sep 24 2005 Dries Verachtert <dries@ulyssis.org> - 2.03-1
187- Updated to release 2.03.
188
189* Tue Sep 20 2005 Dries Verachtert <dries@ulyssis.org> - 2.02-1
190- Initial package.
191
Note: See TracBrowser for help on using the repository browser.