adb72cf
# Multiple files refers to the name "4Pane", not "4pane", so
adb72cf
# let's use 4Pane as %%{name}
adb72cf
adb72cf
# Explicitly declare this, as this package
adb72cf
# really expects this
adb72cf
# (expanded afterwards, use %%define)
adb72cf
%define	_docdir_fmt	%{NAME}
adb72cf
adb72cf
Name:			4Pane
c98cae7
Version:		8.0
1de491c
Release:		8%{?dist}
adb72cf
Summary:		Multi-pane, detailed-list file manager
adb72cf
1de491c
# Overall		GPL-3.0-only
1de491c
# 4Pane.appdata.xml	CC0-1.0
1de491c
# Accelerators.cpp and etc		LGPL-2.0-or-later (wxWindows)
1de491c
# sdk/bzip/LICENSE	bzip2-1.0.6 (unused)
1de491c
# SPDX confirmed
1de491c
License:		GPL-3.0-only AND LGPL-2.0-or-later AND CC0-1.0
adb72cf
URL:			http://www.4pane.co.uk/
adb72cf
Source0:		http://downloads.sourceforge.net/fourpane/4pane-%{version}.tar.gz
eff3b1f
# https://sourceforge.net/p/fourpane/git4pane/ci/66ae9a6f2ac526d80559967cda428cd48e5859ee/
eff3b1f
Patch0:		4Pane-7.0-wx3.2.patch
adb72cf
755a492
BuildRequires:	gcc-c++
adb72cf
BuildRequires:	bzip2-devel
adb72cf
BuildRequires:	xz-devel
ae35e5c
BuildRequires:	wxGTK-devel
1de491c
BuildRequires:  /usr/bin/desktop-file-install
1de491c
BuildRequires:  /usr/bin/appstream-util
1a5a210
BuildRequires:	gettext
5350dd7
BuildRequires:	git
eff3b1f
BuildRequires:	make
adb72cf
adb72cf
%description
adb72cf
4Pane is a multi-pane, detailed-list file manager. It is designed
adb72cf
to be fully-featured without bloat, and aims for speed rather than
adb72cf
visual effects.
adb72cf
In addition to standard file manager things, it offers multiple
adb72cf
undo and redo of most operations (including deletions), archive
adb72cf
management including 'virtual browsing' inside archives, multiple
adb72cf
renaming/duplication of files, a terminal emulator and user-defined
adb72cf
tools.
adb72cf
adb72cf
%prep
adb72cf
%setup -q -n 4pane-%{version}
5350dd7
0335169
%if 0
5350dd7
cat > .gitignore <
5350dd7
configure
5350dd7
config.guess
5350dd7
config.sub
5350dd7
aclocal.m4
5350dd7
config.h.in
5350dd7
EOF
5350dd7
5350dd7
git init
1de491c
git config user.email "4Pane-maintainers@fedoraproject.org"
5350dd7
git config user.name "4Pane owners"
5350dd7
git add .
5350dd7
git commit -m "base" -q
0335169
%endif
5350dd7
0335169
sed -i.cflags configure \
0335169
	-e '\@[ \t]\{5,\}C.*FLAGS[ \t]*=[ \t]*$@d'
adb72cf
adb72cf
%build
6367e49
export WX_CONFIG_NAME=$(ls -1 %{_bindir}/wx-config-3.* | sort | tail -n 1)
adb72cf
export EXTRA_CXXFLAGS="%{optflags}"
adb72cf
adb72cf
# --without-builtin_bzip2 means using system bzip2
adb72cf
%configure\
adb72cf
	--disable-desktop \
98662dd
	--without-builtin_bzip2 || \
98662dd
	{ sleep 5 ; cat config.log ; sleep 10 ; exit 1; }
1de491c
%make_build
adb72cf
adb72cf
%install
1de491c
%make_install
adb72cf
adb72cf
# Some manual installation
adb72cf
mkdir -p %{buildroot}%{_datadir}/applications
adb72cf
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{48x48,32x32}/apps
adb72cf
adb72cf
install -cpm 644 rc/%{name}.desktop %{buildroot}%{_datadir}/applications/
adb72cf
install -cpm 644 bitmaps/%{name}Icon32.xpm %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
adb72cf
install -cpm 644 bitmaps/%{name}Icon48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
adb72cf
a66d456
mkdir -p %{buildroot}%{_mandir}/man1
a66d456
install -cpm 644 4Pane.1 %{buildroot}%{_mandir}/man1/
a66d456
adb72cf
%find_lang %{name}
adb72cf
adb72cf
# Once remove document and let %%doc re-install them
adb72cf
rm -rf %{buildroot}%{_docdir}/%{name}
adb72cf
1de491c
%check
1de491c
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
1de491c
appstream-util validate-relax --nonet \
1de491c
        %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
1de491c
adb72cf
%files -f %{name}.lang
adb72cf
%license	LICENCE
adb72cf
%doc	doc/*
adb72cf
%doc	README
adb72cf
%doc	changelog
adb72cf
adb72cf
%{_bindir}/4pane
adb72cf
%{_bindir}/%{name}
adb72cf
a66d456
%{_mandir}/man1/%{name}.1*
c4b83d1
%{_datadir}/metainfo/%{name}.appdata.xml
a66d456
adb72cf
%{_datadir}/%{name}/
adb72cf
%{_datadir}/applications/%{name}.desktop
adb72cf
%{_datadir}/icons/hicolor/*/apps/%{name}*
adb72cf
adb72cf
%changelog
1de491c
* Fri Jan 26 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 8.0-8
1de491c
- SPDX migration
1de491c
238655c
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-7
238655c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
238655c
2745379
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-6
2745379
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2745379
4c235a1
* Thu Jan 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-5
4c235a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
4c235a1
22986ad
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-4
22986ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
22986ad
289f7ee
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-3
289f7ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
289f7ee
2ecd1fc
* Fri Nov 25 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 8.0-2
c98cae7
- 8.0
c98cae7
ae35e5c
* Thu Aug 04 2022 Scott Talbert <swt@techie.net> - 7.0-6
ae35e5c
- Rebuild with wxWidgets 3.2
ae35e5c
e4fcad9
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-5
e4fcad9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e4fcad9
b7dbc18
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-4
b7dbc18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b7dbc18
986f717
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-3
986f717
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
986f717
f6aaa6f
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-2
f6aaa6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f6aaa6f
5627939
* Tue Dec  8 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0-1
5627939
- 7.0
5627939
7edfced
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-3
7edfced
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7edfced
023b3a5
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-2
023b3a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
023b3a5
5627939
* Mon Dec 30 2010 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.0-1
5627939
- 6.0
5627939
d6a44da
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-8
d6a44da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d6a44da
2a68143
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-7
2a68143
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2a68143
5f01994
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-6
5f01994
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5f01994
e55d990
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-5
e55d990
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e55d990
e052c23
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.0-4
e052c23
- Remove obsolete scriptlets
e052c23
9e98668
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-3
9e98668
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9e98668
6275ee0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-2
6275ee0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6275ee0
a766c18
* Wed Jul 19 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 5.0-1
a766c18
- 5.0
a766c18
59968aa
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-3
59968aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
59968aa
27f0a69
* Sun Jun 19 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0-2
27f0a69
- Patch from the upstream to fix sizing and color issue with
27f0a69
  GTK 3.20 (bug 1345924)
27f0a69
0335169
* Thu Apr 07 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0-1
0335169
- 4.0
0335169
- Enable hardened build again
0335169
5cd0706
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-9
5cd0706
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5cd0706
9fb68b5
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-8
9fb68b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9fb68b5
98662dd
* Mon May  4 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0-7
98662dd
- Kill hardened build, does not build
98662dd
5350dd7
* Mon Dec 22 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0-6
5350dd7
- Patch for toolbar issue, requested by the upstream
5350dd7
9e54726
* Sun Dec 21 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0-5
9e54726
- Add man page, appdata (on F-21+)
a66d456
adb72cf
* Thu Dec 11 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0-3
adb72cf
- Replace Patch0 with the one revised by the upstream
adb72cf
adb72cf
* Wed Dec 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0-2
adb72cf
- Patch to fix crash with managing bookmark on non-English
adb72cf
  locale (sourceforge 767206)
adb72cf
adb72cf
* Tue Dec  9 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0-1
adb72cf
- Initial package