File susesamba.spec of Package susesamba
# SUSEsamba 0.2b2, created 2-2-08. Covered by the GNU General Public License.
# Source code created by Redroar, packaged by Redroar.
# This program modifies the smb.conf and SuSEfirewall2 configuration files, and makes it easy for you
# to get a functioning SMB network.
Name: susesamba
Summary: Quickly Configures Samba for SUSE
Version: 0.2b2
License: GPL v3 or Later
Packager: Redroar
URL: http://sourceforge.net/projects/susesamba
Distribution: OpenSUSE
Group: Productivity/Networking/Samba
Source: %{name}-%{version}.tar.gz
Release: 2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
%description
A graphical interface for easily setting up a home network with Samba. Gives options for
hostname and workgroup name, and develops a simple configuration to get you started.
It also opens the necessary ports in the firewall, making it easy to get up and
running.
Author: Redroar
Website: http://sourceforge.net/projects/susesamba
%prep
%setup -n %{name}-%{version}
%build
qmake -o Makefile susesamba.pro
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
mkdir $RPM_BUILD_ROOT/usr/share/applications
install -m755 susesamba $RPM_BUILD_ROOT/usr/bin
cp susesamba.png $RPM_BUILD_ROOT/usr/share/pixmaps
cp susesamba.desktop $RPM_BUILD_ROOT/usr/share/applications
%suse_update_desktop_file susesamba
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/bin/susesamba
/usr/share/pixmaps/susesamba.png
/usr/share/applications/susesamba.desktop