File avant-window-navigator.spec of Package avant-window-navigator
#
# This file was taken from BS project home:psmt
# spec file for package avant-window-navigator
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: avant-window-navigator
BuildRequires: libwnck-devel gnome-desktop-devel libgnome-devel gnome-vfs2-devel
BuildRequires: dbus-1-glib-devel gnome-common intltool libglade2-devel
BuildRequires: gtk-doc python-devel python-gtk-devel python-xdg python-xml
Requires: libawn1>=0.2.6
URL: https://launchpad.net/awn
License: GPL
Version: 0.2.6
Release: 5
Group: System/GUI/Other
Summary: A Fully Customisable Dock-like Window Navigator For GNOME
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%define _sysconfdir /etc
%define libname libawn1
%description
Avant Window Navigator is a fully customizable dock-like window navigator for GNOME.
Authors:
--------
Neil Jagdish Patel <njpatel@gmail.com>
%package -n %libname
Group: System/Libraries
Summary: A Library for AWN applets
%description -n %libname
This package contains all files necessary to develop plugins for
avant-window-navigator.
Authors:
--------
Neil Jagdish Patel <njpatel@gmail.com>
%package -n %libname-devel
Group: Development/Libraries/C and C++
Summary: Avant-window-navigator plugin development package
Requires: %{name} = %{version} glib2-devel gtk2-devel libgnome-devel
Requires: gnome-vfs2-devel gconf2-devel
%description -n %libname-devel
This package contains all files necessary to develop plugins for
avant-window-navigator.
Authors:
--------
Neil Jagdish Patel <njpatel@gmail.com>
%prep
%setup -q
%build
export CFLAGS="%optflags -fstrict-aliasing" CXXFLAGS="%optflags -fstrict-aliasing"
./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --sysconfdir=%{_sysconfdir} --disable-static
# Autogen spawns configure as it's last act
#./configure --prefix=%{prefix}
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f %{buildroot}/%{_libdir}/libawn.la
rm -f $(find %{buildroot}/%{_libdir}/%{name} -name \*.la)
%find_gconf_schemas
%{find_lang} %{name}
cat %{name}.schemas_list %{name}.lang >%{name}.lst
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%post -n %libname
%run_ldconfig
%postun -n %libname
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lst
%defattr(-,root,root,0755)
%{_bindir}/avant-window-navigator
%{_bindir}/awn-applet-activation
%{_bindir}/awn-launcher-editor
%{_bindir}/awn-manager
%{_bindir}/awn-schema-to-gconf
%{_libdir}/awn
%{_datadir}/%{name}
%{_datadir}/applications/awn-manager.desktop
%{_datadir}/applications/avant-window-navigator.desktop
%{_datadir}/icons/hicolor/*/apps/*
%doc %{_datadir}/gtk-doc/html/libawn/
%files -n %libname
%defattr(-,root,root,0755)
%{_libdir}/libawn.so.*
%{py_sitedir}/awn/
%files -n %libname-devel
%defattr(-,root,root,0755)
%{_libdir}/pkgconfig/awn.pc
%{_libdir}/libawn.so
%{_includedir}/libawn