From 39d4c8b25a37410d1781c6fbfe74eccb1b5fe539 Mon Sep 17 00:00:00 2001 From: Paul W. Frields Date: Sep 27 2005 22:48:15 +0000 Subject: auto-import blogtk-1.1-4 on branch devel from blogtk-1.1-4.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..494c762 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +blogtk_1.1.tar.bz2 diff --git a/BSD b/BSD new file mode 100644 index 0000000..08d8c9b --- /dev/null +++ b/BSD @@ -0,0 +1,26 @@ +Copyright (c) 2005, Jay Reding. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. Redistributions +in binary form must reproduce the above copyright notice, this list of +conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. Neither the name of +the author nor the names of contributors may be used to endorse or +promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/blogtk.spec b/blogtk.spec new file mode 100644 index 0000000..c8e99b7 --- /dev/null +++ b/blogtk.spec @@ -0,0 +1,96 @@ +# Note to Fedora Extras reviewers: The developer is very inconsistent +# about the capitalization of the program name. I have erred on the +# conservative side. +Name: blogtk +Version: 1.1 +Release: 4%{?dist} +Summary: Gnome application for editing/maintaining blogs +Group: Applications/Internet +License: BSD +URL: http://blogtk.sourceforge.net +Source0: http://dl.sf.net/blogtk/blogtk_%{version}.tar.bz2 +Source1: BSD +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: gnome-python2 >= 2.00 +Requires: pygtk2 >= 2.00 +Requires: aspell +BuildRequires: pygtk2-devel >= 2.00 +BuildRequires: glib2-devel +BuildRequires: desktop-file-utils +# To make sure this doesn't inflict pain on CapNames users +Provides: BloGTK = %{version}-%{release} + + +%description +BloGTK is a weblog posting client written in Python for any platform that +supports Python and the GTK widget set. BloGTK allows you to connect to your +weblog with XML-RPC and create new posts. + + +%prep +%setup -q -n BloGTK-%{version} +cp %{SOURCE1} $RPM_BUILD_DIR/BloGTK-%{version} + + +%build + + +%install +rm -rf $RPM_BUILD_ROOT +# Cope with developer's Makefile and Fedora standards +%define pyver %(python -c "import sys; x = sys.version_info; print '%%s.%%s' %% (x[0], x[1])") +install -m 755 -d $RPM_BUILD_ROOT/%{_bindir} +install -m 755 -d $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/%{name} +install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/{%{name},pixmaps/%{name}} +install -m 755 src/* \ + $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/%{name} +install -m 644 pixmaps/blogtk.glade \ + $RPM_BUILD_ROOT/%{_datadir}/%{name} +install -m 644 pixmaps/*.png $RPM_BUILD_ROOT/%{_datadir}/%{name} +install -m 644 -D data/blogtk-icon.png \ + $RPM_BUILD_ROOT/%{_datadir}/pixmaps/blogtk-icon.png +%{__sed} -i 's/Exec=BloGTK/Exec=blogtk/' data/blogtk.desktop +install -m 644 -D data/blogtk.desktop \ + $RPM_BUILD_ROOT/%{_datadir}/applications/blogtk.desktop +cat << EOF > $RPM_BUILD_ROOT/%{_bindir}/blogtk +#!/bin/sh +exec %{_libdir}/python%{pyver}/site-packages/%{name}/BloGTK.py +EOF +chmod 755 $RPM_BUILD_ROOT/%{_bindir}/blogtk +desktop-file-install --vendor=fedora \ + --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ + --add-category=X-Fedora \ + --delete-original \ + --add-category=Network \ + $RPM_BUILD_ROOT/%{_datadir}/applications/blogtk.desktop + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog README BSD +%{_bindir}/* +%dir %{_libdir}/python%{pyver}/site-packages/%{name} +%{_libdir}/python%{pyver}/site-packages/%{name}/* +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/* +%{_datadir}/applications/fedora-blogtk.desktop +%{_datadir}/pixmaps/blogtk-icon.png + + +%changelog +* Mon Aug 29 2005 Paul W. Frields - 1.1-4 +- Add BSD license file + +* Sat Aug 20 2005 Paul W. Frields - 1.1-3 +- Revised packaging to match current Fedora Extras guidelines + +* Mon Mar 21 2005 Seth Vidal 1.1-2 +- fixes for fedora extras compliance + +* Thu Mar 17 2005 Seth Vidal 1.1-1 +- initial package diff --git a/sources b/sources index e69de29..d236f5f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cd2d2521a261867cd9c830a81d3d4408 blogtk_1.1.tar.bz2