]> git.pld-linux.org Git - packages/fnfx.git/blobdiff - fnfx.spec
- rel 5 to rebuild with UTF-8 descriptions
[packages/fnfx.git] / fnfx.spec
index 2efcab5691293dfc7c58cdcf15153cdc1526019f..b520b94b47278607d112becf73ae97ad6b9ee3b9 100644 (file)
--- a/fnfx.spec
+++ b/fnfx.spec
@@ -1,28 +1,44 @@
-Name:          fnfx
-Version:       0.2
-Release:       0.1
 Summary:       Toshiba laptop function key utility
-License:       GPL
-URL:           http://fnfx.sf.net
-Group:         System/Configuration/Hardware
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: fb0b2a9d6c5446a4615d907a572fd541
+Summary(pl.UTF-8):     Narzędzie do obsługi klawisza funkcyjnego w laptopach firmy Toshiba
+Name:          fnfx
+Version:       0.3
+Release:       5
+License:       GPL v2
+Group:         Applications/System
+Source0:       http://dl.sourceforge.net/fnfx/%{name}-%{version}.tar.gz
+# Source0-md5: 2487730494a8ff86d83d9cf7e6a67325
 Source1:       %{name}.init
+Patch0:                %{name}-shad.patch
+URL:           http://fnfx.sourceforge.net/
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Requires(post,preun):   /sbin/chkconfig
 
 %description
 FnFX enables owners of Toshiba laptops to change the LCD brightness,
-control, the internal fan and use the special keys on their keyboard
+control the internal fan and use the special keys on their keyboard
 (Fn-x combinations, hot-keys). The internal functions will give the
 possibility to map the Fn-Keys to functions like volume up/down, mute,
 suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These
 functions heavily depend on the system and/or kernel configuration.
-You will need at least a kernel (v2.4.x, v2.5.x, v2.6.x) with ACPI and
-Toshiba support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA).
+You will need at least a kernel (v2.4.x, v2.6.x) with ACPI and Toshiba
+support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA).
+
+%description -l pl.UTF-8
+FnFx pozwala posiadaczom laptopów firmy Toshiba na zmianę jasności
+wyświetlacza LCD, sterowanie wewnętrznym wiatraczkiem i korzystanie z
+klawiszy specjalnych na klawiaturze (kombinacji Fn-x, skrótów
+klawiszowych). Wewnętrzne funkcje dają możliwość mapowania kombinacji
+Fn-klawisz na funkcje takie jak zmiana głośności, wyciszenie,
+suspend-to-disk, suspend-to-ram oraz przełączanie LCD/CRT/TV-out. Te
+funkcje w dużym stopniu są zależne od konfiguracji systemu i/lub
+jądra. Potrzebne jest co najmniej jądro (2.4.x, 2.6.x) z obsługą ACPI
+i Toshiby (CONFIG_ACPI i CONFIG_ACPI_TOSHIBA).
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
 %configure
@@ -30,38 +46,30 @@ Toshiba support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA).
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_initrddir}}
-install -d $RPM_BUILD_ROOT/etc/fnfx
-install src/{fnfx,fnfxd} $RPM_BUILD_ROOT%{_sbindir}
-install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT/etc/fnfx
-install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/fnfx
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_sysconfdir}/fnfx,%{_bindir}}
 
+install src/fnfxd $RPM_BUILD_ROOT%{_sbindir}
+install src/fnfx $RPM_BUILD_ROOT%{_bindir}
+install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT%{_sysconfdir}/fnfx
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fnfx
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/%{name} ]; then
-        /etc/rc.d/init.d/%{name} restart >&2
-else
-        echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon." >&2
-fi
+%service fnfx restart
 
 %preun
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/%{name} ]; then
-                /etc/rc.d/init.d/%{name} stop >&2
-        fi
-        /sbin/chkconfig --del %{name}
+       %service fnfx stop
+       /sbin/chkconfig --del %{name}
 fi
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/%{name}
-%attr(755,root,root) %{_sbindir}/*
-%dir %{_sysconfdir}/%{name}
-%config(noreplace) %{_sysconfdir}/%{name}/*
-%config(noreplace) %{_initrddir}/%{name}
-
-#%doc ChangeLog INSTALL AUTHORS README
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_sbindir}/fnfxd
+%attr(755,root,root) %{_bindir}/fnfx
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.132538 seconds and 4 git commands to generate.