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 http://bugs.opensuse.org/
#
# 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
Url: http://www.gnome.org/~seth/gnome-blog/
Source: %{name}-%{version}.tar.bz2
Patch: gnome-blog-deprecation-warning.patch
Requires: %{name}-lang = %{version}
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
%patch
# 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=%{_prefix}/lib/gnome-blog
make %{?jobs:-j%jobs}
%install
%makeinstall
%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}
%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
%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}/pixmaps/gnome-blog.png
%{_prefix}/lib/gnome-blog
%{python_sitelib}/gnomeblog
%files lang -f %{name}.lang
%changelog