OBS User unknown 2007-01-16 19:07:44 +00:00 committed by Git OBS Bridge
parent d07084a605
commit c531a5390e
2 changed files with 60 additions and 82 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 16 17:57:01 CET 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 12 21:34:34 CET 2006 - stbinner@suse.de Sun Nov 12 21:34:34 CET 2006 - stbinner@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package gnucash (Version 2.0.2) # spec file for package gnucash (Version 2.0.2)
# #
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -12,25 +12,24 @@
Name: gnucash Name: gnucash
Version: 2.0.2 Version: 2.0.2
Release: 22 Release: 39
URL: http://www.gnucash.org/ URL: http://www.gnucash.org/
Group: Productivity/Office/Finance Group: Productivity/Office/Finance
License: GNU General Public License (GPL) - all versions License: GNU General Public License (GPL)
Summary: Personal Finance Manager Summary: Personal Finance Manager
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Patch: fix-desktop-file.diff Patch: fix-desktop-file.diff
Autoreqprov: on
PreReq: gnome-filesystem gconf2
PreReq: %install_info_prereq
Requires: guile slib Requires: guile slib
BuildRequires: doxygen g-wrap-devel gconf2-devel glib2-devel goffice-devel graphviz gtk2-devel gtkhtml2-devel guile-devel indent ktoblzcheck-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libgsf-devel libofx-devel libxml2-devel perl-XML-Parser popt-devel slib update-desktop-files BuildRequires: doxygen g-wrap-devel gconf2-devel glib2-devel goffice-devel graphviz gtk2-devel gtkhtml2-devel guile-devel indent intltool ktoblzcheck-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libgsf-devel libofx-devel libxml2-devel perl-XML-Parser popt-devel slib update-desktop-files
# Optional features: # Optional features:
BuildRequires: aqbanking-devel libofx-devel postgresql-devel BuildRequires: aqbanking-devel libofx-devel postgresql-devel
# Needed for autoreconf:
BuildRequires: intltool
#BuildRequires: callgrind #BuildRequires: callgrind
# tested but unused BuildRequires: readline-devel qt3-devel temcap # tested but unused BuildRequires: readline-devel qt3-devel temcap
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
Autoreqprov: on
%gconf_schemas_prereq
%description %description
GnuCash is a personal finance manager. A check book-like register GUI GnuCash is a personal finance manager. A check book-like register GUI
@ -408,22 +407,17 @@ Authors:
%if %suse_version > 1020 %if %suse_version > 1020
%patch %patch
%endif %endif
sed -i "s:^\(GNC_DOC_INSTALL_DIR=\).*$:\1'%{_defaultdocdir}/%{name}':" configure.in sed -i "s:^\(GNC_DOC_INSTALL_DIR=\).*$:\1'%{_docdir}/%{name}':" configure.in
%build %build
export GUILE_WARN_DEPRECATED=no export GUILE_WARN_DEPRECATED=no
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
mkdir m4 mkdir m4
intltoolize --force #intltoolize --force
ACLOCAL="aclocal -I macros" autoreconf -f -i ACLOCAL="aclocal -I macros" autoreconf -f -i
./configure \ %configure\
--sysconfdir=/etc/opt/gnome\
--prefix=/opt/gnome\
--infodir=/opt/gnome/share/info\
--mandir=/opt/gnome/share/man\
--libexecdir=/opt/gnome/lib\
--libdir=/opt/gnome/%{_lib}\
--disable-schemas-install\ --disable-schemas-install\
--libexecdir=%{_prefix}/lib\
--enable-sql\ --enable-sql\
--enable-ofx\ --enable-ofx\
--enable-mt940\ --enable-mt940\
@ -431,93 +425,71 @@ ACLOCAL="aclocal -I macros" autoreconf -f -i
--enable-hbci\ --enable-hbci\
--enable-locale-specific-tax --enable-locale-specific-tax
# Workaround for apparent bug in guile when stdin is redicted from /dev/null # Workaround for apparent bug in guile when stdin is redicted from /dev/null
# parallel build does not work for gnucash-2.0.2:
#make GUILE="guile --debug" %{?jobs:-j%jobs}
make GUILE="guile --debug" make GUILE="guile --debug"
%install %install
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp AUTHORS COPYING ChangeLog ChangeLog.2003 ChangeLog.2004 ChangeLog.2005 DOCUMENTERS HACKING LICENSE NEWS README README.dependencies README.patches TODO $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} cp AUTHORS COPYING ChangeLog ChangeLog.2003 ChangeLog.2004 ChangeLog.2005 DOCUMENTERS HACKING LICENSE NEWS README README.dependencies README.patches TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file gnucash %suse_update_desktop_file gnucash
rm $RPM_BUILD_ROOT/opt/gnome/share/info/dir rm $RPM_BUILD_ROOT%{_infodir}/dir
gzip -9nf $RPM_BUILD_ROOT/opt/gnome/share/man/man?/*.?
gzip -9nf $RPM_BUILD_ROOT/opt/gnome/share/info/*.info*
%find_lang gnucash %find_lang gnucash
%find_gconf_schemas
cat %{name}.lang %{name}.schemas_list >%{name}.lst
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post %post
%run_ldconfig %run_ldconfig
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` %install_info --info-dir=%{_infodir} %{_infodir}/gnucash-design.info.gz
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_business_common.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_commodities.schemas >/dev/null %posttrans -f %{name}.schemas_posttrans
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_common.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_hbci.schemas >/dev/null %preun -f %{name}.schemas_preun
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_prices.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_print_checks.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_reconcile.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_scheduled_transctions.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_totd.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_general.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_history.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_import_generic_matcher.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_warnings.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_window_pages_account_tree.schemas >/dev/null
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/apps_gnucash_window_pages_register.schemas >/dev/null
%install_info --info-dir=/opt/gnome/share/info /opt/gnome/share/info/gnucash-design.info.gz
%postun %postun
%run_ldconfig %run_ldconfig
%install_info_delete --info-dir=/opt/gnome/share/info /opt/gnome/share/info/gnucash-design.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnucash-design.info.gz
%files -f gnucash.lang %files -f %{name}.lst
%defattr (-, root, root) %defattr (-, root, root)
%doc %{_defaultdocdir}/%{name} %doc %{_docdir}/%{name}
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_business_common.schemas %{_bindir}/gnc-*
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_commodities.schemas %{_bindir}/gnucash
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_common.schemas %{_bindir}/*gnucash-[a-bd-z]*
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_hbci.schemas %{_datadir}/applications/*.desktop
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_prices.schemas %{_datadir}/gnucash
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_print_checks.schemas %{_datadir}/pixmaps/*.png
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_reconcile.schemas %{_datadir}/xml/gnucash
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_scheduled_transctions.schemas %{_libdir}/*.so.*
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_totd.schemas
/etc/opt/gnome/gconf/schemas/apps_gnucash_general.schemas
/etc/opt/gnome/gconf/schemas/apps_gnucash_history.schemas
/etc/opt/gnome/gconf/schemas/apps_gnucash_import_generic_matcher.schemas
/etc/opt/gnome/gconf/schemas/apps_gnucash_warnings.schemas
/etc/opt/gnome/gconf/schemas/apps_gnucash_window_pages_account_tree.schemas
/etc/opt/gnome/gconf/schemas/apps_gnucash_window_pages_register.schemas
%dir /etc/opt/gnome/gnucash
%config /etc/opt/gnome/gnucash/config
/opt/gnome/lib/gnucash
%if %{_lib} != lib
# NOTE: .la files required by ltdl (skip-check-libtool-deps)
/opt/gnome/%{_lib}/gnucash
%endif
/opt/gnome/%{_lib}/*.so.*
# Required by slib for many libraries: # Required by slib for many libraries:
/opt/gnome/%{_lib}/*.so %{_libdir}/*.so
/opt/gnome/bin/gnc-* # NOTE: .la files are required by ltdl in the main package (skip-check-libtool-deps)
/opt/gnome/bin/gnucash %{_libdir}/*.la
/opt/gnome/bin/*gnucash-[a-bd-z]* %{_libdir}/gnucash
/opt/gnome/share/aclocal/*.m4 %doc %{_infodir}/gnucash-design.info*
/opt/gnome/share/applications/*.desktop %doc %{_mandir}/man?/*.*
/opt/gnome/share/gnucash %if "%{_libdir}" != "%{_prefix}/lib"
%doc /opt/gnome/share/man/man?/*.* %{_prefix}/lib/gnucash
%doc /opt/gnome/share/info/gnucash-design.info* %endif
/opt/gnome/share/pixmaps/*.png %dir %{_sysconfdir}/gnucash
/opt/gnome/share/xml/gnucash %config %{_sysconfdir}/gnucash/config
# FIXME: Should be part of gnome-filesystem (now gnome-doc-utils)
%dir /opt/gnome/share/xml
%files devel %files devel
%defattr (-, root, root) %defattr (-, root, root)
/opt/gnome/%{_lib}/*.*a %{_bindir}/*-config
/opt/gnome/bin/*-config %{_datadir}/aclocal/*.m4
/opt/gnome/include/gnucash %{_includedir}/gnucash
%changelog -n gnucash %changelog -n gnucash
* Tue Jan 16 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Sun Nov 12 2006 - stbinner@suse.de * Sun Nov 12 2006 - stbinner@suse.de
- Fix Name entry of .desktop file post openSUSE 10.2 - Fix Name entry of .desktop file post openSUSE 10.2
* Fri Oct 13 2006 - aj@suse.de * Fri Oct 13 2006 - aj@suse.de