]> git.pld-linux.org Git - packages/ggv.git/blob - ggv.spec
- in gnome-common-2.8.0 all macros are in %%{_aclocaldir}, not in
[packages/ggv.git] / ggv.spec
1 Summary:        GNOME Ghostscript Viewer
2 Summary(pl):    Przegl±darka ghostscript dla GNOME
3 Name:           ggv
4 Version:        2.8.0
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Graphics
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/2.8/%{name}-%{version}.tar.bz2
9 # Source0-md5:  1a8e9e43ef793ef3221c5afb15d14a81
10 Patch0:         %{name}-mime-pdf.patch
11 URL:            http://www.gnome.org/
12 BuildRequires:  GConf2-devel >= 2.7.91
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  docbook-style-dsssl
16 BuildRequires:  gettext-devel
17 BuildRequires:  ghostscript
18 BuildRequires:  gnome-common >= 2.8.0
19 BuildRequires:  gtk+2-devel >= 2:2.4.4
20 BuildRequires:  intltool >= 0.30
21 BuildRequires:  libgnomeui-devel >= 2.7.91
22 BuildRequires:  libbonobo-devel >= 2.6.2
23 BuildRequires:  libtool
24 BuildRequires:  openjade
25 BuildRequires:  popt-devel
26 BuildRequires:  rpm-build >= 4.1-8.2
27 BuildRequires:  scrollkeeper
28 Requires(post): GConf2
29 Requires(post,postun):  scrollkeeper
30 Requires:       ghostscript
31 Requires:       libbonobo >= 2.6.2
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 GNOME Ghostscript viewer - a GUI frontend to the Ghostscript
36 postscript interpretter. Use this program to preview postscript
37 documents on your screen.
38
39 %description -l pl
40 Przegl±darka ghostscriptu dla GNOME - graficzny frontend dla
41 interpretera postscriptu o nazwie ghostscript. Program ten slu¿y do
42 przegl±dania postscriptowych dokumentów na ekranie.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47
48 sed -i -e 's/^Categories=GNOME;Application;/Categories=GTK;GNOME;/' \
49         ggv.desktop.in
50
51 %build
52 rm -f missing acinclude.m4
53 %{__libtoolize}
54 glib-gettextize --copy --force
55 intltoolize --copy --force
56 %{__aclocal}
57 %{__autoconf}
58 %{__automake}
59 %configure \
60         --enable-platform-gnome-2 \
61         --disable-schemas-install
62
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT \
70         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
71
72 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
73
74 %find_lang %{name} --with-gnome
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post
80 umask 022
81 /usr/bin/scrollkeeper-update
82 %gconf_schema_install
83 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
84
85 %postun
86 umask 022
87 /usr/bin/scrollkeeper-update
88 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
89
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog NEWS README
93 %attr(755,root,root) %{_bindir}/*
94 %attr(755,root,root) %{_libdir}/ggv*
95 %{_datadir}/gnome-2.0/ui/ggv*
96 %{_datadir}/idl/*
97 %{_libdir}/bonobo/servers/*
98 %{_omf_dest_dir}/%{name}
99 %{_desktopdir}/ggv.desktop
100 %{_pixmapsdir}/*
101 %{_sysconfdir}/gconf/schemas/*
This page took 0.037606 seconds and 4 git commands to generate.