]> git.pld-linux.org Git - packages/gget.git/blob - gget.spec
49d291ea7e26cc22826333179f37458e1571ac48
[packages/gget.git] / gget.spec
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
8 Release:        1
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
34 Requires(post,postun):  gtk+2
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 GGet is a download manager for GNOME.
39
40 %description -l pl.UTF-8
41 GGet jest zarządcą pobierania plików dla GNOME.
42
43 %package -n epiphany-extension-gget
44 Summary:        Epiphany extension - GGet
45 Summary(pl.UTF-8):      Rozszerzenie dla Epiphany - GGet
46 Group:          X11/Applications/Networking
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       epiphany >= 2.24
49
50 %description -n epiphany-extension-gget
51 Epiphany extension that uses GGet to download files.
52
53 %description -n epiphany-extension-gget -l pl.UTF-8
54 Rozszerzenie dla Epiphany wykorzystujące GGet do pobierania plików.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59 %patch1 -p1
60
61 %build
62 %{__intltoolize}
63 %{__libtoolize}
64 %{__aclocal} -I m4
65 %{__autoconf}
66 %{__autoheader}
67 %{__automake}
68 %configure \
69         --disable-schemas-install
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %py_postclean
79 %py_postclean %{_libdir}/epiphany/%{epiphany_version}/extensions
80
81 %find_lang %{name}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 %update_desktop_database
88 %update_icon_cache hicolor
89 %gconf_schema_install gget.schemas
90
91 %preun
92 %gconf_schema_uninstall gget.schemas
93
94 %postun
95 %update_desktop_database_postun
96 %update_icon_cache hicolor
97
98 %files -f %{name}.lang
99 %defattr(644,root,root,755)
100 %doc
101 %attr(755,root,root) %{_bindir}/gget
102 %{_desktopdir}/gget.desktop
103 %{_datadir}/dbus-1/services/org.gnome.gget.service
104 %{_datadir}/gget
105 %{_iconsdir}/hicolor/*/*/*.png
106 %{_iconsdir}/hicolor/*/*/*.svg
107 %{_sysconfdir}/gconf/schemas/gget.schemas
108 %dir %{py_sitescriptdir}/gget
109 %{py_sitescriptdir}/gget/*.py[co]
110
111 %files -n epiphany-extension-gget
112 %defattr(644,root,root,755)
113 %{_libdir}/epiphany/%{epiphany_version}/extensions/gget-epiphany.py[co]
114 %{_libdir}/epiphany/%{epiphany_version}/extensions/gget.ephy-extension
This page took 0.077431 seconds and 2 git commands to generate.