File gnome-blog.spec of Package gnome-blog

#
# spec file for package gnome-blog
#
# Copyright (c) 2011 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:           gnome-blog
BuildRequires:  fdupes gconf2-devel intltool python-devel python-gnome-devel python-gobject2-devel translation-update-upstream update-desktop-files
BuildRequires:  desktop-file-utils
Version:        0.9.2
Release:        7
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Utilities
Requires:       python-gnome python-gnome-extras gnome-python-desktop
Summary:        A GNOME Panel Applet for Posting to bloggerAPI-Compatible Blogs
Url:            http://www.gnome.org/~seth/gnome-blog/
Source:         %{name}-%{version}.tar.bz2
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%gconf_schemas_prereq

%description
gnome-blog is a panel object (applet) that can post to bloggerAPI
compatible blogs including blogger.com, pyblosxom, and moveable-type.

%lang_package
%prep
%setup -q
translation-update-upstream
# This should not be disted, it contains a hardcoded path
# Correct one is GNOME_BlogApplet.server.in.in
rm GNOME_BlogApplet.server.in

%build
%configure\
	--libexecdir=%{_libexecdir}/gnome-blog
make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -r -G gnome-blog gnome-blog GNOME Application Utility TextEditor
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
# Some sites use different partitions for /usr/(lib|lib64) and /usr/share.  Since you
# can't create hardlinks across partitions, we'll do this more than once.
%fdupes $RPM_BUILD_ROOT/%{_libdir}
%fdupes $RPM_BUILD_ROOT/%{_datadir}
%fdupes $RPM_BUILD_ROOT/%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING
%{_bindir}/gnome-blog-poster
%{_libdir}/bonobo/servers/GNOME_BlogApplet.server
%{_datadir}/applications/gnome-blog.desktop
%{_datadir}/gnome-2.0/ui/GNOME_BlogApplet.xml
%{_datadir}/icons/hicolor/*/apps/gnome-blog.*
%{_libexecdir}/gnome-blog
%{python_sitelib}/gnomeblog

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by