Stefan Posdzich 777f774
Name:		fbpanel
44178c7
Version:	7.0
ffe7ebb
Release:	13%{?dist}
Stefan Posdzich 777f774
Summary:	A lightweight X11 desktop panel
Stefan Posdzich 777f774
Stefan Posdzich 777f774
# %%{_bindir}/fbpanel and almost all plugins are under LGPLv2+
Stefan Posdzich 777f774
# Some plugins (cpu.so, pager.so, tray.so) are under GPLv2+
Stefan Posdzich 777f774
License:	LGPLv2+ and GPLv2+
44178c7
URL:		https://github.com/aanatoly/fbpanel
44178c7
Source:	https://github.com/aanatoly/fbpanel/archive/%{version}/fbpanel-%{version}.tar.gz
dfda022
# Fix for gcc10 -fno-common
dfda022
Patch0:     fbpanel-7.0-gcc10-fno-common.patch
74f8b97
# Port script to python3
74f8b97
Patch1:     fbpanel-7.0-script-py3.patch
f29555c
# Port script to python3.10
f29555c
Patch2:     fbpanel-7.0-script-py310.patch
44178c7
b193c74
# distro specific patches
74f8b97
Patch10:        fbpanel-7.0-default-config.patch
86e7ece
Patch11:        fbpanel-6.1-default-applications.patch
Stefan Posdzich 777f774
bda966e
BuildRequires:  gcc
74f8b97
BuildRequires:  python3
44178c7
BuildRequires:  gtk2-devel
44178c7
BuildRequires:  pkgconfig(gdk-pixbuf-xlib-2.0)
44178c7
BuildRequires:  desktop-file-utils
74f8b97
BuildRequires:  make
86e7ece
Requires:       xdg-utils
Stefan Posdzich 777f774
Stefan Posdzich 777f774
%description
Stefan Posdzich 777f774
fbpanel is a lightweight X11 desktop panel. It works with any ICCCM / NETWM 
c798ac4
compliant window manager such as sawfish, metacity, openbox, xfwm4, or KDE.
Stefan Posdzich 777f774
It features tasklist, pager, launchbar, clock, menu and systray.
Stefan Posdzich 777f774
f590685
%package     doc
f590685
Summary:   Documentation for %{name}
f590685
BuildArch: noarch
f590685
f590685
%description    doc
f590685
This subpackage contains documentation files for %{name}
f590685
Stefan Posdzich 777f774
%prep
Stefan Posdzich 777f774
%setup -q
dfda022
%patch0 -p1 -b .gcc10
74f8b97
%patch1 -p1 -b .py3
f29555c
%patch2 -p1 -b .py310
86e7ece
%patch10 -p1 -b .default-config
86e7ece
%patch11 -p1 -b .default-applications
86e7ece
# honor optflags
44178c7
sed -i.optflags -e \
44178c7
	'\@CFLAGS =@s|-Wall -Werror|%{optflags}|' \
44178c7
	.config/rules.mk
44178c7
# Fix path...
44178c7
sed -i.path panel/panel.c \
44178c7
	-e 's|LIBEXECDIR "/fbpanel/|LIBEXECDIR "/|'
Stefan Posdzich 777f774
44178c7
LANG=C grep -rl %{_bindir}/python | \
74f8b97
	xargs sed -i -e 's@%{_bindir}/python$@%{_bindir}/python3@'
Stefan Posdzich 777f774
9b98909
# preserve timestamps during install
9b98909
sed -i.timstamps -e 's|install -m|install -p -m|' scripts/install.sh
9b98909
# Keep timestamps more forcely!!
dfda022
grep -rl -- "-m 644" | xargs sed -i -e 's|-m 644 |-p -m 644 |'
9b98909
sed -i data/images/Makefile -e '\@IMAGES@s|install |install -cp -m 0644 |'
9b98909
Stefan Posdzich 777f774
%build
c798ac4
# %%configure macro doesn't work
44178c7
./configure \
44178c7
    V=1 \
44178c7
    --prefix=%{_prefix} \
44178c7
    --libdir=%{_libdir}/%{name} \
44178c7
    --libexecdir=%{_libexecdir}/%{name} \
44178c7
    --datadir=%{_datadir}/%{name} \
44178c7
    --mandir=%{_mandir}/man1
44178c7
make %{?_smp_mflags} V=1
Stefan Posdzich 777f774
Stefan Posdzich 777f774
Stefan Posdzich 777f774
%install
c798ac4
make install DESTDIR=$RPM_BUILD_ROOT
Stefan Posdzich 777f774
c798ac4
# change some icon names that were also changed in the default panel config
c67a91c
#mv $RPM_BUILD_ROOT%{_datadir}/%{name}/images/logo.png \
c67a91c
#    $RPM_BUILD_ROOT%{_datadir}/%{name}/images/start-here.png
c67a91c
ln -sf logo.png \
c67a91c
	$RPM_BUILD_ROOT%{_datadir}/%{name}/images/start-here.png
Stefan Posdzich 777f774
86e7ece
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/images/gnome-session-halt.png \
86e7ece
    $RPM_BUILD_ROOT%{_datadir}/%{name}/images/system-shutdown.png
Stefan Posdzich 777f774
86e7ece
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/images/gnome-session-reboot.png \
86e7ece
    $RPM_BUILD_ROOT%{_datadir}/%{name}/images/system-reboot.png
86e7ece
86e7ece
# volume plugin is not working and prevents starting of fbpanel, lets remove it.
86e7ece
# https://sourceforge.net/tracker/?func=detail&aid=3121295&group_id=66031&atid=513125
44178c7
rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libvolume.so
Stefan Posdzich 777f774
c798ac4
Stefan Posdzich 777f774
%files
44178c7
%license COPYING
44178c7
%doc CHANGELOG
44178c7
%doc CREDITS
44178c7
%doc NOTES
44178c7
%doc README.md
44178c7
Stefan Posdzich 777f774
%{_bindir}/%{name}
9b98909
%dir	%{_libdir}/%{name}/
9b98909
%{_libdir}/%{name}/lib*.so
9b98909
9b98909
%dir	%{_libexecdir}/%{name}/
9b98909
%{_libexecdir}/%{name}/make_profile
9b98909
%{_libexecdir}/%{name}/xlogout
9b98909
9b98909
%dir	%{_datadir}/%{name}/
9b98909
%{_datadir}/%{name}/default
9b98909
%{_datadir}/%{name}/images/
9b98909
%{_datadir}/%{name}/pager
9b98909
Stefan Posdzich 777f774
%{_mandir}/man1/%{name}.1.*
Stefan Posdzich 777f774
f590685
%files doc
f590685
%doc www
f590685
Stefan Posdzich 777f774
%changelog
ffe7ebb
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-13
ffe7ebb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ffe7ebb
f29555c
* Fri Jul 23 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0-12
f29555c
- Port build script to python3.10
f29555c
4f78d73
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-11
4f78d73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4f78d73
f29555c
* Tue Feb 23 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0-10
74f8b97
- Port build script to python3
74f8b97
e57ac38
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-9
e57ac38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e57ac38
e4f5b5b
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-8
e4f5b5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e4f5b5b
b8ef6bc
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-7
b8ef6bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b8ef6bc
dfda022
* Fri Jan 23 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0-6
dfda022
- Fix compilation with gcc10 -fno-common
dfda022
cc6ab35
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-5
cc6ab35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cc6ab35
b73f32f
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-4
b73f32f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b73f32f
36feccc
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-3
36feccc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
36feccc
f590685
* Tue Feb 20 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0-2
f590685
- Include documentation
f590685
f590685
* Tue Feb 20 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0-1
723f7a1
- 7.0
723f7a1
3d886c1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-17
3d886c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3d886c1
4b863ed
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 6.1-16
4b863ed
- Remove obsolete scriptlets
4b863ed
169085e
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-15
169085e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
169085e
dd1151a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-14
dd1151a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dd1151a
d35875b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-13
d35875b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d35875b
ce43adb
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-12
ce43adb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ce43adb
0de0758
* Wed Jun 17 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 6.1-11
0de0758
- Fix build for gdk-pixbuf2 package split
0de0758
2885d64
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-10
2885d64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2885d64
c36d89f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-9
c36d89f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c36d89f
9e85446
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-8
9e85446
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9e85446
5131156
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-7
5131156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5131156
6a07229
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-6
6a07229
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6a07229
3c9cd27
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-5
3c9cd27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3c9cd27
4df4be9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-4
4df4be9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4df4be9
4366693
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 6.1-3
4366693
- Rebuild for new libpng
4366693
8cfc4b5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-2
8cfc4b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8cfc4b5
86e7ece
* Sun Nov 28 2010 Christoph Wickert <cwickert@fedoraproject.org> - 6.1-1
86e7ece
- Update to 6.1
86e7ece
- Require xdg-utils for screenlocking
86e7ece
- Add patch to make sure default applications are installed
86e7ece
b193c74
* Thu Feb 25 2010 Christoph Wickert <cwickert@fedoraproject.org> - 5.6-2
b193c74
- Add patch to fix DSO linking (#565202)
b193c74
c798ac4
* Sun Feb 07 2010 Christoph Wickert <cwickert@fedoraproject.org> - 5.6-1
c798ac4
- Update to 5.6
c798ac4
- Update icon-cache scriptlets
c798ac4
- Remove useless desktop file
c798ac4
b3dba19
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.12-8
b3dba19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b3dba19
bb30c50
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.12-7
bb30c50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bb30c50
Stefan Posdzich f44cfb6
* Fri Jul 04 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 4.12-6
Stefan Posdzich f44cfb6
- Add icon.patch to bring the Fedora icon to the panel
Stefan Posdzich f44cfb6
- Modified the existing apps in the Panel (like emacs -> gedit)
Stefan Posdzich f44cfb6
Stefan Posdzich 777f774
* Wed Jun 18 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 4.12-5
Stefan Posdzich 777f774
- Add comment about the license
Stefan Posdzich 777f774
- Remove redundant Source2:
Stefan Posdzich 777f774
Stefan Posdzich 777f774
* Tue Jun 17 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 4.12-4
Stefan Posdzich 777f774
- Add correct url for Source:
Stefan Posdzich 777f774
- Add gtk-update-icon-cache
Stefan Posdzich 777f774
- Add timestamps
Stefan Posdzich 777f774
- Add missing debuginfo rpm
Stefan Posdzich 777f774
- Changed licence, MIT to LGPLv2+ and GPLv2+
Stefan Posdzich 777f774
- Remove unneeded ldconfig
Stefan Posdzich 777f774
- Remove redundant BuildRequires: atk-devel, pango-devel and cairo-devel
Stefan Posdzich 777f774
Stefan Posdzich 777f774
* Sun Jun 15 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 4.12-3
Stefan Posdzich 777f774
- Solved build failure and broken libs-patch with patch from Robert Scheck
Stefan Posdzich 777f774
Stefan Posdzich 777f774
* Sat Jun 07 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 4.12-2
Stefan Posdzich 777f774
- fixed rpmlint errors
Stefan Posdzich 777f774
- new .desktop file
Stefan Posdzich 777f774
- cleanup
Stefan Posdzich 777f774
Stefan Posdzich 777f774
* Sun May 25 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 4.12-1
Stefan Posdzich 777f774
- first version of the SPEC file