diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-21 15:31:47 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-21 15:31:47 -0800 |
commit | 87470bd51a2d27c9a867b3cb2791828fd8b803da (patch) | |
tree | 48b11b02b4604282c8390c9d6cfcafbd60304296 /packaging | |
parent | ec6268183d43997c7fe124ca40a877edb0d7555b (diff) | |
download | rpmlint-87470bd51a2d27c9a867b3cb2791828fd8b803da.tar.gz rpmlint-87470bd51a2d27c9a867b3cb2791828fd8b803da.tar.bz2 rpmlint-87470bd51a2d27c9a867b3cb2791828fd8b803da.zip |
add spec file
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/rpmlint.spec | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/packaging/rpmlint.spec b/packaging/rpmlint.spec new file mode 100644 index 0000000..9c4481e --- /dev/null +++ b/packaging/rpmlint.spec @@ -0,0 +1,67 @@ +Name: rpmlint +BuildRequires: rpm-python +BuildRequires: xz +Summary: Rpm correctness checker +License: GPL-2.0+ +Group: System/Packages +Version: 1.4 +Release: 0 +Source0: http://rpmlint.zarb.org/download/rpmlint-%{version}.tar.xz +Url: http://rpmlint.zarb.org/ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: /usr/bin/readelf +Requires: bash +#Requires: checkbashisms +Requires: cpio +Requires: dash +Requires: desktop-file-utils +Requires: file +Requires: findutils +Requires: python-magic +Requires: rpm-python +BuildArch: noarch +%py_requires + +%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} -a1 + +%build +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT +# the provided bash-completion does not work and only prints bash errors +rm -rf $RPM_BUILD_ROOT/etc/bash_completion.d +mv $RPM_BUILD_ROOT/etc/rpmlint/config $RPM_BUILD_ROOT/usr/share/rpmlint/config +head -n 8 $RPM_BUILD_ROOT/usr/share/rpmlint/config > $RPM_BUILD_ROOT/etc/rpmlint/config +# make sure that the package is sane +#python -tt %{SOURCE100} $RPM_BUILD_ROOT/usr/share/rpmlint/*.py $RPM_BUILD_ROOT/usr/share/rpmlint/config +#%__install -m 644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/rpmlint/ +#%__install -m 644 %{SOURCE11} %{buildroot}/%{_sysconfdir}/rpmlint/ + +#cp %{SOURCE12} licenses.config +# note there is a tab character behind the -d, so don't copy&paste lightly +#cut '-d ' -f1 /usr/lib/obs/service/format_spec_file.files/licenses_changes.txt | tail -n +2 | sort -u | while read l; do +# sed -i -e "s/\(#VALIDLICENSES\)/\1\n '$l',/" licenses.config +#done +#%__install -m 644 licenses.config %{buildroot}/%{_sysconfdir}/rpmlint/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,0755) +%license COPYING +%{_prefix}/bin/* +%{_prefix}/share/rpmlint +%config(noreplace) /etc/rpmlint/config +#%config %{_sysconfdir}/rpmlint/rpmgroups.config +#%config %{_sysconfdir}/rpmlint/pie.config +#%config %{_sysconfdir}/rpmlint/licenses.config +%dir /etc/rpmlint +%doc /usr/share/man/man1/rpmlint.1.gz + |