LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kipcalc.spec of Package kipcalc (Project KDE:KDE3)

#
# spec file for package kipcalc
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define _prefix /opt/kde3

Name:           kipcalc
Version:        0.9.6
Release:        0
License:        GPL-2.0+
Summary:        IPv4 Subnet Calculator
Url:            http://www.linux-specialist.com
Group:          Productivity/Networking/Other
Source0:        http://www.linux-specialist.com/download/source/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM kipcalc-0.9.6-desktop.patch lazy.kent@opensuse.org -- fix desktop file
Patch0:         kipcalc-0.9.6-desktop.patch
BuildRequires:  kdelibs3-devel
Requires:       kdebase3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
IPv4 Subnet Calculator and more.

%prep
%setup -q
%patch0
chmod -x copying
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make %{?_smp_mflags}

%install
. /etc/opt/kde3/common_options
%makeinstall
rm -f %{buildroot}%{_datadir}/icons/*.gif
for s in 16 32 ; do
    install -Dm 0644 %{name}/lo${s}-app-%{name}.png \
    %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done
kde_post_install
%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc copying
%{_bindir}/*
%{_datadir}/applications/kde/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*

%changelog