This commit is contained in:
parent
d07084a605
commit
c531a5390e
@ -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
|
||||
|
||||
|
136
gnucash.spec
136
gnucash.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
@ -12,25 +12,24 @@
|
||||
|
||||
Name: gnucash
|
||||
Version: 2.0.2
|
||||
Release: 22
|
||||
Release: 39
|
||||
URL: http://www.gnucash.org/
|
||||
Group: Productivity/Office/Finance
|
||||
License: GNU General Public License (GPL) - all versions
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Personal Finance Manager
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Patch: fix-desktop-file.diff
|
||||
Autoreqprov: on
|
||||
PreReq: gnome-filesystem gconf2
|
||||
PreReq: %install_info_prereq
|
||||
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:
|
||||
BuildRequires: aqbanking-devel libofx-devel postgresql-devel
|
||||
# Needed for autoreconf:
|
||||
BuildRequires: intltool
|
||||
#BuildRequires: callgrind
|
||||
# tested but unused BuildRequires: readline-devel qt3-devel temcap
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: %install_info_prereq
|
||||
Autoreqprov: on
|
||||
|
||||
%gconf_schemas_prereq
|
||||
|
||||
%description
|
||||
GnuCash is a personal finance manager. A check book-like register GUI
|
||||
@ -408,22 +407,17 @@ Authors:
|
||||
%if %suse_version > 1020
|
||||
%patch
|
||||
%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
|
||||
export GUILE_WARN_DEPRECATED=no
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
mkdir m4
|
||||
intltoolize --force
|
||||
#intltoolize --force
|
||||
ACLOCAL="aclocal -I macros" autoreconf -f -i
|
||||
./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}\
|
||||
%configure\
|
||||
--disable-schemas-install\
|
||||
--libexecdir=%{_prefix}/lib\
|
||||
--enable-sql\
|
||||
--enable-ofx\
|
||||
--enable-mt940\
|
||||
@ -431,93 +425,71 @@ ACLOCAL="aclocal -I macros" autoreconf -f -i
|
||||
--enable-hbci\
|
||||
--enable-locale-specific-tax
|
||||
# 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"
|
||||
|
||||
%install
|
||||
mkdir -p $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%{_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%{_docdir}/%{name}
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
%suse_update_desktop_file gnucash
|
||||
rm $RPM_BUILD_ROOT/opt/gnome/share/info/dir
|
||||
gzip -9nf $RPM_BUILD_ROOT/opt/gnome/share/man/man?/*.?
|
||||
gzip -9nf $RPM_BUILD_ROOT/opt/gnome/share/info/*.info*
|
||||
rm $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%find_lang gnucash
|
||||
%find_gconf_schemas
|
||||
cat %{name}.lang %{name}.schemas_list >%{name}.lst
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre -f %{name}.schemas_pre
|
||||
|
||||
%post
|
||||
%run_ldconfig
|
||||
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
|
||||
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
|
||||
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
|
||||
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
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/gnucash-design.info.gz
|
||||
|
||||
%posttrans -f %{name}.schemas_posttrans
|
||||
|
||||
%preun -f %{name}.schemas_preun
|
||||
|
||||
%postun
|
||||
%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)
|
||||
%doc %{_defaultdocdir}/%{name}
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_business_common.schemas
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_commodities.schemas
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_common.schemas
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_hbci.schemas
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_prices.schemas
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_print_checks.schemas
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_reconcile.schemas
|
||||
/etc/opt/gnome/gconf/schemas/apps_gnucash_dialog_scheduled_transctions.schemas
|
||||
/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.*
|
||||
%doc %{_docdir}/%{name}
|
||||
%{_bindir}/gnc-*
|
||||
%{_bindir}/gnucash
|
||||
%{_bindir}/*gnucash-[a-bd-z]*
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/gnucash
|
||||
%{_datadir}/pixmaps/*.png
|
||||
%{_datadir}/xml/gnucash
|
||||
%{_libdir}/*.so.*
|
||||
# Required by slib for many libraries:
|
||||
/opt/gnome/%{_lib}/*.so
|
||||
/opt/gnome/bin/gnc-*
|
||||
/opt/gnome/bin/gnucash
|
||||
/opt/gnome/bin/*gnucash-[a-bd-z]*
|
||||
/opt/gnome/share/aclocal/*.m4
|
||||
/opt/gnome/share/applications/*.desktop
|
||||
/opt/gnome/share/gnucash
|
||||
%doc /opt/gnome/share/man/man?/*.*
|
||||
%doc /opt/gnome/share/info/gnucash-design.info*
|
||||
/opt/gnome/share/pixmaps/*.png
|
||||
/opt/gnome/share/xml/gnucash
|
||||
# FIXME: Should be part of gnome-filesystem (now gnome-doc-utils)
|
||||
%dir /opt/gnome/share/xml
|
||||
%{_libdir}/*.so
|
||||
# NOTE: .la files are required by ltdl in the main package (skip-check-libtool-deps)
|
||||
%{_libdir}/*.la
|
||||
%{_libdir}/gnucash
|
||||
%doc %{_infodir}/gnucash-design.info*
|
||||
%doc %{_mandir}/man?/*.*
|
||||
%if "%{_libdir}" != "%{_prefix}/lib"
|
||||
%{_prefix}/lib/gnucash
|
||||
%endif
|
||||
%dir %{_sysconfdir}/gnucash
|
||||
%config %{_sysconfdir}/gnucash/config
|
||||
|
||||
%files devel
|
||||
%defattr (-, root, root)
|
||||
/opt/gnome/%{_lib}/*.*a
|
||||
/opt/gnome/bin/*-config
|
||||
/opt/gnome/include/gnucash
|
||||
%{_bindir}/*-config
|
||||
%{_datadir}/aclocal/*.m4
|
||||
%{_includedir}/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
|
||||
- Fix Name entry of .desktop file post openSUSE 10.2
|
||||
* Fri Oct 13 2006 - aj@suse.de
|
||||
|
Loading…
x
Reference in New Issue
Block a user