2011-02-11 01:59:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnote
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-06-01 10:58:48 +02:00
|
|
|
|
2011-05-31 15:57:41 +02:00
|
|
|
%define build_applet %{?favor_gtk2}
|
2011-02-11 01:59:50 +01:00
|
|
|
|
2010-12-21 12:27:21 +01:00
|
|
|
Name: gnote
|
2011-05-12 10:17:09 +02:00
|
|
|
Version: 0.7.4
|
|
|
|
Release: 1
|
2011-05-31 15:57:41 +02:00
|
|
|
# FIXME: on version upgrade, check if build_applet is still needed (last checked: 0.7.4)
|
2010-12-21 12:27:21 +01:00
|
|
|
License: GNU GPL v3 or later
|
2011-02-13 21:57:15 +01:00
|
|
|
Summary: A Port of Tomboy to C++
|
2010-12-21 12:27:21 +01:00
|
|
|
Group: Productivity/Text/Editors
|
|
|
|
Url: http://live.gnome.org/Gnote
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-05-31 15:57:41 +02:00
|
|
|
# PATCH-FIX-UPSTREAM gnote-no-deprecated.patch bgo#651551 vuntz@opensuse.org -- Do not use deprecated API
|
|
|
|
Patch0: gnote-no-deprecated.patch
|
2010-12-21 12:27:21 +01:00
|
|
|
BuildRequires: boost-devel >= 1.34
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gconf2-devel
|
|
|
|
BuildRequires: gnome-doc-utils-devel
|
|
|
|
BuildRequires: gtkmm2-devel >= 2.20
|
|
|
|
BuildRequires: gtkspell-devel
|
|
|
|
BuildRequires: intltool
|
2011-05-31 15:57:41 +02:00
|
|
|
%if 0%{?build_applet}
|
2010-12-21 12:27:21 +01:00
|
|
|
BuildRequires: libpanelappletmm-devel
|
2011-05-31 15:57:41 +02:00
|
|
|
%endif
|
2010-12-21 12:27:21 +01:00
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2011-02-13 21:57:15 +01:00
|
|
|
Recommends: %{name}-lang
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-21 12:27:21 +01:00
|
|
|
%gconf_schemas_prereq
|
|
|
|
|
|
|
|
%description
|
2011-02-13 21:57:15 +01:00
|
|
|
It is the same note taking application, including most of the add-ins (more are
|
2010-12-21 12:27:21 +01:00
|
|
|
to come). Synchronization support is being worked on.
|
|
|
|
|
2011-02-11 01:59:50 +01:00
|
|
|
%lang_package
|
2010-12-21 12:27:21 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-05-31 15:57:41 +02:00
|
|
|
%patch0 -p1
|
2010-12-21 12:27:21 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static --disable-schemas-install --disable-scrollkeeper --enable-dbus
|
|
|
|
V=1 %__make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%__make install DESTDIR=%{buildroot}
|
|
|
|
%suse_update_desktop_file gnote Utility DesktopUtility
|
|
|
|
%find_gconf_schemas
|
2011-02-13 21:57:15 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
2010-12-21 12:27:21 +01:00
|
|
|
|
|
|
|
%pre -f %{name}.schemas_pre
|
|
|
|
|
|
|
|
%preun -f %{name}.schemas_preun
|
|
|
|
|
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
|
2011-02-13 21:57:15 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
2011-04-04 15:07:01 +02:00
|
|
|
|
2011-02-13 21:57:15 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1130
|
2011-04-04 15:07:01 +02:00
|
|
|
|
2011-02-13 21:57:15 +01:00
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
2010-12-21 12:27:21 +01:00
|
|
|
|
|
|
|
%files -f %{name}.schemas_list
|
|
|
|
%defattr(-,root,root)
|
2011-02-13 21:57:15 +01:00
|
|
|
%dir %{_datadir}/gnome/
|
|
|
|
%dir %{_datadir}/gnome/help/
|
|
|
|
%dir %{_datadir}/gnome/help/%{name}/
|
|
|
|
%doc %{_datadir}/gnome/help/%{name}/C/
|
|
|
|
%dir %{_datadir}/omf/
|
|
|
|
%dir %{_datadir}/omf/%{name}/
|
|
|
|
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
|
2010-12-21 12:27:21 +01:00
|
|
|
%{_bindir}/gnote
|
2011-05-31 15:57:41 +02:00
|
|
|
%if 0%{?build_applet}
|
2010-12-21 12:27:21 +01:00
|
|
|
%{_prefix}/lib/gnote-applet
|
|
|
|
%{_libdir}/bonobo/servers/GNOME_GnoteApplet.server
|
2011-05-31 15:57:41 +02:00
|
|
|
%endif
|
2011-02-13 21:57:15 +01:00
|
|
|
%{_libdir}/gnote/
|
2010-12-21 12:27:21 +01:00
|
|
|
%{_datadir}/applications/gnote.desktop
|
2011-02-13 21:57:15 +01:00
|
|
|
%{_datadir}/gnote/
|
2010-12-21 12:27:21 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/gnote.*
|
|
|
|
%{_mandir}/man1/gnote.1*
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2011-02-11 01:59:50 +01:00
|
|
|
|
|
|
|
%changelog
|