forked from pool/createrepo_c
fixes for symlinks
OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/createrepo_c?expand=0&rev=21
This commit is contained in:
parent
df0b3cc2bd
commit
9c862c511a
@ -128,7 +128,7 @@ Requires: %{libname} = %{version}-%{release}
|
||||
Provides: python-%{name} = %{version}-%{release}
|
||||
|
||||
%description -n python2-createrepo_c
|
||||
Python 2 bindings for the createrepo_c library.
|
||||
The python 2 bindings for the createrepo_c library.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Python 3 bindings for the createrepo_c library
|
||||
@ -136,7 +136,7 @@ Group: Development/Libraries/Python
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
|
||||
%description -n python3-createrepo_c
|
||||
Python 3 bindings for the createrepo_c library.
|
||||
The python 3 bindings for the createrepo_c library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -182,14 +182,10 @@ make %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
ln -s -f %{_sysconfdir}/alternatives/createrepo %{buildroot}%{_bindir}/createrepo
|
||||
ln -s -f %{_sysconfdir}/alternatives/mergerepo %{buildroot}%{_bindir}/mergerepo
|
||||
ln -s -f %{_sysconfdir}/alternatives/modifyrepo %{buildroot}%{_bindir}/modifyrepo
|
||||
ln -s -f %{_sysconfdir}/alternatives/sqliterepo %{buildroot}%{_bindir}/sqliterepo
|
||||
ln -s -f %{_sysconfdir}/alternatives/createrepo.8.gz %{buildroot}%{_mandir}/man8/createrepo.8.gz
|
||||
ln -s -f %{_sysconfdir}/alternatives/mergerepo.8.gz %{buildroot}%{_mandir}/man8/mergerepo.8.gz
|
||||
ln -s -f %{_sysconfdir}/alternatives/modifyrepo.8.gz %{buildroot}%{_mandir}/man8/modifyrepo.8.gz
|
||||
ln -s -f %{_sysconfdir}/alternatives/sqliterepo.8.gz %{buildroot}%{_mandir}/man8/sqliterepo.8.gz
|
||||
for i in createrepo mergerepo modifyrepo sqliterepo;do
|
||||
ln -s -f %{_bindir}/$i\_c %{buildroot}%{_sysconfdir}/alternatives/$i
|
||||
ln -s -f %{_mandir}/man8/$i\_c.8.gz %{buildroot}%{_sysconfdir}/alternatives/$i\.8.gz
|
||||
done
|
||||
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
%fdupes build/doc/html
|
||||
@ -220,19 +216,11 @@ fi
|
||||
%{_mandir}/man8/mergerepo_c.8*
|
||||
%{_mandir}/man8/modifyrepo_c.8*
|
||||
%{_mandir}/man8/sqliterepo_c.8*
|
||||
%{_mandir}/man8/createrepo.8*
|
||||
%{_mandir}/man8/mergerepo.8*
|
||||
%{_mandir}/man8/modifyrepo.8*
|
||||
%{_mandir}/man8/sqliterepo.8*
|
||||
%{_datadir}/bash-completion/completions/
|
||||
%{_bindir}/createrepo_c
|
||||
%{_bindir}/mergerepo_c
|
||||
%{_bindir}/modifyrepo_c
|
||||
%{_bindir}/sqliterepo_c
|
||||
%{_bindir}/createrepo
|
||||
%{_bindir}/mergerepo
|
||||
%{_bindir}/modifyrepo
|
||||
%{_bindir}/sqliterepo
|
||||
%ghost %_sysconfdir/alternatives/createrepo
|
||||
%ghost %_sysconfdir/alternatives/mergerepo
|
||||
%ghost %_sysconfdir/alternatives/modifyrepo
|
||||
|
Loading…
Reference in New Issue
Block a user