source: projects/specs/trunk/x/xarchiver/xarchiver-vl.spec @ 9400

Revision 9400, 8.9 KB checked in by inagaki, 9 years ago (diff)

2015-03-01 Ryoichi INAGAKI <ryo1@…>

  • mousepad, parole, xarchiver, xfburn, xfce4-screenshooter, xfce4-taskmanager: updated
  • orage, thunar-*-plugin, xfce4-dict, xfce4-mixer, xfce4-notifyd, xfce4-terminal: rebuilt
  • ristretto: NEW
  • xfce4-appfinder: enabled gtk3


Line 
1Name:           xarchiver
2Version:        0.5.4
3Release:        1%{?_dist_release}
4Summary:        Archive manager for Xfce
5Summary(ja):    Xfce のアーカイブマネージャー
6
7Group:          Applications/Archiving
8License:        GPLv2+
9URL:            http://xarchiver.sourceforge.net/
10Source0:        http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2
11
12Patch0:         xarchiver-0.5.2-no-donators-menu.patch
13Patch1:         xarchiver-0.5.2-default-archive-format.patch
14# add_xz_support.patch by Robby Workman taken from
15# http://slackbuilds.org/slackbuilds/13.1/system/xarchiver/xarchiver-0.5.2-add_xz_support.patch
16# sent upstream through
17# https://sourceforge.net/tracker/?func=detail&aid=2847624&group_id=140153&atid=745600
18Patch2:         xarchiver-0.5.2-add_xz_support.patch
19# rpm2cpio.patch by Daniel Hokka Zakrisson
20# taken from https://bugzilla.redhat.com/show_bug.cgi?id=577480
21# sent upstream through
22# https://sourceforge.net/tracker/?func=detail&aid=3310768&group_id=140153&atid=745602
23Patch3:         xarchiver-0.5.2-rpm2cpio.patch
24# segfault-open-with.patch by Bastiaan Jacques
25# taken from https://bugzilla.redhat.com/show_bug.cgi?id=690012
26# sent upstream through
27# https://sourceforge.net/tracker/?func=detail&aid=3310778&group_id=140153&atid=745600
28Patch4:         xarchiver-0.5.2-segfault-open-with.patch
29# fix-7z-support.patch by taken from
30# https://sourceforge.net/tracker/?func=detail&aid=3137589&group_id=140153&atid=745602
31Patch5:         xarchiver-0.5.2-fix_7z_support.patch
32# rhbz#784075 - extraction fails when the Drag'n'Drop target path contains spaces
33Patch6:         xarchiver-0.5.2-drag-n-drop_escaped_path.patch
34
35BuildRoot:      %{_tmppath}/%{name}-%{version}-root
36
37BuildRequires:  desktop-file-utils
38BuildRequires:  gettext
39BuildRequires:  glib2-devel >= 2.10.0
40BuildRequires:  gtk2-devel >= 2.10
41BuildRequires:  intltool >= 0.31
42BuildRequires:  libtool
43BuildRequires:  libxml2-devel
44Requires:       unarj, binutils, bzip2, cpio, gzip, xdg-utils, tar, unzip, zip
45
46# is it useful?
47Requires:       thunar-archive-plugin
48
49%description
50Xarchiver is a lightweight GTK2 only frontend for manipulating 7z, bzip2,
51gzip, iso, rar, lha, tar, zip, RPM and deb files. It allows you to create
52archives and add, extract, and delete files from them. Password protected
53archives in the 7z, rar, and zip formats are supported.
54
55
56%prep
57%setup -q
58# fix spurious executable permissions of some debug files
59chmod -x src/mime.*
60#patch0 -p2 -b .no-donators-menu
61#patch1 -p1 -b .default-archive-format
62#patch2 -p1 -b .add_xz_support
63#patch3 -p1 -b .rpm2cpio
64#patch4 -p1 -b .segfault-open-with
65#patch5 -p1 -b .fix_7z_support
66#patch6 -p1 -b .drag-n-drop_escaped
67
68%build
69%configure
70make %{?_smp_mflags}
71
72%install
73rm -rf $RPM_BUILD_ROOT
74make install DESTDIR=$RPM_BUILD_ROOT
75
76# We need to install xarchiver.tap as fedora-xarchiver.tap, because the name
77# has to match the basename of the desktop-file in %{_datadir}/applications.
78rm $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/xarchiver.tap
79install -p -m 755 xarchiver.tap \
80   $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/vine-xarchiver.tap
81
82%find_lang %{name}
83desktop-file-install --vendor vine                         \
84        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
85        --add-category="Utility"                            \
86        --add-mime-type="application/x-xz"                      \
87        --add-mime-type="application/x-xz-compressed-tar"       \
88        --remove-mime-type="multipart/x-zip"                    \
89        --delete-original                                       \
90        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
91
92# remove duplicate docs
93rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
94
95
96%post
97touch --no-create %{_datadir}/icons/hicolor
98if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
99    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
100fi
101update-desktop-database &> /dev/null || :
102
103
104%postun
105touch --no-create %{_datadir}/icons/hicolor
106if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
107  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
108fi
109update-desktop-database &> /dev/null || :
110
111
112%clean
113rm -rf $RPM_BUILD_ROOT
114
115
116%files -f %{name}.lang
117%defattr(-,root,root,-)
118%doc AUTHORS COPYING ChangeLog NEWS README TODO
119%doc %{_docdir}/%{name}/
120%{_bindir}/%{name}
121%{_datadir}/applications/vine-%{name}.desktop
122%{_datadir}/icons/hicolor/*/apps/%{name}.png
123%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
124%dir %{_datadir}/pixmaps/%{name}/
125%{_datadir}/pixmaps/%{name}/%{name}*.png
126%dir %{_libexecdir}/thunar-archive-plugin/
127%{_libexecdir}/thunar-archive-plugin/vine-xarchiver.tap
128
129
130%changelog
131* Sun Mar  1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.5.4-1
132- updated to 0.5.4
133- dropt patches
134- added R: thunar-archive-plugin
135
136* Sat May 03 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-6
137- added patch6 from Fedora development
138
139* Wed Jul 13 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-5
140- re-imported Fedora development patches
141
142* Fri Jun 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-4
143- added patch0,1,2,3,4,5 from Fedora development
144- added BuildRequires: libtool
145
146* Fri May 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-3
147- fixed desktop-file-install --add-category section
148- added BuildRequires: glib2-devel >= 2.10.0 intltool >= 0.31
149
150* Sun Apr 5 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-2vl5
151- fixed BuildRoot tag
152
153* Mon Mar 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1vl5
154- initial release for VineSeed (import Fedora Package)
155
156* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-3
157- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
158
159* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-2
160- Include HTML documentation
161
162* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
163- Update to 0.5.2
164
165* Sun Nov 09 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
166- Update to 0.5.1 stable release
167
168* Sun Oct 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.rc1
169- Update to 0.5.0rc1
170- Fix crash when opening zipped PDF files (#467619)
171- Update gtk-icon-cache scriptlets
172
173* Sat Oct 11 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta2
174- Update to 0.5.0beta2
175
176* Sun Aug 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta1
177- Update to 0.5.0beta1
178- Remove xdg-open.patch as xarchiver now uses xdg-open by default
179
180* Sat Apr 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.6.20070103svn24249
181- Remove additional mime-types from desktop-file-install to make sure we don't break livecds
182
183* Fri Mar 14 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.5.20070103svn24249
184- Use xdg-open instead of htmlview (#437554)
185
186* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.9-0.4.20070103svn24249
187- Autorebuild for GCC 4.3
188
189* Tue Aug 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.3.20070103svn24249
190- Rebuild for BuildID feature
191- Update license tag
192
193* Fri Mar 02 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.2.20070103svn24249
194- Downgrade to SVN release 24249 in order to fix #230154 temporarily.
195
196* Sun Jan 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070128svn24772
197- Update to SVN release 24772 of January 28th 2007.
198
199* Wed Jan 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070103svn
200- Update to SVN r24249 of January 3rd 2007.
201- Add mimetype application/x-deb again since opening of debs now is secure.
202
203* Wed Dec 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20061213svn
204- Update to SVN r24096 of December 13th 2006.
205
206* Wed Dec 06 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-3
207- Add deb.patch to prevent opening of .a files as debs.
208- Don't add mimetype for x-ar (archiver can't handle ar archive).
209
210* Wed Nov 29 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-2
211- Add htmlview.patch.
212
213* Tue Nov 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-1
214- Update to 0.4.6.
215- Update %%description.
216- Require binutils, cpio and htmlview.
217- Add mimetypes application/x-ar, application/x-cd-image and application/x-deb.
218
219* Mon Nov 27 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.4-1
220- Update to 0.4.4.
221
222* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.3.rc2
223- Install xarchiver.png also in %%{_datadir}/icons/hicolor/48x48/apps/.
224
225* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.2.rc2
226- Drop subpackage and own %%{_libexecdir}/thunar-archive-plugin/ (#198098).
227
228* Sun Nov 12 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.1.rc2
229- Update to 0.4.2.RC2.
230
231* Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
232- Update to 0.4.0.
233
234* Tue Sep 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.9.2-0.beta2
235- Initial package.
Note: See TracBrowser for help on using the repository browser.