%define version 1.85 %define gtk2 1 %{?_with_gtk1:%define gtk2 0} %define _iconsl %{_datadir}/icons/locolor %define _iconsh %{_datadir}/icons/hicolor %define _appsdir %{_datadir}/applications/kde %define _mimedir %{_datadir}/mimelnk/application %if %{gtk2} %define _suffix -gtk2. %define _flavor gtk2.1 %else %define _suffix . %define _flavor 1 %endif Summary: DialogBlocks, a dialog editor for wxWidgets Name: dialogblocks Version: %{version} Release: %{_flavor} License: Other URL: http://www.anthemion.co.uk/dialogblocks Source0: DialogBlocks-%{version}-i386%{_suffix}tar.gz Source1: dialogblocks.desktop Source2: x-dialogblocks.desktop Source3: dialogblocks16.png Source4: dialogblocks32.png BuildRoot: %{_tmppath}/%{name}-%{version}-root Group: Development/Tools NoSource: 0 %description DialogBlocks is an editor for authoring cross-platform dialogs for wxWidgets applications. You can use it to produce help files for your Windows, Linux, or Mac applications, in conjunction with wxWidgets. For further information, please see the manual, and the following sites: http://www.anthemion.co.uk/dialogblocks http://www.wxwidgets.org %prep echo %{gtk2} %setup -q -n DialogBlocks-%{version} %build %install install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir}/%{name} install -d %{buildroot}%{_appsdir} install -d %{buildroot}%{_mimedir} install -d %{buildroot}%{_iconsl}/{16x16,32x32}/{apps,mimetypes} install -d %{buildroot}%{_iconsh}/{16x16,32x32}/{apps,mimetypes} install -d %{buildroot}%{_sysconfdir}/profile.d %{__install} -m 644 %{S:1} %{buildroot}%{_appsdir} %{__install} -m 644 %{S:2} %{buildroot}%{_mimedir} %{__install} -m 644 %{S:3} %{buildroot}%{_iconsl}/16x16/apps/%{name}.png %{__install} -m 644 %{S:4} %{buildroot}%{_iconsl}/32x32/apps/%{name}.png %{__install} -m 644 %{S:3} %{buildroot}%{_iconsl}/16x16/mimetypes/%{name}.png %{__install} -m 644 %{S:4} %{buildroot}%{_iconsl}/32x32/mimetypes/%{name}.png %{__install} -m 644 %{S:3} %{buildroot}%{_iconsh}/16x16/apps/%{name}.png %{__install} -m 644 %{S:4} %{buildroot}%{_iconsh}/32x32/apps/%{name}.png %{__install} -m 644 %{S:3} %{buildroot}%{_iconsh}/16x16/mimetypes/%{name}.png %{__install} -m 644 %{S:4} %{buildroot}%{_iconsh}/32x32/mimetypes/%{name}.png %{__install} -m 755 dialogblocks %{buildroot}%{_bindir} for f in *.xpm *.bin *.htb *.txt *.htm *.png ; do %{__install} -m 644 $f %{buildroot}%{_datadir}/%{name} done cp -a Samples wx25 %{buildroot}%{_datadir}/%{name} # Fix permissons so that normal users can write in the Samples find %{buildroot}%{_datadir}/%{name}/Samples -type d -exec chmod a=wrx {} \; find %{buildroot}%{_datadir}/%{name}/Samples -type f -exec chmod a=wr {} \; cat>%{buildroot}%{_sysconfdir}/profile.d/dialogblocks.sh< - Initial RPM