File kde3-kflickr.spec of Package kde3-kflickr
#
# spec file for package kde3-kflickr (Version 0.9.1)
#
# Copyright 2006-2007 Pascal Bleser <guru@unixtech.be>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# 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.
#
# norootforbuild
%define _prefix /opt/kde3
%define _sysconfdir /etc%{_prefix}
%define qtdir /usr/lib/qt3
Name: kde3-kflickr
Version: 0.9.1
Release: 0
Summary: Standalone Flickr Uploader for KDE
Source: http://prdownloads.sourceforge.net/kflickr/kflickr-%{version}.tar.bz2
Patch1: kflickr-desktop-utf8.diff
URL: http://kflickr.sourceforge.net/wikka.php?wakka=Kflickr
Group: Productivity/Networking/Other
License: GPL-2.0-or-later
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: kdelibs3-devel kdebase3-devel libgcrypt-devel libgpg-error-devel
BuildRequires: gcc-c++ libstdc++-devel
BuildRequires: autoconf automake libtool update-desktop-files
Provides: kflickr = 0.9.1
Obsoletes: kflickr <= 0.9.1
%description
kFlickr is a standalone Flickr uploader for KDE. It allows for easy upload
with drag and drop. Common attributes can be edited before sending the
photo. Multiple users are supported.
%prep
%setup -q -n kflickr-%{version}
%patch -P 1
%build
# do *not* use unsermake here, breaks build
# don't call autoreconf either
export CXXFLAGS="$CXXFLAGS -Wl,--add-needed"
%configure \
%if "%{_lib}"=="lib64"
--enable-libsuffix=64 \
%endif
--with-qt-dir="%{qtdir}" \
--mandir=/usr/share/man
%__make -j1
%install
%makeinstall
%suse_update_desktop_file -r kflickr Network FileTransfer
%suse_update_desktop_file -n %{buildroot}%{_datadir}/apps/konqueror/servicemenus/kflickr_servicemenu.desktop
%suse_update_desktop_file -n %{buildroot}%{_datadir}/services/kflickrpart.desktop
%__chmod -x %{buildroot}%{_libdir}/kde3/libkflickrpart.la
%find_lang kflickr
%clean
%__rm -rf "%{buildroot}"
%files -f kflickr.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/kflickr
%{_libdir}/kde3/libkflickrpart.so
%{_libdir}/kde3/libkflickrpart.la
%{_datadir}/applications/kde/kflickr.desktop
%{_datadir}/apps/kflickr
%{_datadir}/apps/kflickrpart
%{_datadir}/apps/konqueror/servicemenus/kflickr_servicemenu.desktop
%{_datadir}/icons/*/*/apps/kflickr.png
%{_datadir}/services/kflickrpart.desktop
%doc /usr/share/man/man1/kflickr.1*
%dir /opt/kde3/share/locale/nds
%dir /opt/kde3/share/locale/nds/LC_MESSAGES
%changelog
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: