]> git.pld-linux.org Git - packages/bootsplash.git/blobdiff - bootsplash.spec
- correct (allow when %_sysconfdir != /etc)
[packages/bootsplash.git] / bootsplash.spec
index 7371a898e8da7a699f7b7d351d014632aacbe3e7..efd4604f285b3a46d7159c1ce9e3951ba5b73b6e 100644 (file)
@@ -1,60 +1,76 @@
-Summary:       Bootsplash
-Summary(pl):   Bootsplash
+#
+# TODO:
+# - place somewhere info that distkernel support only 16bit splashes (thnx Tomasz Grobelny)
+#
+Summary:       Bootsplash - graphical boot process for Linux
+Summary(de):   Bootsplash - graphischer System Start
+Summary(pl):   Bootsplash - graficzny proces startu systemu dla Linuksa
 Name:          bootsplash
-Version:       3.0.7
-Release:       0.1
-Epoch:         0
+Version:       3.2
+Release:       1
 License:       GPL v2
-Group:         -
-######         Unknown group!
-Vendor:                -
-Source0:       ftp://ftp.suse.com/pub/people/stepan/%{name}/rpm-sources/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5: d7c7cdab692fb2edc5cf5ebb554f20a1
-URL:           http://www.bootsplash.org
-BuildRequires: freetype-devel  >= 2
+Group:         Applications/System
+Source0:       http://www.bootsplash.de/files/splashutils/%{name}-%{version}.tar.bz2
+# Source0-md5: b74c104372fd182d0442b3ed63210e29
+Source1:       %{name}.script
+Source2:       %{name}-bootanim.script
+Source3:       %{name}.sysconfig
+Source4:       %{name}.init
+Patch0:                %{name}-3.2_makefile_libmng.patch
+URL:           http://www.bootsplash.org/
+BuildRequires: freetype-devel >= 2.1
 BuildRequires: libmng-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _bindir /bin
+
 %description
 When you have a kernel with bootsplash capability you can use the
-bootsplash and control it's behaviour with a set of userspace
+bootsplash and control its behaviour with this set of userspace
 utilities.
 
+%description -l de
+Wenn du einen Kernel mit der bootsplash Option hast, kannst du diese
+mit diesen Programmen steuern.
+
 %description -l pl
-- -
+Maj±c j±dro z opcj± bootsplash mo¿na uzyskaæ graficzny ekran podczas
+startu systemu i sterowaæ jego zachowaniem przy u¿yciu tego zbioru
+narzêdzi przestrzeni u¿ytkownika.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-cd Utilities
-%{__make}
-cd ..
+%{__make} -C Utilities \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -Wall -I/usr/include/freetype2 -DDEFAULT_FONTNAME=\\\"%{_datadir}/%{name}/luxisri.ttf\\\"" \
+       STRIP=true
 
 %install
 rm -rf $RPM_BUILD_ROOT
-# create directories if necessary
-install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
-install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_sysconfdir}/bootsplash/themes} \
+        $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
-install Documentation/* $RPM_BUILD_ROOT%{_docdir}/%{name}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/splash
+install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/bootanim
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/bootsplash
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootsplash
 install Scripts/* $RPM_BUILD_ROOT%{_datadir}/%{name}
-install Utilities/{fbmngplay,fbresolution,fbtruetype,splash} $RPM_BUILD_ROOT%{_bindir}
+install Utilities/splash $RPM_BUILD_ROOT%{_bindir}/splash.bin
+install Utilities/{fbmngplay,fbresolution,fbtruetype} $RPM_BUILD_ROOT%{_bindir}
 install Utilities/*.ttf $RPM_BUILD_ROOT%{_datadir}/%{name}
-install Utilities/README.* $RPM_BUILD_ROOT%{_docdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Documentation/README.{bootsplash,kernel,config,themes}
-%doc Utilities/README.{fbmngplay,fbtruetype}
+%doc {Documentation,Utilities}/README.*
 %attr(755,root,root) %{_bindir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bootsplash
+%attr(754,root,root) /etc/rc.d/init.d/bootsplash
 %{_datadir}/%{name}
-
-#%files subpackage
-#%defattr(644,root,root,755)
-#%doc extras/*.gz
-#%{_datadir}/%{name}-ext
+%dir %{_sysconfdir}/bootsplash
+%dir %{_sysconfdir}/bootsplash/themes
This page took 0.041611 seconds and 4 git commands to generate.