Update to 0.65, improve default config.
This commit is contained in:
parent
38ead21123
commit
378e0e86d8
@ -1 +1 @@
|
|||||||
rpmlint-0.61.tar.bz2
|
rpmlint-0.65.tar.bz2
|
||||||
|
@ -6,12 +6,12 @@ from Config import *
|
|||||||
|
|
||||||
setOption("Vendor", "Fedora Linux")
|
setOption("Vendor", "Fedora Linux")
|
||||||
setOption("Distribution", "Fedora Linux")
|
setOption("Distribution", "Fedora Linux")
|
||||||
setOption("ReleaseExtension", "(\d+\.)+fdr\.\d+(\..*)?")
|
setOption("ReleaseExtension", None)
|
||||||
setOption("ValidBuildHost", ".*")
|
setOption("ValidBuildHost", ".*")
|
||||||
setOption("Packager", ".*")
|
setOption("Packager", ".*")
|
||||||
setOption("UseVersionInChangeLog", 1)
|
setOption("UseVersionInChangeLog", 1)
|
||||||
setOption("UseBzip2", 0)
|
setOption("UseBzip2", 0)
|
||||||
setOption("UseEpoch", 1)
|
setOption("UseEpoch", 0)
|
||||||
setOption("ValidSrcPerms", (0644, ))
|
setOption("ValidSrcPerms", (0644, ))
|
||||||
setOption("ValidGroups", (
|
setOption("ValidGroups", (
|
||||||
"Amusements/Games",
|
"Amusements/Games",
|
||||||
@ -78,5 +78,5 @@ setOption("ValidShells", (
|
|||||||
# Output filters
|
# Output filters
|
||||||
addFilter("W: .* source-or-patch-not-[bg]zipped .*")
|
addFilter("W: .* source-or-patch-not-[bg]zipped .*")
|
||||||
addFilter("E: .* lib-package-without-%mklibname")
|
addFilter("E: .* lib-package-without-%mklibname")
|
||||||
addFilter("E: .* no-dependancy (perl|python)-base.*")
|
addFilter("E: .* no-dependency (perl|python)-base.*")
|
||||||
addFilter("W: .* (python|perl5)-naming-policy-not-applied.*")
|
addFilter("W: .* (python|perl5)-naming-policy-not-applied.*")
|
||||||
|
36
rpmlint.spec
36
rpmlint.spec
@ -1,18 +1,18 @@
|
|||||||
Name: rpmlint
|
Name: rpmlint
|
||||||
Version: 0.61
|
Version: 0.65
|
||||||
Release: 2
|
Release: 1
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: RPM correctness checker
|
Summary: RPM correctness checker
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://people.mandrakesoft.com/~flepied/projects/rpmlint/
|
URL: http://people.mandrakesoft.com/~flepied/projects/rpmlint/
|
||||||
Source0: http://people.mandrakesoft.com/~flepied/projects/rpmlint/dist/rpmlint-0.61.tar.bz2
|
Source0: http://people.mandrakesoft.com/~flepied/projects/rpmlint/dist/rpmlint-0.65.tar.bz2
|
||||||
Source1: %{name}-fedora-config
|
Source1: %{name}-fedora-config
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python >= 0:1.5.2, rpm-python, make, perl
|
BuildRequires: python >= 0:1.5.2, rpm-python, make, %{__perl}
|
||||||
Requires: rpm-python, python >= 0:1.5.2, cpio
|
Requires: rpm-python, python >= 0:1.5.2, cpio
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -22,6 +22,8 @@ and source packages can be checked.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%{__perl} -pi -e 's|/etc/httpd/webapps\.d|%{_sysconfdir}/httpd/conf.d|' \
|
||||||
|
FilesCheck.py I18NCheck.py
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -31,9 +33,10 @@ make
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
install -pm 644 rpmlint.bash-completion $RPM_BUILD_ROOT%{_datadir}/rpmlint
|
||||||
# Install Fedora config as the default.
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
||||||
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint/config
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/rpmlint
|
||||||
|
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint/config
|
||||||
|
|
||||||
# Take care of files that may be generated later.
|
# Take care of files that may be generated later.
|
||||||
touch $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint/config{c,o}
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint/config{c,o}
|
||||||
@ -56,16 +59,35 @@ done
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%triggerin -- bash-completion
|
||||||
|
if [ ! -e %{_sysconfdir}/bash_completion.d/rpmlint ] ; then
|
||||||
|
ln -s %{_datadir}/rpmlint/rpmlint.bash-completion \
|
||||||
|
%{_sysconfdir}/bash_completion.d/rpmlint
|
||||||
|
fi
|
||||||
|
|
||||||
|
%triggerun -- bash-completion
|
||||||
|
[ $2 -gt 0 ] || rm -f %{_sysconfdir}/bash_completion.d/rpmlint
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}-%{version}-files.list
|
%files -f %{name}-%{version}-files.list
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%doc AUTHORS COPYING ChangeLog README
|
%doc AUTHORS COPYING ChangeLog README
|
||||||
%{_bindir}/rpm*
|
%{_bindir}/rpm*
|
||||||
%dir %{_datadir}/rpmlint
|
%dir %{_datadir}/rpmlint
|
||||||
|
%{_datadir}/rpmlint/rpmlint.bash-completion
|
||||||
%dir %{_sysconfdir}/rpmlint
|
%dir %{_sysconfdir}/rpmlint
|
||||||
%config(noreplace) %{_sysconfdir}/rpmlint/config
|
%config(noreplace) %{_sysconfdir}/rpmlint/config
|
||||||
|
%ghost %{_sysconfdir}/bash_completion.d/rpmlint
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:0.65-1
|
||||||
|
- Update to 0.65.
|
||||||
|
|
||||||
|
* Sat Jan 1 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:0.64-1
|
||||||
|
- Update to 0.64.
|
||||||
|
- Default config tweaks: don't mandate Epochs nor "fdr" in Release.
|
||||||
|
|
||||||
* Tue Oct 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.61-0.fdr.2
|
* Tue Oct 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.61-0.fdr.2
|
||||||
- Requires cpio (bug 2169).
|
- Requires cpio (bug 2169).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user