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

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