]> git.pld-linux.org Git - packages/gnome-calculator.git/blob - gcalctool.spec
8485d22d5127d306428aed6ed6fdef80ddca4b35
[packages/gnome-calculator.git] / gcalctool.spec
1 Summary:        GNOME calculator
2 Summary(pl):    Kalkulator dla GNOME
3 Name:           gcalctool
4 Version:        5.5.41
5 Release:        3
6 License:        GPL v2
7 Group:          Applications/Math
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/gcalctool/5.5/%{name}-%{version}.tar.bz2
9 # Source0-md5:  d4eb2287fa4236fc5a5bf52a930f33f5
10 Patch0:         %{name}-desktop.patch
11 URL:            http://www.gnome.org/
12 BuildRequires:  GConf2-devel >= 2.10.0
13 BuildRequires:  atk-devel >= 1:1.9.1
14 BuildRequires:  autoconf >= 2.53
15 BuildRequires:  automake
16 BuildRequires:  bison
17 BuildRequires:  flex
18 BuildRequires:  intltool
19 BuildRequires:  libgnomeui-devel >= 2.10.0-2
20 Buildrequires:  pkgconfig
21 BuildRequires:  rpmbuild(macros) >= 1.196
22 BuildRequires:  scrollkeeper
23 Requires(post,preun):   GConf2
24 Requires(post,postun):  scrollkeeper
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 gcalctool is a simple calculator that performs a variety of functions.
29
30 %description -l pl
31 gcalctool jest prostym kalkulatorem spe³niaj±cym wiele funkcji.
32
33 %prep
34 %setup -q
35 %patch0 -p0
36
37 %build
38 %{__aclocal}
39 %{__autoconf}
40 %{__automake}
41 %configure \
42         --disable-schemas-install
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT \
50         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
51
52 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
53
54 %find_lang %{name} --with-gnome --all-name
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post
60 /usr/bin/scrollkeeper-update -q
61 %gconf_schema_install /etc/gconf/schemas/gcalctool.schemas
62
63 %preun
64 if [ $1 = 0 ]; then
65         %gconf_schema_uninstall /etc/gconf/schemas/gcalctool.schemas
66 fi
67
68 %postun
69 if [ $1 = 0 ]; then
70         /usr/bin/scrollkeeper-update -q
71 fi
72
73 %files -f %{name}.lang
74 %defattr(644,root,root,755)
75 %doc AUTHORS ChangeLog MAINTAINERS NEWS README TODO gcalctoolrc
76 %attr(755,root,root) %{_bindir}/%{name}
77 %{_sysconfdir}/gconf/schemas/*
78 %{_desktopdir}/*
79 %{_omf_dest_dir}/%{name}
80 %{_mandir}/man1/*
This page took 0.021895 seconds and 2 git commands to generate.