]> git.pld-linux.org Git - SPECS.git/blob - gpdf.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / gpdf.spec
1 Summary:        GNOME PDF Viewer
2 Summary(pl.UTF-8):      Przeglądarka PDF-ów dla GNOME
3 Name:           gpdf
4 Version:        2.10.0
5 Release:        4
6 License:        GPL v2+
7 Group:          X11/Applications/Graphics
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/gpdf/2.10/%{name}-%{version}.tar.bz2
9 # Source0-md5:  9278cd3b9d06e3b1d364452f0e512fa9
10 Patch0:         %{name}-desktop.patch
11 Patch1:         %{name}-CAN-2005-2097.patch
12 Patch2:         %{name}-cve-2006-0301.patch
13 Patch3:         %{name}-classes.patch
14 Patch4:         %{name}-as_needed.patch
15 URL:            http://www.gnome.org/
16 BuildRequires:  GConf2-devel >= 2.10.0
17 BuildRequires:  autoconf >= 2.52
18 BuildRequires:  automake
19 BuildRequires:  gettext-tools
20 BuildRequires:  gnome-common >= 2.8.0
21 BuildRequires:  gnome-vfs2-devel >= 2.10.0
22 BuildRequires:  gtk+2-devel >= 2:2.6.4
23 BuildRequires:  libglade2-devel >= 1:2.5.1
24 BuildRequires:  libgnomeprintui-devel >= 2.10.2
25 BuildRequires:  libgnomeui-devel >= 2.10.0-2
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libtool
28 BuildRequires:  pkgconfig
29 BuildRequires:  rpmbuild(macros) >= 1.197
30 BuildRequires:  scrollkeeper
31 Requires(post,preun):   GConf2
32 Requires(post,postun):  desktop-file-utils
33 Requires(post,postun):  scrollkeeper
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 GPDF is an open source viewer for Portable Document Format (PDF)
38 files.
39
40 %description -l pl.UTF-8
41 GPDF to wolnodostępna przeglądarka do plików PDF (Portable Document
42 Format).
43
44 %prep
45 %setup -q
46 %patch0 -p1
47 %patch1 -p1
48 %patch2 -p1
49 %patch3 -p1
50 %patch4 -p1
51
52 %build
53 %{__libtoolize}
54 %{__aclocal}
55 %{__autoconf}
56 %{__automake}
57 %configure \
58         --disable-schemas-install \
59         --enable-a4-paper \
60         --enable-multithreaded
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT \
68         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
69
70 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
71 rm -rf $RPM_BUILD_ROOT%{_datadir}/{mime-info,application-registry}
72
73 %find_lang %{name} --with-gnome
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post
79 %scrollkeeper_update_post
80 %gconf_schema_install gpdf.schemas
81 %update_desktop_database_post
82
83 %preun
84 %gconf_schema_uninstall gpdf.schemas
85
86 %postun
87 %scrollkeeper_update_postun
88 %update_desktop_database_postun
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}/gnome-pdf-viewer
95 %{_sysconfdir}/gconf/schemas/*.schemas
96 %{_desktopdir}/gpdf.desktop
97 %{_datadir}/gnome-2.0/ui/gpdf*
98 %{_datadir}/%{name}
99 %{_libdir}/bonobo/servers/*
100 %{_pixmapsdir}/*
101 %{_omf_dest_dir}/*
This page took 0.168966 seconds and 3 git commands to generate.