/[pkgs]/rpms/comix/F-8/comix.spec
ViewVC logotype

Contents of /rpms/comix/F-8/comix.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed Jul 9 15:51:05 2008 UTC (16 months, 2 weeks ago) by mtasaka
Branch: MAIN
CVS Tags: comix-3_6_5-1_fc8, HEAD
Changes since 1.12: +6 -6 lines
* Thu Jul 10 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.5-1
- 3.6.5 (2 patches applied upstream)
1 Name: comix
2 Version: 3.6.5
3 Release: 1%{?dist}
4 Summary: A user-friendly, customizable image viewer
5
6 Group: Amusements/Graphics
7 URL: http://comix.sourceforge.net/
8 License: GPLv2+
9 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 BuildArch: noarch
13 BuildRequires: pygtk2
14 BuildRequires: python-imaging
15 BuildRequires: desktop-file-utils
16 BuildRequires: %{_bindir}/jpegtran
17 Requires: pygtk2
18 Requires: python-imaging
19 Requires: %{_bindir}/jpegtran
20 Requires(pre): GConf2
21 Requires(preun): GConf2
22 Requires(post): GConf2
23
24 %description
25 Comix is a user-friendly, customizable image viewer.
26 It is specifically designed to handle comic books, but
27 also serves as a generic viewer. It reads images in ZIP,
28 RAR or tar archives (also gzip or bzip2 compressed) as
29 well as plain image files. It is written in Python and
30 uses GTK+ through the PyGTK bindings.
31
32 %prep
33 %setup -q
34
35 %build
36 %{__sed} -i -e 's|shutil.copy|shutil.copy2|' install.py
37
38 %{__sed} -e 's|\r||g' COPYING > COPYING.tmp && \
39 ( touch -r COPYING COPYING.tmp ; %{__mv} -f COPYING.tmp COPYING )
40 %{__rm} -f COPYING.tmp
41
42 %install
43 %{__rm} -rf $RPM_BUILD_ROOT
44 %{__mkdir_p} $RPM_BUILD_ROOT%{_prefix}
45
46 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
47 %{__python} install.py --installdir $RPM_BUILD_ROOT%{_prefix} install
48
49 %{__sed} -i -e 's|comix.png|comix|' \
50 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
51 desktop-file-install \
52 --vendor fedora \
53 --delete-original \
54 --remove-category Application \
55 --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
56 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
57
58 %{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/mime/
59 %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mime/packages
60 %{__install} -c -p -m644 mime/comix.xml \
61 $RPM_BUILD_ROOT%{_datadir}/mime/packages/%{name}.xml
62
63 %{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
64 %{__install} -c -p -m644 mime/comicbook.schemas \
65 $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/%{name}.schemas
66
67 %find_lang %{name}
68
69 %clean
70 %{__rm} -rf $RPM_BUILD_ROOT
71
72 %pre
73 [ "$1" -gt 1 ] || exit 0
74
75 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
76 gconftool-2 --makefile-uninstall-rule \
77 %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null
78
79 # If the schema file has ever been renamed::
80 # gconftool-2 --makefile-uninstall-rule \
81 # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null
82 exit 0
83
84 %post
85 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
86 gconftool-2 --makefile-install-rule \
87 %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null
88
89 touch --no-create %{_datadir}/icons/hicolor
90 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
91
92 update-desktop-database &> /dev/null
93 update-mime-database %{_datadir}/mime &> /dev/null
94
95 exit 0
96
97 %preun
98 [ "$1" -eq 0 ] || exit 0
99
100 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
101 gconftool-2 --makefile-uninstall-rule \
102 %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null
103
104 exit 0
105
106 %postun
107 touch --no-create %{_datadir}/icons/hicolor
108 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
109
110 update-desktop-database &> /dev/null
111 update-mime-database %{_datadir}/mime &> /dev/null
112
113 exit 0
114
115 %files -f %{name}.lang
116 %defattr(-,root,root,-)
117 %doc COPYING ChangeLog README
118
119 %{_sysconfdir}/gconf/schemas/%{name}.schemas
120
121 %{_bindir}/*
122
123 %{_datadir}/applications/fedora-%{name}.desktop
124 %{_datadir}/mime/packages/%{name}.xml
125
126 %{_mandir}/man1/*
127
128 %{_datadir}/icons/hicolor/*/apps/%{name}*
129 %{_datadir}/pixmaps/%{name}.png
130 %dir %{_datadir}/pixmaps/%{name}
131 %{_datadir}/pixmaps/%{name}/*.png
132
133
134 %changelog
135 * Thu Jul 10 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.5-1
136 - 3.6.5 (2 patches applied upstream)
137
138 * Thu Apr 3 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.4-6
139 - Second patch for bug 430635
140 Use tempfile.mkdtemp() for multiple user race condition
141 (tagged as CVE-2008-1796)
142
143 * Wed Apr 2 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.4-4
144 - First patch for bug 430635
145 Replace os.popen() with subprocess.Popen() to handle hostile filename
146 properly (CVE-2008-1568)
147
148 * Wed Dec 5 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.4-3
149 - Fix icon path in desktop file for desktop-file-utils 0.14+
150
151 * Mon Aug 20 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.4-2
152 - Now %%_sysconfdir/gconf{,/schemas} are owned by GConf2 (#233756)
153
154 * Fri Aug 3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.4-1.dist.1
155 - License update
156
157 * Mon May 28 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.4-1
158 - 3.6.4
159
160 * Sat Mar 17 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.3-1
161 - 3.6.3
162
163 * Wed Jan 31 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.2-2
164 - Surely remove ja.po, upstream included it.
165
166 * Wed Jan 31 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.2-1
167 - 3.6.2
168
169 * Wed Jan 31 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.1-2
170 - Add Japanese translation
171
172 * Thu Oct 19 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6.1-1
173 - 3.6.1
174
175 * Fri Oct 06 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6-2
176 - Specify URL.
177
178 * Fri Oct 06 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.6-1
179 - Initial packaging, importing to Fedora extras.

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2