]> git.pld-linux.org Git - SPECS.git/blob - gtklp.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / gtklp.spec
1 # TODO:
2 # - integrate non english docs
3
4 %define _iconsrc icons_n_logos
5
6 Summary:        A GTK+ frontend to CUPS
7 Summary(pl.UTF-8):      Interfejs GTK+ do CUPS
8 Name:           gtklp
9 Version:        1.2.6
10 Release:        1
11 License:        GPL v2
12 Group:          Applications/Printing
13 Source0:        http://dl.sourceforge.net/gtklp/%{name}-%{version}.src.tar.gz
14 # Source0-md5:  69938c99e3163c9ef25e1ed559c74c65
15 Source1:        http://dl.sourceforge.net/gtklp/%{_iconsrc}.tar.gz
16 # Source1-md5:  e6e7f46c1b525c6993eaeee0c61fe5d1
17 Source3:        %{name}.desktop
18 URL:            http://gtklp.sourceforge.net/
19 Patch0:         %{name}-locale_names.patch
20 Patch1:         %{name}-man_ru.patch
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  cups-devel >= 1.1.10
24 BuildRequires:  libtool
25 BuildRequires:  gtk+2-devel >= 2:2.4.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 A GTK+ frontend to CUPS.
30
31 %description -l pl.UTF-8
32 Interfejs GTK+ do CUPS.
33
34 %prep
35 %setup -q -a1
36 %patch0 -p1
37 %patch1 -p1
38
39 mv -f po/{cz,cs}.po
40 mv -f po/{uk_UA,uk}.po
41 # just a copy of ca.po
42 rm -f po/ca_ES.po
43
44 %build
45 %{__libtoolize}
46 %{__aclocal} -I m4
47 %{__automake}
48 %{__autoconf}
49 %configure
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir}/ru/man1}
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 mv $RPM_BUILD_ROOT%{_mandir}/man1/gtklp-ru.1 $RPM_BUILD_ROOT%{_mandir}/ru/man1/gtklp.1
60 mv $RPM_BUILD_ROOT%{_mandir}/man1/gtklpq-ru.1 $RPM_BUILD_ROOT%{_mandir}/ru/man1/gtklpq.1
61 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
62 install %{_iconsrc}/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
63
64 %find_lang %{name}
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files -f %{name}.lang
70 %defattr(644,root,root,755)
71 %doc NEWS TODO USAGE README BUGS AUTHORS ChangeLog
72 %attr(755,root,root) %{_bindir}/*
73 %{_mandir}/man1/*
74 %lang(ru) %{_mandir}/ru/man1/*
75 %{_pixmapsdir}/%{name}.png
76 %{_desktopdir}/%{name}.desktop
This page took 0.244617 seconds and 3 git commands to generate.