]> git.pld-linux.org Git - packages/i8kutils.git/blobdiff - i8kutils.spec
- tools need to be in bindir
[packages/i8kutils.git] / i8kutils.spec
index 83841a5f5d43d4efba9bc4606851fe0c1de49af0..a9710420d05630270216a128fe848ecbfb86fa2f 100644 (file)
@@ -1,18 +1,21 @@
-# TODO: optflags, check COPYING==GPL?
 Summary:       User-space programs for Dell Inspiron and Latitude laptops
-Summary(pl):   Programy przestrzeni u¿ytkownika dla laptopów Dell Inspiron i Latitude
+Summary(pl.UTF-8):     Programy przestrzeni użytkownika dla laptopów Dell Inspiron i Latitude
 Name:          i8kutils
-Version:       1.25
-Release:       0.2
+Version:       1.42
+Release:       1
 License:       GPL
 Group:         Applications/System
-Source0:       http://people.debian.org/~dz/i8k/%{name}_%{version}.tar.gz
-# Source0-md5: 50c03dde689c5709406118a7c6c120db
-Source1:       i8kutils.init
+Source0:       https://launchpad.net/i8kutils/trunk/%{version}/+download/%{name}_%{version}.tar.xz
+# Source0-md5: 7470b2908b39a41e3f26b8b3398e189d
+Patch0:                %{name}-build.patch
+Source1:       %{name}.init
 Source2:       i8kbuttons.aumix
 Source3:       i8kbuttons.conf
-URL:           http://people.debian.org/~dz/i8k/
+URL:           https://launchpad.net/i8kutils
 Requires:      aumix
+Requires:      tcl
+Requires:      tk
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -21,18 +24,21 @@ of Dell Inspiron and Latitude laptops. The SMM BIOS is used on many
 recent laptops to implement APM functionalities and to access custom
 hardware, for example the cooling fans and volume buttons.
 
-%description -l pl
-Ten pakiet zawiera programy dzia³aj±ce w przestrzeni u¿ytkownika
-s³u¿±ce do dostêpu do SMM BIOS-u laptopów Dell Inspiron i Latitude.
-SMM BIOS w nowych laptopach s³u¿y do implementowania funkcjonalno¶ci
-APM i dostêpu do specyficznego sprzêtu, na przyk³ad wiatraczków
-ch³odz±cych i przycisków g³o¶no¶ci.
+%description -l pl.UTF-8
+Ten pakiet zawiera programy działające w przestrzeni użytkownika
+służące do dostępu do SMM BIOS-u laptopów Dell Inspiron i Latitude.
+SMM BIOS w nowych laptopach służy do implementowania funkcjonalności
+APM i dostępu do specyficznego sprzętu, na przykład wiatraczków
+chłodzących i przycisków głośności.
 
 %prep
-%setup -q
+%setup -q -n %{name}
+%patch0 -p1
 
 %build
-%{__make}
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -40,14 +46,14 @@ install -d $RPM_BUILD_ROOT%{_bindir}
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 install -d $RPM_BUILD_ROOT%{_mandir}/man1
 
-install i8kmon.conf $RPM_BUILD_ROOT%{_sysconfdir}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
-install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
-install i8kbuttons.1 i8kctl.1 i8kmon.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p i8kmon.conf $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p i8kctl.1 i8kmon.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT 
+cp -p i8kctl i8kfan i8kmon probe_i8k_calls_time \
+       $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,8 +67,15 @@ echo
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING README.i8kutils ./examples
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
+%doc README.i8kutils TODO
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/i8kbuttons.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/i8kmon.conf
 %attr(754,root,root) /etc/rc.d/init.d/i8kutils
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man*/*
+%attr(755,root,root) %{_bindir}/i8kbuttons.aumix
+%attr(755,root,root) %{_bindir}/i8kctl
+%attr(755,root,root) %{_bindir}/i8kfan
+%attr(755,root,root) %{_bindir}/i8kmon
+%attr(755,root,root) %{_bindir}/probe_i8k_calls_time
+%{_mandir}/man1/i8kctl.1*
+%{_mandir}/man1/i8kmon.1*
+
This page took 0.09506 seconds and 4 git commands to generate.