forked from pool/rpmlint
Accepting request 136093 from home:a_jaeger:FactoryFix
Rework package: Add service for updating from git; take patches from git. OBS-URL: https://build.opensuse.org/request/show/136093 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=139
This commit is contained in:
68
rpmlint.spec
68
rpmlint.spec
@@ -28,33 +28,12 @@ Group: System/Packages
|
||||
Version: 1.4
|
||||
Release: 0
|
||||
Source0: http://rpmlint.zarb.org/download/rpmlint-%{version}.tar.xz
|
||||
Source1: config
|
||||
Source1001: config.in
|
||||
Source3: DuplicatesCheck.py
|
||||
Source4: CheckBuildRoot.py
|
||||
Source5: CheckExecDocs.py
|
||||
Source6: CheckPkgConfig.py
|
||||
Source7: LibraryPolicyCheck.py
|
||||
Source8: CheckCommonFiles.py
|
||||
Source9: CheckInitScripts.py
|
||||
Source10: CheckIconSizes.py
|
||||
Source11: BrandingPolicyCheck.py
|
||||
Source12: CheckKDE4Deps.py
|
||||
Source13: KMPPolicyCheck.py
|
||||
Source14: CheckSUIDPermissions.py
|
||||
Source15: CheckPolkitPrivs.py
|
||||
Source16: CheckDBUSServices.py
|
||||
Source17: CheckFilelist.py
|
||||
Source18: CheckDBusPolicy.py
|
||||
Source19: CheckAlternativesGhostFiles.py
|
||||
Source20: rpmgroups.config
|
||||
Source21: BashismsCheck.py
|
||||
Source22: CheckGNOMEMacros.py
|
||||
Source23: CheckBuildDate.py
|
||||
Source24: pie.config
|
||||
Source25: licenses.config
|
||||
Source26: CheckLogrotate.py
|
||||
Source27: CheckPAMModules.py
|
||||
Source1: rpmlint-checks-master.tar.gz
|
||||
Source2: config
|
||||
Source3: config.in
|
||||
Source10: rpmgroups.config
|
||||
Source11: pie.config
|
||||
Source12: licenses.config
|
||||
Source100: syntax-validator.py
|
||||
Url: http://rpmlint.zarb.org/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -148,7 +127,7 @@ Authors:
|
||||
Gwenole Beauchesne <gbeauchesne@mandriva.com>
|
||||
|
||||
%prep
|
||||
%setup -q -n rpmlint-%{version}
|
||||
%setup -q -n rpmlint-%{version} -a1
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2
|
||||
@@ -214,29 +193,10 @@ Authors:
|
||||
%patch88
|
||||
%patch89
|
||||
%patch90 -p1
|
||||
cp -p %{SOURCE1} .
|
||||
cp -p %{SOURCE3} .
|
||||
cp -p %{SOURCE4} .
|
||||
cp -p %{SOURCE5} .
|
||||
cp -p %{SOURCE6} .
|
||||
cp -p %{SOURCE7} .
|
||||
cp -p %{SOURCE8} .
|
||||
cp -p %{SOURCE9} .
|
||||
cp -p %{SOURCE10} .
|
||||
cp -p %{SOURCE11} .
|
||||
cp -p %{SOURCE12} .
|
||||
cp -p %{SOURCE13} .
|
||||
cp -p %{SOURCE14} .
|
||||
cp -p %{SOURCE15} .
|
||||
cp -p %{SOURCE16} .
|
||||
cp -p %{SOURCE17} .
|
||||
cp -p %{SOURCE18} .
|
||||
cp -p %{SOURCE19} .
|
||||
cp -p %{SOURCE21} .
|
||||
cp -p %{SOURCE22} .
|
||||
cp -p %{SOURCE23} .
|
||||
cp -p %{SOURCE26} .
|
||||
cp -p %{SOURCE27} .
|
||||
cp -p %{SOURCE2} .
|
||||
# Only move top-level python files
|
||||
chmod 0755 rpmlint-checks-master/*.py
|
||||
mv rpmlint-checks-master/*.py .
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
@@ -249,10 +209,10 @@ 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 %{SOURCE20} %{buildroot}/%{_sysconfdir}/rpmlint/
|
||||
%__install -m 644 %{SOURCE24} %{buildroot}/%{_sysconfdir}/rpmlint/
|
||||
%__install -m 644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/rpmlint/
|
||||
%__install -m 644 %{SOURCE11} %{buildroot}/%{_sysconfdir}/rpmlint/
|
||||
|
||||
cp %{SOURCE25} licenses.config
|
||||
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
|
||||
|
Reference in New Issue
Block a user