source: projects/specs/trunk/m/mtpaint/mtpaint-vl.spec @ 9347

Revision 9347, 6.1 KB checked in by inagaki, 9 years ago (diff)

2015-02-10 Ryoichi INAGAKI <ryo1@…>

  • djview, mtpaint, mtpaint-handbook, wmakerconf: updated


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