File gnome-blog.spec of Package gnome-blog

# spec file for package gnome-blog (Version 0.9.1)
# Copyright (c) 2009 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

# norootforbuild

Name:           gnome-blog
BuildRequires:  fdupes intltool python-devel python-gnome-devel python-gobject2-devel translation-update-upstream update-desktop-files
Version:        0.9.1
Release:        274
License:        GPL v2 or later
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
Source:         %{name}-%{version}.tar.bz2
Patch:          gnome-blog-deprecation-warning.patch
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}

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

%setup -q
# This should not be disted, it contains a hardcoded path
# Correct one is

make %{?jobs:-j%jobs}

%suse_update_desktop_file gnome-blog Utility TextEditor
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}
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}


%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr(-, root, root)

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by