File kvpnc.spec of Package kvpnc
#
# spec file for package kvpnc (Version 0.9.6)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name:           kvpnc
BuildRequires:  kdebase4-workspace-devel libkde4-devel update-desktop-files
BuildRequires:  fdupes gpgme-devel libkdepimlibs4-devel libqimageblitz-devel
Url:            http://home.gna.org/kvpnc/
License:        GPLv2+
Group:          Productivity/Networking/System
Summary:        GUI Front-End for openswan and vpnc
Version:        0.9.6
Release:        1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}-kde4.tar.bz2
Source1:        kvpnc.rpmlintrc
Source2:        %{name}-%{version}-kde4-locale.tar.bz2
Requires:       kdebase4-workspace kdebase4-runtime
Provides:       kde4-kvpnc = %{version}
Obsoletes:      kde4-kvpnc < %{version}
%description
The application can create configurations for various kinds of VPN
connections. You should also install the vpnc or openswan package.
Authors:
--------
    Christoph Thielecke <crissi99@gmx.de>
%prep
%setup -q -n %{name}-%{version}-kde4 -a2
echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt
echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt
echo "add_subdirectory( po )" >> CMakeLists.txt
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
%suse_update_desktop_file -G "VPNC FrontEnd" kvpnc Networking
%fdupes %{buildroot}%{_datadir}
cd ..
rm -rf $RPM_BUILD_ROOT/usr/share/locale/x-test
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%if %suse_version < 1120
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES
%endif
%{_datadir}/kde4/apps/kvpnc
%{_bindir}/kvpnc
%{_datadir}/applications/kde4
%{_datadir}/icons/*
%changelog