File gtkdialog.spec of Package gtkdialog

Name: gtkdialog
Version: 0.8.3
Release: 0
Summary: GUI creation tool for shells and arbitrary interpreters
License: GPL-2.0
Group: "Development/Tools/GUI Builders"
Source: http://gtkdialog.googlecode.com/files/%{name}-%{version}.tar.gz
URL: http://code.google.com/p/gtkdialog/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: gtk2-devel
BuildRequires: -post-build-checks

%description
Gtkdialog (or gtkdialog) is a small utility for fast and easy GUI building.
It can be used to create dialog boxes for almost any interpreted and compiled
programs which is a very attractive feature since the developer does not have
to learn various GUI languages for the miscellaneous programming languages. 

%prep
%setup -q
sed -i 's|usr/local|usr|' examples/miscellaneous/standalone_file

%build
%configure
%__make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%__mkdir $RPM_BUILD_ROOT
# UPDATE_ICON_CACHE=true to avoid system icon cache update in install section (bad makefile)
%__make DESTDIR=$RPM_BUILD_ROOT UPDATE_ICON_CACHE=true install

%clean
rm -rf $RPM_BUILD_ROOT

%post
gtk-update-icon-cache -f -t %{_datadir}/icons/hicolor
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files
%defattr(-,root,root)
%doc AUTHORS TODO COPYING ChangeLog
%{_bindir}/%{name}
%{_infodir}/%{name}.info.gz
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png


%changelog
openSUSE Build Service is sponsored by