summaryrefslogtreecommitdiff
path: root/gqueue.spec
blob: 186ba81091afd85b019a240216ee5a1e56b74cbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Summary:	gQueue is a GNOME2 frontend for Cups queues
Summary(pl.UTF-8):   gQueue jest nakładką na Cupsa dla GNOME2
Name:		gqueue
Version:	0.99.1
Release:	3
License:	GPL v2
Group:		X11/Applications
Source0:	http://web.tiscali.it/diegobazzanella/%{name}-%{version}.tar.bz2
# Source0-md5:	b5cf07a087986cd4cbb83ed26958d408
Source1:	%{name}.desktop
Patch0:		%{name}-locale.patch
Patch1:		%{name}-nolibs.patch
URL:		http://web.tiscali.it/diegobazzanella/
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	cups-devel
BuildRequires:	gettext-devel
BuildRequires:	libgnomeui-devel >= 2.4.0.1
BuildRequires:	pkgconfig
BuildRequires:	rpm-build >= 4.1-13
Requires:	cups
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
gQueue is a GNOME2 frontend for lpq and lprm working with Cups queues.

%description -l pl.UTF-8
gQueue jest nakładką na lpq i lprm pracującą z kolejkami Cupsa.

%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1

mv po/{no,nb}.po

%build
rm -f missing mkinstalldirs depcomp install-sh missing COPYING INSTALL
cp -f /usr/share/gettext/mkinstalldirs .
%{__aclocal}
glib-gettextize --force --copy
%{__autoheader}
%{__automake}
%{__autoconf}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_desktopdir}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS
%attr(755,root,root) %{_bindir}/*
%{_pixmapsdir}/*
%{_desktopdir}/*.desktop