[kflickr] Updated Requires and fixed icon handling

Jan Klepek hpejakle at fedoraproject.org
Tue Sep 6 13:00:24 UTC 2011


commit f7ab782fc35f4f4247b295709566295ad5d843cf
Author: Jan Klepek <jan.klepek at gmail.com>
Date:   Tue Sep 6 15:00:08 2011 +0200

    Updated Requires and fixed icon handling

 .gitignore   |    1 +
 kflickr.1    |  147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 kflickr.spec |  133 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 4 files changed, 282 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4df23af..5e9f781 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 kflickr-20081222.tar.bz2
+/kflickr-20100817.tar.bz2
diff --git a/kflickr.1 b/kflickr.1
new file mode 100644
index 0000000..fbcc2ac
--- /dev/null
+++ b/kflickr.1
@@ -0,0 +1,147 @@
+.\" This file was generated by kdemangen.pl
+.TH KFLICKR 1 "Jan 2005" "K Desktop Environment" "A Flickr uploader for KDE"
+.SH NAME
+kflickr
+\- A Flickr uploader for KDE
+.SH SYNOPSIS
+kflickr [Qt\-options] [KDE\-options] 
+.SH DESCRIPTION
+This is an easy-to-use Flickr uploader for KDE. It supports drag-and-drop,
+allowing photos to be easily prepared for upload. Also allows editing of the
+most common photo attributes before upload. 
+
+.SH OPTIONS
+.SS Generic options:
+.TP
+.B  \-\-help  
+Show help about options
+.TP
+.B  \-\-help\-qt  
+Show Qt specific options
+.TP
+.B  \-\-help\-kde  
+Show KDE specific options
+.TP
+.B  \-\-help\-all  
+Show all options
+.TP
+.B  \-\-author  
+Show author information
+.TP
+.B \-v,  \-\-version  
+Show version information
+.TP
+.B  \-\-license  
+Show license information
+.TP
+.B  \-\-  
+End of options
+.SS 
+.SS KDE options:
+.TP
+.B  \-\-caption  <caption>
+Use 'caption' as name in the titlebar
+.TP
+.B  \-\-icon  <icon>
+Use 'icon' as the application icon
+.TP
+.B  \-\-miniicon  <icon>
+Use 'icon' as the icon in the titlebar
+.TP
+.B  \-\-config  <filename>
+Use alternative configuration file
+.TP
+.B  \-\-dcopserver  <server>
+Use the DCOP Server specified by 'server'
+.TP
+.B  \-\-nocrashhandler  
+Disable crash handler, to get core dumps
+.TP
+.B  \-\-waitforwm  
+Waits for a WM_NET compatible windowmanager
+.TP
+.B  \-\-style  <style>
+sets the application GUI style
+.TP
+.B  \-\-geometry  <geometry>
+sets the client geometry of the main widget - see man X for the argument format
+.SS Qt options:
+.TP
+.B  \-\-display  <displayname>
+Use the X-server display 'displayname'
+.TP
+.B  \-\-session  <sessionId>
+Restore the application for the given 'sessionId'
+.TP
+.B  \-\-cmap  
+Causes the application to install a private color
+map on an 8-bit display
+.TP
+.B  \-\-ncols  <count>
+Limits the number of colors allocated in the color
+cube on an 8-bit display, if the application is
+using the QApplication::ManyColor color
+specification
+.TP
+.B  \-\-nograb  
+tells Qt to never grab the mouse or the keyboard
+.TP
+.B  \-\-dograb  
+running under a debugger can cause an implicit
+-nograb, use -dograb to override
+.TP
+.B  \-\-sync  
+switches to synchronous mode for debugging
+.TP
+.B \-\-fn,  \-\-font  <fontname>
+defines the application font
+.TP
+.B \-\-bg,  \-\-background  <color>
+sets the default background color and an
+application palette (light and dark shades are
+calculated)
+.TP
+.B \-\-fg,  \-\-foreground  <color>
+sets the default foreground color
+.TP
+.B \-\-btn,  \-\-button  <color>
+sets the default button color
+.TP
+.B  \-\-name  <name>
+sets the application name
+.TP
+.B  \-\-title  <title>
+sets the application title (caption)
+.TP
+.B  \-\-visual  TrueColor
+forces the application to use a TrueColor visual on
+an 8-bit display
+.TP
+.B  \-\-inputstyle  <inputstyle>
+sets XIM (X Input Method) input style. Possible
+values are onthespot, overthespot, offthespot and
+root
+.TP
+.B  \-\-im  <XIM server>
+set XIM server
+.TP
+.B  \-\-noxim  
+disable XIM
+.TP
+.B  \-\-reverse  
+mirrors the whole layout of widgets
+.SS 
+
+.SH SEE ALSO
+Full user documentation is available through the KDE Help Center.  You can also enter the URL
+.BR help:/kflickr/
+directly into konqueror or you can run 
+.BR "`khelpcenter help:/kflickr/'"
+from the command-line.
+.br
+.SH AUTHORS
+.nf
+Kflickr: M. Asselstine <<asselsm at gmail.com>
+Man page: Seth Kinast <seth at ubuntu.com>
+.br
+
diff --git a/kflickr.spec b/kflickr.spec
new file mode 100644
index 0000000..d526df6
--- /dev/null
+++ b/kflickr.spec
@@ -0,0 +1,133 @@
+Name:		kflickr
+Version:	20100817
+Release:	3%{?dist}
+Summary:	Standalone Flickr Uploader
+
+Group:		Applications/Internet
+License:	GPLv2+
+URL:		http://kflickr.sourceforge.net 
+Source0:	http://downloads.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
+# man page from debian, hopefully will be adopted by new upstream
+Source1:	%{name}.1
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:	desktop-file-utils, gettext, cmake
+BuildRequires:	kdelibs4-devel
+Requires:	kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
+
+%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} } 
+
+%description
+kflickr is an easy to use photo uploader for flickr.
+
+%prep
+%setup -q
+
+# Make desktop file UTF compat
+for file in desktop/kflickr.desktop ; do
+  iconv -f ISO-8859-5 -t UTF-8 $file > $file.tmp && \
+    mv $file.tmp $file || rm -f $file.tmp
+done
+
+# update desktop file
+sed -i 's#Categories=KDE;#Categories=KDE;Qt;#g' desktop/kflickr.desktop
+%build
+
+%{cmake_kde4} .
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+# Desktop file
+desktop-file-install \
+--dir %{buildroot}%{_datadir}/applications/ \
+--vendor="" \
+desktop/kflickr.desktop
+
+# HTML
+HTML_DIR=$(kde4-config --expandvars --install html)
+# install docs
+cd doc
+for i in *; do 
+mkdir -p %{buildroot}$HTML_DIR/$i/%{name}
+cp -pR $i/* %{buildroot}$HTML_DIR/$i/%{name}/
+pushd %{buildroot}/$HTML_DIR/$i/%{name}
+ln -s ../../$i/common common
+popd
+done
+cd ..
+%find_lang %{name} --with-kde
+# install man page
+mkdir -p %{buildroot}%{_mandir}/man1/
+install -pm 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
+
+%clean
+rm -rf %{buildroot}
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files  -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING COPYING-DOCS README 
+%{_bindir}/*
+%{_datadir}/icons/hicolor/*/apps/*
+%{_datadir}/applications/kde4/*
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/kde4/apps/*
+%{_mandir}/man1/*
+
+%changelog
+* Sat Jul 23 2011 Jan Klepek <jan.klepek at, gmail.com> - 20100817-3
+- Updated Requires and fixed icon handling
+
+* Mon Mar 21 2011 Jan Klepek <jan.klepek at, gmail.com> - 20100817-2
+- updated Buildrequires and requires
+
+* Sun Mar 13 2011 Jan Klepek <jan.klepek at, gmail.com> - 20100817-1
+- updated to latest version and rewritten spec file
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Dec  4 2008 Michael Schwendt <mschwendt at fedoraproject.org> - 0.9.1-3
+- Include unowned directories.
+
+* Tue Apr 01 2008 Rex Dieter <rdieter at fedoraproject.org> - 0.9.1-2
+- fix rawhide build (#434440)
+- s/kdebase3-devel/kdelibs3-devel/
+- fix SOURCE url
+
+* Sat Feb 23 2008 Michael Stahnke <mastahnke at gmail.com> - 0.9.1-1
+- New upstream
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 0.9-2
+- Autorebuild for GCC 4.3
+
+* Tue Sep 18 2007 Michael Stahnke <mastahnke at gmail.com> - 0.9-1
+- License updated per new guidelines 
+- Bump for upstream release (0.9)
+
+* Mon May 14 2007 Michael Stahnke <mastahnke at gmail.com> - 0.8-3
+- Final touch-up for review bug # 237355
+
+* Mon May 14 2007 Michael Stahnke <mastahnke at gmail.com> - 0.8-2
+- Minor fix for bug # 237355
+
+* Thu Apr 19 2006 Michael Stahnke <mastahnke at gmail.com> - 0.8-1
+- Initial Package
diff --git a/sources b/sources
new file mode 100644
index 0000000..e28c59a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a242994345de077c2a4bd07968cc217a  kflickr-20100817.tar.bz2


More information about the scm-commits mailing list