]>
Commit | Line | Data |
---|---|---|
c75d4377 MB |
1 | # |
2 | %define epiphany_version 2.24 | |
3 | # | |
4 | Summary: Download manager for GNOME | |
5 | Summary(pl.UTF-8): Zarządca pobierania plików dla GNOME | |
6 | Name: gget | |
7 | Version: 0.0.4 | |
f7589e5d | 8 | Release: 2 |
c75d4377 MB |
9 | License: GPL v2+ |
10 | Group: X11/Applications/Networking | |
11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gget/0.0/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: fb997cac66287c18da74bb7b6d6a07e9 | |
13 | Patch0: %{name}-desktop.patch | |
14 | Patch1: %{name}-dont-hardcode-python-version.patch | |
15 | URL: http://live.gnome.org/GGet | |
16 | BuildRequires: GConf2-devel | |
17 | BuildRequires: autoconf | |
18 | BuildRequires: automake | |
19 | BuildRequires: epiphany-devel >= 2.24.0 | |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
22 | BuildRequires: intltool >= 0.33.0 | |
23 | BuildRequires: libtool | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: python >= 1:2.5 | |
26 | BuildRequires: python-dbus-devel >= 0.82 | |
27 | BuildRequires: python-devel >= 1:2.5 | |
28 | BuildRequires: python-gnome-devel >= 2.16.0 | |
29 | BuildRequires: python-gnome-extras-devel >= 2.14.2 | |
30 | BuildRequires: python-pygtk-devel >= 2:2.12.0 | |
31 | BuildRequires: python-pynotify-devel >= 0.1.1 | |
32 | BuildRequires: rpmbuild(macros) >= 1.311 | |
33 | Requires(post,postun): desktop-file-utils | |
f7589e5d AF |
34 | Requires(post,postun): gtk-update-icon-cache |
35 | Requires(post,postun): hicolor-icon-theme | |
c75d4377 MB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | GGet is a download manager for GNOME. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | GGet jest zarządcą pobierania plików dla GNOME. | |
43 | ||
44 | %package -n epiphany-extension-gget | |
45 | Summary: Epiphany extension - GGet | |
46 | Summary(pl.UTF-8): Rozszerzenie dla Epiphany - GGet | |
47 | Group: X11/Applications/Networking | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | Requires: epiphany >= 2.24 | |
50 | ||
51 | %description -n epiphany-extension-gget | |
52 | Epiphany extension that uses GGet to download files. | |
53 | ||
54 | %description -n epiphany-extension-gget -l pl.UTF-8 | |
55 | Rozszerzenie dla Epiphany wykorzystujące GGet do pobierania plików. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | %patch0 -p1 | |
60 | %patch1 -p1 | |
61 | ||
62 | %build | |
63 | %{__intltoolize} | |
64 | %{__libtoolize} | |
65 | %{__aclocal} -I m4 | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
69 | %configure \ | |
70 | --disable-schemas-install | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %py_postclean | |
80 | %py_postclean %{_libdir}/epiphany/%{epiphany_version}/extensions | |
81 | ||
82 | %find_lang %{name} | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post | |
88 | %update_desktop_database | |
89 | %update_icon_cache hicolor | |
90 | %gconf_schema_install gget.schemas | |
91 | ||
92 | %preun | |
93 | %gconf_schema_uninstall gget.schemas | |
94 | ||
95 | %postun | |
96 | %update_desktop_database_postun | |
97 | %update_icon_cache hicolor | |
98 | ||
99 | %files -f %{name}.lang | |
100 | %defattr(644,root,root,755) | |
101 | %doc | |
102 | %attr(755,root,root) %{_bindir}/gget | |
103 | %{_desktopdir}/gget.desktop | |
104 | %{_datadir}/dbus-1/services/org.gnome.gget.service | |
105 | %{_datadir}/gget | |
106 | %{_iconsdir}/hicolor/*/*/*.png | |
107 | %{_iconsdir}/hicolor/*/*/*.svg | |
108 | %{_sysconfdir}/gconf/schemas/gget.schemas | |
109 | %dir %{py_sitescriptdir}/gget | |
110 | %{py_sitescriptdir}/gget/*.py[co] | |
111 | ||
112 | %files -n epiphany-extension-gget | |
113 | %defattr(644,root,root,755) | |
114 | %{_libdir}/epiphany/%{epiphany_version}/extensions/gget-epiphany.py[co] | |
115 | %{_libdir}/epiphany/%{epiphany_version}/extensions/gget.ephy-extension |