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