From 1f0c3d61dad946fddaacecef792759252e2519fe381ab50f2d5f37cc199a728e Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Fri, 8 Jun 2012 13:07:29 +0000 Subject: [PATCH] Rename spec to match package name OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=8 --- ...ce:recompress:tar_scm:libqb-0.13.0.tar.bz2 | 4 +-- ...b.spec => _service:set_version:libqb0.spec | 27 ++++++++++--------- libqb.spec => libqb0.spec | 27 ++++++++++--------- 3 files changed, 32 insertions(+), 26 deletions(-) rename _service:set_version:libqb.spec => _service:set_version:libqb0.spec (76%) rename libqb.spec => libqb0.spec (76%) diff --git a/_service:recompress:tar_scm:libqb-0.13.0.tar.bz2 b/_service:recompress:tar_scm:libqb-0.13.0.tar.bz2 index fcb2c3a..a81a22e 100644 --- a/_service:recompress:tar_scm:libqb-0.13.0.tar.bz2 +++ b/_service:recompress:tar_scm:libqb-0.13.0.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:07b43b0130d117950f7f863f8f96649e8da5fea0a7e0baebb04f1646a74c12c2 -size 1276126 +oid sha256:05602f07280740d8a2d9306db01cd3795ece65a0fb6b9549a16f1d10782ac748 +size 1274691 diff --git a/_service:set_version:libqb.spec b/_service:set_version:libqb0.spec similarity index 76% rename from _service:set_version:libqb.spec rename to _service:set_version:libqb0.spec index f716eda..61782f3 100644 --- a/_service:set_version:libqb.spec +++ b/_service:set_version:libqb0.spec @@ -16,15 +16,15 @@ # -Name: libqb +Name: libqb0 Version: 0.13.0 Release: 0 Summary: An IPC library for high performance servers License: LGPL-2.1+ Group: System/Libraries Url: http://www.libqb.org -Source0: %{name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source0: libqb-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/libqb-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -42,7 +42,7 @@ libqb provides high performance client server reusable features. Initially these are IPC and poll. %prep -%setup -q -n %{name}-%{version} +%setup -q -n libqb-%{version} %build ./autogen.sh @@ -51,14 +51,17 @@ make %{?_smp_mflags} %check # Tests require writable /dev/shm and /var/run -if [ -w /dev/shm -a -w /var/run ]; then +# TODO: This test might not be quite right -- it seems to fail on OBS, +# but OBS is capable of doing "make check" successfully, whereas +# "osc build" in a chroot fails. +if [ -w /dev/shm -a -w /var/run ] ; then make check fi %install %make_install find %{buildroot} -name '*.la' -exec rm -f {} ';' -rm -rf %{buildroot}%{_docdir}/* +rm -rf %{buildroot}%{_datadir}/doc %clean rm -rf %{buildroot} @@ -73,17 +76,17 @@ rm -rf %{buildroot} %{_sbindir}/qb-blackbox %{_libdir}/libqb.so.* -%package devel -Summary: Development files for %{name} +%package -n libqb-devel +Summary: Development files for libqb Group: Development/Libraries/C and C++ Requires: %{name} = %{version}-%{release} Requires: pkgconfig -%description devel -The %{name}-devel package contains libraries and header files for -developing applications that use %{name}. +%description -n libqb-devel +The libqb-devel package contains libraries and header files for +developing applications that use libqb. -%files devel +%files -n libqb-devel %defattr(-,root,root,-) %doc COPYING README.markdown %{_includedir}/qb/ diff --git a/libqb.spec b/libqb0.spec similarity index 76% rename from libqb.spec rename to libqb0.spec index 8276dda..11248b9 100644 --- a/libqb.spec +++ b/libqb0.spec @@ -16,15 +16,15 @@ # -Name: libqb +Name: libqb0 Version: 0.13.0 Release: 0 Summary: An IPC library for high performance servers License: LGPL-2.1+ Group: System/Libraries Url: http://www.libqb.org -Source0: %{name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source0: libqb-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/libqb-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -42,7 +42,7 @@ libqb provides high performance client server reusable features. Initially these are IPC and poll. %prep -%setup -q -n %{name}-%{version} +%setup -q -n libqb-%{version} %build ./autogen.sh @@ -51,14 +51,17 @@ make %{?_smp_mflags} %check # Tests require writable /dev/shm and /var/run -if [ -w /dev/shm -a -w /var/run ]; then +# TODO: This test might not be quite right -- it seems to fail on OBS, +# but OBS is capable of doing "make check" successfully, whereas +# "osc build" in a chroot fails. +if [ -w /dev/shm -a -w /var/run ] ; then make check fi %install %make_install find %{buildroot} -name '*.la' -exec rm -f {} ';' -rm -rf %{buildroot}%{_docdir}/* +rm -rf %{buildroot}%{_datadir}/doc %clean rm -rf %{buildroot} @@ -73,17 +76,17 @@ rm -rf %{buildroot} %{_sbindir}/qb-blackbox %{_libdir}/libqb.so.* -%package devel -Summary: Development files for %{name} +%package -n libqb-devel +Summary: Development files for libqb Group: Development/Libraries/C and C++ Requires: %{name} = %{version}-%{release} Requires: pkgconfig -%description devel -The %{name}-devel package contains libraries and header files for -developing applications that use %{name}. +%description -n libqb-devel +The libqb-devel package contains libraries and header files for +developing applications that use libqb. -%files devel +%files -n libqb-devel %defattr(-,root,root,-) %doc COPYING README.markdown %{_includedir}/qb/