From: biao716.wang Date: Wed, 14 Oct 2020 09:00:37 +0000 (+0900) Subject: compatible with createrepo package X-Git-Tag: upstream/0.10.3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80470f23f9fd49cb323d25a0c132a6bbf7cea10e;p=services%2Fcreaterepo_c.git compatible with createrepo package Change-Id: I1be756b4c0fbc7c6d818f12154d7e17f94e74839 Signed-off-by: biao716.wang --- diff --git a/VERSION.cmake b/VERSION.cmake index aae1573..eb63941 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -1,3 +1,3 @@ SET(CR_MAJOR "0") SET(CR_MINOR "10") -SET(CR_PATCH "0") +SET(CR_PATCH "2") diff --git a/debian/control b/debian/control index 2943408..1015273 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: devel Priority: extra Maintainer: Jian-feng Ding Build-Depends: debhelper (>= 7.0.15), cdbs, libpython2.7, python-dev, dh-python, python-docutils, cmake, dpatch, libbz2-dev, librpm-dev, liblzma-dev, libcurl3 | libcurl4, libcurl4-openssl-dev, libmagic-dev, libexpat1, doxygen, pkg-config, libglib2.0-dev, libssl-dev -Standards-Version: 0.10.0 +Standards-Version: 0.10.2 Homepage: http://www.tizen.org Package: createrepo-c @@ -32,9 +32,21 @@ Depends: ${python:Depends}, python-urlgrabber, cpio, bzip2, - createrepo-c, - createrepo-c-devel, - createrepo, + libcreaterepo-c, gzip Description: image creator for Linux distributions The tool createrep is used to ppfarm test + +Package: libcreaterepo-c +Architecture: i386 amd64 +Depends: ${python:Depends}, + cpio, + bzip2, + libcurl3 | libcurl4, + libxml2, + gzip, + libglib2.0-0, + libglib2.0-data +Description: image creator for Linux distributions + The tool createrep is used to ppfarm test + diff --git a/debian/createrepo-c.install b/debian/createrepo-c.install index c64f72e..fdc85a7 100644 --- a/debian/createrepo-c.install +++ b/debian/createrepo-c.install @@ -1,7 +1,10 @@ etc/bash_completion.d /etc/ +usr/bin/createrepo /usr/bin/ usr/bin/createrepo_c /usr/bin/ +usr/bin/mergerepo /usr/bin/ usr/bin/mergerepo_c /usr/bin/ +usr/bin/modifyrepo /usr/bin/ usr/bin/modifyrepo_c /usr/bin/ +usr/bin/sqliterepo /usr/bin/ usr/bin/sqliterepo_c /usr/bin/ -usr/lib/libcreaterepo_c.so.* /usr/lib/ usr/share/man/man8 /usr/share/man/ diff --git a/debian/libcreaterepo-c.install b/debian/libcreaterepo-c.install new file mode 100644 index 0000000..fde0753 --- /dev/null +++ b/debian/libcreaterepo-c.install @@ -0,0 +1 @@ +usr/lib/libcreaterepo_c.so.* /usr/lib/ diff --git a/debian/rules b/debian/rules index fc67563..259d2a0 100755 --- a/debian/rules +++ b/debian/rules @@ -25,7 +25,12 @@ install: build # Installing package make DESTDIR=$(CURDIR) sysconfdir=$(CURDIR)/etc install - if [ -e usr/lib64 ]; then cp -arf usr/lib64/* usr/lib/; fi + if [ -e usr/lib64 ]; then cp -arf usr/lib64/* usr/lib/; fi + #To compatible with createrepo + for i in createrepo mergerepo modifyrepo sqliterepo;do \ + ln -s /usr/bin/$$i\_c $(CURDIR)/usr/bin/$$i; \ + echo ".so man8/$$i\_c.8" > $(CURDIR)/usr/share/man/man8/$$i\.8; \ + done # cat src/python/__init__.py # ls -R binary-indep: build install diff --git a/packaging/createrepo_c.spec b/packaging/createrepo_c.spec index d697228..328a109 100644 --- a/packaging/createrepo_c.spec +++ b/packaging/createrepo_c.spec @@ -18,12 +18,17 @@ C language implemention of createrepo %package devel Summary: Devel package of createrepo_c -Requires: createrepo_c = %{version} -Requires: createrepo +Requires: libcreaterepo_c0 = %{version} %description devel Devel package C language implemention of createrepo +%package -n libcreaterepo_c0 +Summary: Library package of createrepo_c + +%description -n libcreaterepo_c0 +Library package C language implemention of createrepo + %prep %setup -q @@ -41,6 +46,13 @@ cmake -DCMAKE_SKIP_RPATH=ON \ %install make DESTDIR=%{buildroot} sysconfdir=%{_sysconfdir} install +for i in createrepo mergerepo modifyrepo sqliterepo;do + ln -s %{_bindir}/$i\_c %{buildroot}%{_bindir}/$i + echo ".so man8/$i\_c.8" > %{buildroot}%{_mandir}/man8/$i\.8 +done + +%post -n libcreaterepo_c0 -p /sbin/ldconfig +%postun -n libcreaterepo_c0 -p /sbin/ldconfig %files %defattr(-, root, root,-) @@ -49,7 +61,10 @@ make DESTDIR=%{buildroot} sysconfdir=%{_sysconfdir} install %{_bindir}/modifyrepo_c %{_bindir}/sqliterepo_c %{_bindir}/mergerepo_c -%{_libdir}/libcreaterepo_c.so.* +%{_bindir}/createrepo +%{_bindir}/mergerepo +%{_bindir}/modifyrepo +%{_bindir}/sqliterepo %{_mandir}/*/* %files devel @@ -59,5 +74,8 @@ make DESTDIR=%{buildroot} sysconfdir=%{_sysconfdir} install %{_includedir}/createrepo_c %{python_sitearch}/createrepo_c +%files -n libcreaterepo_c0 +%defattr(-, root, root,-) +%{_libdir}/libcreaterepo_c.so.* %changelog