bdcf521
Name:           xarchiver
Jaromir Capik efba230
Version:        0.5.4
889aaa9
Release:        11%{?dist}
bdcf521
Summary:        Archive manager for Xfce
bdcf521
6d253f1
License:        GPLv2+
bdcf521
URL:            http://xarchiver.xfce.org/
05b96ae
Source0:        http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2
Jaromir Capik efba230
Jaromir Capik efba230
Patch0:         xarchiver-0.5.4-version-fix.patch
97263ba
# from github.com/ib/xarchiver/commit/43896debcea363d7dfa17290e9ed8462af0375a3
97263ba
Patch1:         xarchiver-0.5.4-dnd-segfault.patch
Jaromir Capik 9bcbb09
bdcf521
BuildRequires:  gtk2-devel, libxml2-devel, gettext, desktop-file-utils
0ffeda2
BuildRequires:  xfce4-dev-tools >= 4.3.90.2
Jaromir Capik 8197551
BuildRequires:  autoconf >= 2.69
Jaromir Capik 8197551
BuildRequires:  libtool
Jaromir Capik 8197551
BuildRequires:  automake
Jaromir Capik 8197551
BuildRequires:  intltool
Jaromir Capik 8197551
86a1285
Requires:       arj, binutils, bzip2, cpio, gzip, xdg-utils, tar, unzip, zip
bdcf521
bdcf521
%description
Jaromir Capik 8197551
Xarchiver is a lightweight GTK2 only frontend for manipulating 7z, arj, bzip2,
Jaromir Capik 8197551
gzip, iso, rar, lha, tar, zip, RPM and deb files. It allows you to create
Jaromir Capik 8197551
archives and add, extract, and delete files from them. Password protected
bdcf521
archives in the arj, 7z, rar, and zip formats are supported.
bdcf521
bdcf521
bdcf521
%prep
05b96ae
%setup -q
Jaromir Capik efba230
%patch0 -p1
97263ba
%patch1 -p1
05b96ae
# fix spurious executable permissions of some debug files
05b96ae
chmod -x src/mime.*
Jaromir Capik efba230
bdcf521
bdcf521
%build
Jaromir Capik 8197551
autoreconf -vif
bdcf521
%configure
bdcf521
make %{?_smp_mflags}
bdcf521
bdcf521
bdcf521
%install
65f330f
make install DESTDIR=%{buildroot} INSTALL="install -p"
bdcf521
65f330f
%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
65f330f
# On Fedora < 19 we need to install file-roller.tap as gnome-file-roller.tap,
65f330f
# because the name # has to match the basename of the desktop-file in
65f330f
# %%{_datadir}/applications.
65f330f
rm %{buildroot}%{_libexecdir}/thunar-archive-plugin/xarchiver.tap
bdcf521
install -p -m 755 xarchiver.tap \
65f330f
   %{buildroot}%{_libexecdir}/thunar-archive-plugin/fedora-xarchiver.tap
65f330f
%endif
bdcf521
bdcf521
%find_lang %{name}
65f330f
desktop-file-install --delete-original \
65f330f
    --dir %{buildroot}%{_datadir}/applications \
65f330f
    --add-category="Compression" \
65f330f
    --add-mime-type="application/x-xz" \
65f330f
    --add-mime-type="application/x-xz-compressed-tar" \
65f330f
    --remove-mime-type="multipart/x-zip" \
65f330f
    %if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
65f330f
    --vendor fedora \
65f330f
    %endif
65f330f
    %{buildroot}%{_datadir}/applications/%{name}.desktop
bdcf521
05b96ae
# remove duplicate docs
65f330f
rm %{buildroot}%{_docdir}/%{name}/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
05b96ae
bdcf521
%files -f %{name}.lang
bdcf521
%doc AUTHORS COPYING ChangeLog NEWS README TODO
7d1241c
%doc %{_docdir}/%{name}/
bdcf521
%{_bindir}/%{name}
65f330f
%{_datadir}/applications/*%{name}.desktop
65f330f
%{_datadir}/icons/hicolor/*/*/*
65f330f
%{_datadir}/pixmaps/%{name}/
65f330f
%{_libexecdir}/thunar-archive-plugin/
bdcf521
bdcf521
bdcf521
%changelog
889aaa9
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-11
889aaa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
889aaa9
46773ed
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-10
46773ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
46773ed
97263ba
* Thu Oct 04 2018 Niels de Vos <devos@fedoraproject.org> - 0.5.4-9
97263ba
- prevent segfault on certain drag-and-drop actions (#1635869)
97263ba
bc26d72
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-8
bc26d72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bc26d72
29b719d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-7
29b719d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
29b719d
f788a4a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-6
f788a4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f788a4a
0c3f607
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-5
0c3f607
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0c3f607
a3fbf6e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-4
a3fbf6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a3fbf6e
4c053ed
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-3
4c053ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4c053ed
36acda8
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
36acda8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
36acda8
Jaromir Capik efba230
* Tue Mar 31 2015 Jaromir Capik <jcapik@redhat.com> - 0.5.4-1
Jaromir Capik efba230
- Update to 0.5.4 (#1147466)
Jaromir Capik efba230
4add549
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.5.2-22
4add549
- Rebuilt for Fedora 23 Change
4add549
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
4add549
fe18ace
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-21
fe18ace
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fe18ace
db50674
* Thu Jun 19 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.2-20
db50674
- Fix FTBFS with -Werror=format-security (#1037390, #1107209)
db50674
9108262
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-19
9108262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9108262
87e4d68
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-18
87e4d68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
87e4d68
65f330f
* Fri May 10 2013 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-17
65f330f
- Fix thunar-archive-plugin integration (#961626)
65f330f
- Conditionalize vendor tag
65f330f
Jaromir Capik 8197551
* Thu Apr 04 2013 Jaromir Capik <jcapik@redhat.com> - 0.5.2-16
Jaromir Capik 8197551
- aarch64 support (#926742)
Jaromir Capik 8197551
- fixing bogus date in the changelog
Jaromir Capik 8197551
Parag Nemade 82c11b9
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 0.5.2-15
Parag Nemade 82c11b9
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade 82c11b9
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade 82c11b9
70a7960
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-14
70a7960
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
70a7960
Jaromir Capik 9bcbb09
* Thu Jan 26 2012 Jaromir Capik <jcapik@redhat.com> - 0.5.2-13
Jaromir Capik 9bcbb09
- Fix extraction failures when the Drag'n'Drop target path contains spaces (#784075)
Jaromir Capik 9bcbb09
e40cf84
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-12
e40cf84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e40cf84
d796cf0
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.5.2-11
d796cf0
- Rebuild for new libpng
d796cf0
5e8f4ba
* Sun Jun 19 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-10
5e8f4ba
- Fix xz MIME types
5e8f4ba
b19f690
* Sat Jun 11 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-9
b19f690
- Fix xz support. A big thanks to Daniel Hokka Zakrisson (#577480)
b19f690
3493982
* Thu Jun 02 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-8
3493982
- Fix 7zip. Encrypted archives are still not supported.
3493982
35b346d
* Thu Jun 02 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-7
3493982
- Add xz support. Thanks to Robby Workman and Daniel Hokka Zakrisson (#577480)
35b346d
- Remove mime-type multipart/x-zip (#666066)
3493982
- Fix crash in IA__gtk_tree_model_get_valist. Thanks to Bastiaan Jacques (#690012)
35b346d
- Update icon-cache scriptlets
35b346d
bd889b3
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-6
bd889b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bd889b3
fa817ee
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-5
fa817ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fa817ee
d7b070f
* Sun Mar 22 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-4
d7b070f
- Gui fixes (#491115)
d7b070f
a75951f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-3
a75951f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a75951f
7d1241c
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-2
7d1241c
- Include HTML documentation
7d1241c
05b96ae
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
05b96ae
- Update to 0.5.2
05b96ae
05b96ae
* Sun Nov 09 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
05b96ae
- Update to 0.5.1 stable release
05b96ae
05b96ae
* Sun Oct 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.rc1
05b96ae
- Update to 0.5.0rc1
05b96ae
- Fix crash when opening zipped PDF files (#467619)
05b96ae
- Update gtk-icon-cache scriptlets
05b96ae
05b96ae
* Sat Oct 11 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta2
05b96ae
- Update to 0.5.0beta2
05b96ae
05b96ae
* Sun Aug 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta1
05b96ae
- Update to 0.5.0beta1
05b96ae
- Remove xdg-open.patch as xarchiver now uses xdg-open by default
05b96ae
05b96ae
* Sat Apr 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.6.20070103svn24249
75994ed
- Remove additional mime-types from desktop-file-install to make sure we don't break livecds
75994ed
05b96ae
* Fri Mar 14 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.5.20070103svn24249
075c455
- Use xdg-open instead of htmlview (#437554)
86a1285
84ff5f9
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.9-0.4.20070103svn24249
84ff5f9
- Autorebuild for GCC 4.3
84ff5f9
05b96ae
* Tue Aug 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.3.20070103svn24249
6d253f1
- Rebuild for BuildID feature
6d253f1
- Update license tag
6d253f1
05b96ae
* Fri Mar 02 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.2.20070103svn24249
1c78e29
- Downgrade to SVN release 24249 in order to fix #230154 temporarily.
1c78e29
05b96ae
* Sun Jan 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070128svn24772
1c78e29
- Update to SVN release 24772 of January 28th 2007.
f7e81e1
05b96ae
* Wed Jan 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070103svn
0ffeda2
- Update to SVN r24249 of January 3rd 2007.
0ffeda2
- Add mimetype application/x-deb again since opening of debs now is secure.
0ffeda2
05b96ae
* Wed Dec 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20061213svn
bdcf521
- Update to SVN r24096 of December 13th 2006.
bdcf521
05b96ae
* Wed Dec 06 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-3
bdcf521
- Add deb.patch to prevent opening of .a files as debs.
bdcf521
- Don't add mimetype for x-ar (archiver can't handle ar archive).
bdcf521
05b96ae
* Wed Nov 29 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-2
bdcf521
- Add htmlview.patch.
bdcf521
05b96ae
* Tue Nov 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-1
bdcf521
- Update to 0.4.6.
0ffeda2
- Update %%description.
bdcf521
- Require binutils, cpio and htmlview.
bdcf521
- Add mimetypes application/x-ar, application/x-cd-image and application/x-deb.
bdcf521
Jaromir Capik 8197551
* Mon Nov 27 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.4-1
bdcf521
- Update to 0.4.4.
bdcf521
05b96ae
* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.3.rc2
bdcf521
- Install xarchiver.png also in %%{_datadir}/icons/hicolor/48x48/apps/.
bdcf521
05b96ae
* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.2.rc2
bdcf521
- Drop subpackage and own %%{_libexecdir}/thunar-archive-plugin/ (#198098).
bdcf521
05b96ae
* Sun Nov 12 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.1.rc2
bdcf521
- Update to 0.4.2.RC2.
bdcf521
05b96ae
* Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
bdcf521
- Update to 0.4.0.
bdcf521
05b96ae
* Tue Sep 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.9.2-0.beta2
bdcf521
- Initial package.