SHA256
1
0
forked from pool/createrepo_c
Frank Schreiner
2018-02-28 15:16:41 +00:00
committed by Git OBS Bridge
parent df0b3cc2bd
commit 9c862c511a

View File

@@ -128,7 +128,7 @@ Requires: %{libname} = %{version}-%{release}
Provides: python-%{name} = %{version}-%{release} Provides: python-%{name} = %{version}-%{release}
%description -n python2-createrepo_c %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} %package -n python3-%{name}
Summary: Python 3 bindings for the createrepo_c library Summary: Python 3 bindings for the createrepo_c library
@@ -136,7 +136,7 @@ Group: Development/Libraries/Python
Requires: %{libname} = %{version}-%{release} Requires: %{libname} = %{version}-%{release}
%description -n python3-createrepo_c %description -n python3-createrepo_c
Python 3 bindings for the createrepo_c library. The python 3 bindings for the createrepo_c library.
%prep %prep
%setup -q %setup -q
@@ -182,14 +182,10 @@ make %{?_smp_mflags}
%endif %endif
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -s -f %{_sysconfdir}/alternatives/createrepo %{buildroot}%{_bindir}/createrepo for i in createrepo mergerepo modifyrepo sqliterepo;do
ln -s -f %{_sysconfdir}/alternatives/mergerepo %{buildroot}%{_bindir}/mergerepo ln -s -f %{_bindir}/$i\_c %{buildroot}%{_sysconfdir}/alternatives/$i
ln -s -f %{_sysconfdir}/alternatives/modifyrepo %{buildroot}%{_bindir}/modifyrepo ln -s -f %{_mandir}/man8/$i\_c.8.gz %{buildroot}%{_sysconfdir}/alternatives/$i\.8.gz
ln -s -f %{_sysconfdir}/alternatives/sqliterepo %{buildroot}%{_bindir}/sqliterepo done
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
%fdupes %{buildroot}%{_prefix} %fdupes %{buildroot}%{_prefix}
%fdupes build/doc/html %fdupes build/doc/html
@@ -220,19 +216,11 @@ fi
%{_mandir}/man8/mergerepo_c.8* %{_mandir}/man8/mergerepo_c.8*
%{_mandir}/man8/modifyrepo_c.8* %{_mandir}/man8/modifyrepo_c.8*
%{_mandir}/man8/sqliterepo_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/ %{_datadir}/bash-completion/completions/
%{_bindir}/createrepo_c %{_bindir}/createrepo_c
%{_bindir}/mergerepo_c %{_bindir}/mergerepo_c
%{_bindir}/modifyrepo_c %{_bindir}/modifyrepo_c
%{_bindir}/sqliterepo_c %{_bindir}/sqliterepo_c
%{_bindir}/createrepo
%{_bindir}/mergerepo
%{_bindir}/modifyrepo
%{_bindir}/sqliterepo
%ghost %_sysconfdir/alternatives/createrepo %ghost %_sysconfdir/alternatives/createrepo
%ghost %_sysconfdir/alternatives/mergerepo %ghost %_sysconfdir/alternatives/mergerepo
%ghost %_sysconfdir/alternatives/modifyrepo %ghost %_sysconfdir/alternatives/modifyrepo