]> git.pld-linux.org Git - packages/gwget.git/blob - gwget.spec
- updated to 0.91
[packages/gwget.git] / gwget.spec
1 #
2 # Conditional build:
3 %bcond_without  epiphany        # don't build epiphany extension
4
5 Summary:        A download manager for GNOME
6 Summary(pl):    Zarz±dca pobierania plików dla GNOME
7 Name:           gwget
8 Version:        0.91
9 Release:        1
10 License:        GPL
11 Group:          X11/Applications/Networking
12 Source0:        http://dl.sourceforge.net/gwget/%{name}-%{version}.tar.gz
13 # Source0-md5:  d1ff8499fe00995e8bb02688f36b9ae0
14 Patch0:         %{name}-desktop.patch
15 URL:            http://gwget.sourceforge.net/
16 BuildRequires:  GConf2-devel
17 BuildRequires:  gtk+2-devel >= 2:2.4.0
18 BuildRequires:  intltool >= 0.11
19 BuildRequires:  libgnomeui-devel >= 2.0.0
20 BuildRequires:  perl-XML-Parser
21 BuildRequires:  pkgconfig
22 Requires:       wget
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Gwget is a download manager for GNOME.
27
28 %description -l pl
29 Gwget to zarz±dca pobierania plików dla GNOME.
30
31 %package -n epiphany-extension-gwget
32 Summary:        Epiphany extension - gwget
33 Summary(pl):    Rozszerzenie dla Epiphany - gwget
34 Group:          X11/Applications/Networking
35 %if %{with epiphany}
36 BuildRequires:  epiphany-devel >= 1.4.0
37 %endif
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       epiphany >= 1.4.0
40
41 %description -n epiphany-extension-gwget
42 Epiphany extension that uses gwget to download files.
43
44 %description -n epiphany-extension-gwget -l pl
45 Rozszerzenie dla Epiphany wykorzystuj±ce gwget do pobierania plików.
46
47 %prep
48 %setup -q
49 %patch0 -p1
50
51 %build
52 %configure \
53         --disable-schemas-install \
54 %if %{with epiphany}
55         --enable-epiphany-extension
56 %else
57         --disable-epiphany-extension
58 %endif
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_libdir}/epiphany-1.4/extensions}
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT \
67         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
68
69 install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
70 install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
71
72 %if %{with epiphany}
73 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/extensions/*.{a,la}
74 mv $RPM_BUILD_ROOT%{_libdir}/epiphany/extensions/lib* $RPM_BUILD_ROOT%{_libdir}/epiphany-1.4/extensions
75 %endif
76
77 %find_lang %{name}
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post
83 %gconf_schema_install
84
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog NEWS README THANKS TODO
88 %attr(755,root,root) %{_bindir}/*
89 %{_datadir}/%{name}
90 %{_datadir}/idl/*
91 %{_desktopdir}/*
92 %{_libdir}/bonobo/servers/*
93 %{_sysconfdir}/gconf/schemas/*
94 %{_pixmapsdir}/*
95
96 %if %{with epiphany}
97 %files -n epiphany-extension-gwget
98 %defattr(644,root,root,755)
99 %attr(755,root,root)%{_libdir}/epiphany-1.4/extensions/libgwgetextension.so*
100 %endif
This page took 0.065844 seconds and 4 git commands to generate.