Name: netemul Version: 1.0 Release: 1%{?dist} Summary: A programm for simulating computer networks Group: Applications/Emulators License: LGPLv2+ URL: http://sourceforge.net/projects/netemul Source0: http://downloads.sourceforge.net/netemul/%{name}-%{version}.tar.gz Patch0: netemul-dektop.patch Patch1: netemul-qmake.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt4-devel BuildRequires: desktop-file-utils %description NetEmul is a programm for simulating computer networks. It makes possible to build, configurate networks and varify its availability. This programm allows begginers to see a principles of operation CN and gives a scope for experiments. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %{_qt4_qmake} PREFIX=%{_prefix} make %{?_smp_mflags} lrelease-qt4 translation/*.ts %install rm -rf $RPM_BUILD_ROOT make install INSTALL_ROOT=$RPM_BUILD_ROOT desktop-file-install \ --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %find_lang %{name} --with-qt %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc copyright GPL-2 %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %changelog * Sun Jun 20 2010 Alexey Kurov - 1.0-1 - Initial RPM release