File dukto.spec of Package dukto

%define debug_package %{nil}


Name:           dukto
Version:        6.0
Release:        13.1
Summary:        Dukto R6 file transfer tool
Group:          Applications/Networking
License:        GPL
URL:            http://msec.it/dukto
Source:         %{name}-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  desktop-file-utils libpng-devel

%if 0%{?suse_version}
BuildRequires:  libqt4-devel >= 4.7.0
Requires:       libqt4 >= 4.7.0
BuildRequires:   update-desktop-files
%else
BuildRequires:  qt-devel >= 4.7.0
Requires:       qt >= 4.7.0
%endif

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Dukto is an easy file transfer tool designed for LAN use.
You can use it to transfer files from one PC to another,
without worrying about users, permissions, operating systems,
protocols, clients, servers and so on... Just start dukto on
the two PCs and transfer files and folders by dragging
onto it's window.

%prep
%setup -q

%build
%if 0%{?suse_version}
/usr/bin/qmake %{name}.pro
%else
/usr/bin/qmake-qt4 %{name}.pro
%endif
make
%if 0%{?suse_version}
%suse_update_desktop_file -n %{name} FileTransfer
%endif

%install
%__install -D -m0755 -s %{name} "%{buildroot}%{_bindir}/%{name}"
%__install -D -m0644 %{name}.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png"

echo 'Categories=Application;Network;' >> %{name}.desktop
desktop-file-install --dir "%{buildroot}%{_datadir}/applications" %{name}.desktop

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by