Name: rpmlint Version: 1.4 Release: 0 License: GPL-2.0+ Summary: Rpm correctness checker Url: http://rpmlint.zarb.org/ Group: Development/Packaging Source0: http://rpmlint.zarb.org/download/rpmlint-%{version}.tar.bz2 Source2: config Source10: rpmgroups.config Source11: pie.config Source12: licenses.config Source100: syntax-validator.py Source1001: rpmlint.manifest BuildRequires: python-rpm BuildRequires: xz Requires: /usr/bin/readelf Requires: bash Requires: cpio Requires: dash #Requires: desktop-file-utils Requires: file Requires: findutils Requires: python-magic Requires: python-rpm BuildArch: noarch %description Rpmlint is a tool to check common errors on rpm packages. Binary and source packages can be checked. %prep %setup -q -n rpmlint-%{version} cp %{SOURCE1001} . cp %{SOURCE2} . %build make %{?_smp_mflags} cd rpmlint-checks-master make %{?_smp_mflags} cd - %install %make_install cd rpmlint-checks-master %make_install cd - # the provided bash-completion does not work and only prints bash errors rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d mv %{buildroot}%{_sysconfdir}/rpmlint/config %{buildroot}%{_datadir}/rpmlint/config head -n 8 %{buildroot}%{_datadir}/rpmlint/config > %{buildroot}%{_sysconfdir}/rpmlint/config # make sure that the package is sane python -tt %{SOURCE100} %{buildroot}%{_datadir}/rpmlint/*.py %{buildroot}%{_datadir}/rpmlint/config install -m 644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/rpmlint/ install -m 644 %{SOURCE11} %{buildroot}/%{_sysconfdir}/rpmlint/ install -m 644 %{SOURCE12} %{buildroot}/%{_sysconfdir}/rpmlint/ %files %manifest %{name}.manifest %defattr(-,root,root,0755) %license COPYING %{_bindir}/* %exclude %{_datadir}/rpmlint/experimental %exclude %{_datadir}/rpmlint/obsolete %{_datadir}/rpmlint %config(noreplace) %{_sysconfdir}/rpmlint/config %config(noreplace) %{_sysconfdir}/rpmlint/licenses.config %config %{_sysconfdir}/rpmlint/rpmgroups.config %config %{_sysconfdir}/rpmlint/pie.config %dir %{_sysconfdir}/rpmlint %doc %{_mandir}/man1/rpmlint.1.gz