]> git.pld-linux.org Git - packages/tpb.git/blob - tpb.spec
83a85c8434250ab2334b0aaca8dbad806fb2285f
[packages/tpb.git] / tpb.spec
1 Summary:        Utility to enable the IBM ThinkPad(tm) special keys
2 Summary(pl.UTF-8):      Narzędzie uaktywniające klawisze specjalne w notebookach IBM ThinkPad(tm)
3 Name:           tpb
4 Version:        0.6.4
5 Release:        2
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://savannah.nongnu.org/download/tpb/%{name}-%{version}.tar.gz
9 # Source0-md5:  563b544fbedcc1763130a0bca1ad63b6
10 Source1:        %{name}-pl.po
11 Patch0:         %{name}-lang_pl.patch
12 Patch1:         %{name}-po-de.patch
13 URL:            http://savannah.gnu.org/projects/tpb/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gettext-devel
17 BuildRequires:  libtool
18 BuildRequires:  xosd-devel >= 2.0.0
19 Requires:       xosd >= 2.0.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This program enables the IBM Thinkpad(tm) special keys. It is possible
24 to bind a program to the ThinkPad button. It has a on-screen display
25 (OSD) to show volume, mute and brightness of the LCD.
26
27 %description -l pl.UTF-8
28 Program ten uaktywnia klawisze specjalne w notebookach IBM
29 ThinkPad(tm). Umożliwia również programowanie przycisków specjalnych,
30 wspiera również OSD (dźwięk, kontrast LCD).
31
32 %prep
33 %setup -q
34 cp %{SOURCE1} po/pl.po
35 %patch0 -p1
36 %patch1 -p1
37
38 %build
39 install -d newaclocal
40 cp -f aclocal/libxosd*.m4 newaclocal
41 %{__gettextize}
42 %{__libtoolize}
43 %{__aclocal} -I newaclocal
44 %{__automake}
45 %{__autoconf}
46 %configure
47 %{__make}
48
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %find_lang %{name}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files -f %{name}.lang
61 %defattr(644,root,root,755)
62 %doc doc/callback_example.sh ChangeLog CREDITS README TODO doc/tpbrc
63 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/tpbrc
64 %attr(755,root,root) %{_bindir}/*
65 %{_mandir}/man1/*
This page took 0.056153 seconds and 2 git commands to generate.