# Conditional build: %bcond_with tests # build with tests %bcond_without tests # build without tests Summary: - Summary(pl): - Name: - Version: - Release: - Epoch: - License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here) Vendor: - Group: - Icon: - Source0: %{name}-%{version}.tar.gz # Source0-md5: - Source1: - # Source1-md5: - Patch0: %{name}-what.patch URL: - BuildRequires: - PreReq: - Requires(pre,post): - Requires(preun): - Requires(postun): - Requires: - Provides: - Obsoletes: - Conflicts: - BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description %description -l pl %package subpackage Summary: - Summary(pl): - Group: - %description subpackage %description subpackage -l pl %prep %setup -q -n %{name}-%{version}.orig -a 1 %patch0 -p1 %build # if ac/am/* rebuilding is necessary, do it in this order and add # appropriate BuildRequires #%%{__gettextize} #%%{__aclocal} #%%{__autoconf} #%%{__autoheader} #%%{__automake} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT # create directories if necessary #install -d $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %pre %post %preun %postun %files %defattr(644,root,root,755) %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO %dir %{_sysconfdir} %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/* %attr(755,root,root) %{_bindir}/* %{_datadir}/%{name} # initscript and it's config %attr(754,root,root) /etc/rc.d/init.d/%{name} %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name} %files subpackage %defattr(644,root,root,755) %doc extras/*.gz %{_datadir}/%{name}-ext