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

Revision 542, 5.8 KB checked in by kazutaka, 14 years ago (diff)

Import from latest srpm

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