Blob Blame History Raw
%global minor_version 1.0
Name:           xfce4-embed-plugin
Version:        1.0.0
Release:        1%{?dist}
Summary:        Xfce panel plugin to embed various applications 

Group:          User Interface/Desktops
License:        GPLv2+
URL:            http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0:        http://archive.xfce.org/src/panel-plugins/%{name}/%{minor_version}/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  xfce4-panel-devel >= 4.8
BuildRequires:  libxfce4util-devel >= 4.8
BuildRequires:  libxfce4ui-devel >= 4.8
BuildRequires:  gtk2-devel 
BuildRequires:  libX11-devel 
BuildRequires:  intltool
Requires:       xfce4-panel >= 4.4.0

%description
This plugin enables the embedding of arbitrary 
application windows into the Xfce panel.
The window is resized into the panel space available,
and the associated program can be automatically
launched if it is not open. 

%prep
%setup -q -n %{name}-%{version}

%build
%configure --disable-static
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
rm -rf $RPM_BUILD_ROOT/%{_libdir}/xfce4/panel/plugins/libembed.la
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/xfce4/panel/plugins/libembed.so
%{_datadir}/xfce4/panel/plugins/*.desktop

%changelog
* Wed May 16 2012 Johannes Lips <hannes@fedoraproject.org> - 1.0.0-1
- defined minor version
- changed the license to GPLv2+ 

* Sat Apr 28 2012 Johannes Lips <hannes@fedoraproject.org> - 1.0.0-0.1
- Initial RPM release.