GUI improvements for Sheet Rename dialog
[gnumeric.git] / gnumeric.spec.in
blob38c14f778f5de1ae75eefc8dfb2677634e1bd4f8
1 # This file is basically not maintained. Use as inspiration only.
3 %define RELEASE 1
4 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
6 Name: gnumeric
7 Epoch: %epoch
8 Version: @VERSION@
9 Release: %rel
10 Summary: Spreadsheet program for GNOME
11 Group: Applications/Productivity
12 License: GPLv2
13 URL: http://www.gnome.org/gnumeric/
14 Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.11/%{name}-%{version}.tar.bz2
15 BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
16 BuildRequires: goffice-devel >= 0.10.9
17 BuildRequires: libgsf-devel >= 1.14.24
18 BuildRequires: libxml-2.0-devel >= 2.4.12
19 BuildRequires: glib-2.0-devel >= 2.38.0
20 BuildRequires: pango-devel >= 1.24.0
21 BuildRequires: scrollkeeper
22 Requires: scrollkeeper hicolor-icon-theme
23 Requires(pre): GConf2
24 Requires(post): /sbin/ldconfig GConf2 scrollkeeper
25 Requires(preun): GConf2
26 Requires(postun): /sbin/ldconfig scrollkeeper
28 %description
29 This is Gnumeric, a spreadsheet for GNOME. It aims to be a drop in
30 replacement for proprietary spreadsheets. It provides import/export from
31 MS Excel files and many other formats (odf, csv, latex, xbase, applix, quattro pro,
32 planperfect).
36 %package devel
37 Summary: Files necessary to develop gnumeric-based applications
38 Group: Development/Libraries
39 Requires: %{name} = %{epoch}:%{PACKAGE_VERSION}-%{release}
40 Requires: pkgconfig
42 %description devel
43 Gnumeric is a spreadsheet program for the GNOME GUI desktop
44 environment. The gnumeric-devel package includes files necessary to
45 develop gnumeric-based applications.
48 %package plugins-extras
49 Summary: Files necessary to develop gnumeric-based applications
50 Group: Applications/Productivity
51 Requires: %{name} = %{epoch}:%{PACKAGE_VERSION}-%{release}
52 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
54 %description plugins-extras
55 This package contains the following additional plugins for gnumeric:
56 * gda and gnomedb plugins:
57 Database functions for retrieval of data from a database.
58 * perl plugin:
59 This plugin allows writing of plugins in perl
62 %prep
63 %setup -q
65 %build
66 %configure --enable-ssindex
67 make %{?_smp_mflags}
70 %install
72 rm -rf $RPM_BUILD_ROOT
74 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
75 make DESTDIR=$RPM_BUILD_ROOT install
76 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
78 %find-lang %{name}
80 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
81 desktop-file-install --vendor gnumeric --delete-original \
82 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
83 --add-category Office \
84 --add-category Spreadsheet \
85 $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
87 #put icon in the proper place
88 mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps
89 mv $RPM_BUILD_ROOT/usr/share/pixmaps/gnome-%{name}.png \
90 $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/%{name}.png
92 #remove unused mime type icons
93 rm $RPM_BUILD_ROOT/%{_datadir}/pixmaps/gnome-application-*.png
94 rm $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}/gnome-application-*.png
96 #remove spurious .ico thing
97 rm $RPM_BUILD_ROOT/usr/share/pixmaps/win32-%{name}.ico
98 rm $RPM_BUILD_ROOT/usr/share/pixmaps/%{name}/win32-%{name}.ico
100 #remove scrollkeeper stuff
101 rm -rf $RPM_BUILD_ROOT/var
103 #remove .la files
104 rm $RPM_BUILD_ROOT/%{_libdir}/libspreadsheet.la
105 rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/%{version}/plugins/*/*.la
108 %clean
109 rm -rf $RPM_BUILD_ROOT
112 %pre
113 if [ "$1" -gt 1 ]; then
114 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
115 gconftool-2 --makefile-uninstall-rule \
116 %{_sysconfdir}/gconf/schemas/%{name}*.schemas > /dev/null || :
120 %post
121 /sbin/ldconfig
122 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
123 /usr/bin/gconftool-2 --makefile-install-rule \
124 %{_sysconfdir}/gconf/schemas/%{name}*.schemas > /dev/null || :
125 scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
126 touch --no-create %{_datadir}/icons/hicolor || :
127 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
128 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
132 %preun
133 if [ "$1" -eq 0 ]; then
134 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
135 gconftool-2 --makefile-uninstall-rule \
136 %{_sysconfdir}/gconf/schemas/%{name}*.schemas > /dev/null || :
140 %postun
141 /sbin/ldconfig
142 scrollkeeper-update -q || :
143 touch --no-create %{_datadir}/icons/hicolor || :
144 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
145 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
149 %files -f %{name}.lang
150 %defattr(-,root,root,-)
151 %doc HACKING AUTHORS ChangeLog NEWS BUGS README COPYING
152 %{_sysconfdir}/gconf/schemas/*.schemas
153 %{_bindir}/*
154 %{_libdir}/libspreadsheet-%{version}.so
155 %dir %{_libdir}/%{name}
156 %{_libdir}/%{name}/%{version}
157 %exclude %{_libdir}/%{name}/%{version}/include
158 %exclude %{_libdir}/%{name}/%{version}/plugins/perl-*
159 #%exclude %{_libdir}/%{name}/%{version}/plugins/gdaif
160 #%exclude %{_libdir}/%{name}/%{version}/plugins/gnome-db
161 %{_datadir}/pixmaps/%{name}
162 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
163 %dir %{_datadir}/%{name}
164 %{_datadir}/%{name}/%{version}
165 %exclude %{_datadir}/%{name}/%{version}/idl
166 %{_datadir}/applications/fedora-%{name}.desktop
167 # The actual omf file is in gnumeric.lang, but find-lang doesn't own the dir!
168 %dir %{_datadir}/omf/%{name}
169 %{_mandir}/man1/*
171 %files devel
172 %defattr(-,root,root)
173 %{_datadir}/%{name}/%{version}/idl
174 %{_libdir}/libspreadsheet.so
175 %{_libdir}/pkgconfig/libspreadsheet-1.8.pc
176 %{_includedir}/libspreadsheet-1.8
177 %{_libdir}/%{name}/%{version}/include
179 %files plugins-extras
180 %defattr(-,root,root,-)
181 %{_libdir}/%{name}/%{version}/plugins/perl-*
182 #%{_libdir}/%{name}/%{version}/plugins/gdaif
183 #%{_libdir}/%{name}/%{version}/plugins/gnome-db
186 %changelog