File fbpanel.spec of Package fbpanel

#
# spec file for package fbpanel
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           fbpanel
Version:        6.1
Release:        0
Summary:        Lightweight Desktop Panel
License:        GPL-2.0+
Group:          System/X11/Utilities
Url:            http://fbpanel.sourceforge.net/
Source:         http://prdownloads.sourceforge.net/fbpanel/fbpanel-%{version}.tbz2
Patch0:         fbpanel-underlinking.patch
Patch1:         fbpanel-optflags.patch
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gail)
BuildRequires:  pkgconfig(gdk-2.0)
BuildRequires:  pkgconfig(gdk-x11-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtk+-unix-print-2.0)
BuildRequires:  pkgconfig(gtk+-x11-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
fbpanel is a lightweight GTK-2 based desktop panel. It works with any NETWM
compliant window manager (i.e. sawfish, Openbox, metacity, xfwm4, and kvm). It
features a tasklist, launchbar, clock, pager, icon tray, menu, and desktop
switcher.

%prep
%setup -q
%patch0 -p1
%patch1

%build
# not autoconf
./configure \
    --prefix="%{_prefix}" \
    --eprefix="%{_exec_prefix}" \
    --bindir="%{_bindir}" \
    --sbindir="%{_sbindir}" \
    --libexecdir="%{_libexecdir}" \
    --libdir="%{_libdir}" \
    --sysconfdir="%{_sysconfdir}" \
    --datadir="%{_datadir}" \
    --includedir="%{_includedir}" \
    --mandir="%{_mandir}" \
    --infodir="%{_infodir}" \
    --localstatedir="%{_localstatedir}"

unset CFLAGS
make %{?_smp_mflags} \
    OPTFLAGS="%{optflags} -Wall -I$PWD" \
    Q=''

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -D --mode=444 data/man/fbpanel.1 %{buildroot}%{_mandir}/man1/fbpanel.1

%files
%defattr(-,root,root)
%doc CHANGELOG COPYING CREDITS NOTES README
%{_bindir}/fbpanel
%dir %{_libdir}/fbpanel
%{_libdir}/fbpanel/*.so
%if "%{_libexecdir}"!="%{_libdir}"
%{_libexecdir}/fbpanel
%else
%{_libexecdir}/fbpanel/make_profile
%{_libexecdir}/fbpanel/xlogout
%endif
%{_datadir}/fbpanel
%{_mandir}/man1/fbpanel.1.gz
openSUSE Build Service is sponsored by