Accepting request 363494 from GNOME:Next

1

OBS-URL: https://build.opensuse.org/request/show/363494
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgtop?expand=0&rev=60
This commit is contained in:
Dominique Leuenberger 2016-03-02 10:27:29 +00:00 committed by Git OBS Bridge
parent 58b8e470de
commit 1d83c255d2
5 changed files with 18 additions and 44 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:efca47f50b5c914ec3848910dfd4020e655a34ddb994a166761f10aebac4df64
size 676856

3
libgtop-2.33.91.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ff8d8569e4602e91bbc5857053a007393a02c83c59d6a084a859960543d3be2
size 676984

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 1 10:54:57 UTC 2016 - zaitor@opensuse.org
- Update to version 2.33.91:
+ Fix building on musl-libc.
+ Updated translations.
- Drop libgtop_spec-update.sh as source, and clean spec of it. No
longer needed in the obs.
- Move %install_info_delete for doc subpackage from postun to
preun.
-------------------------------------------------------------------
Wed Jan 20 09:07:10 UTC 2016 - dimstar@opensuse.org

View File

@ -17,16 +17,13 @@
Name: libgtop
Version: 2.33.4
Version: 2.33.91
Release: 0
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
#%(sh %{_sourcedir}/%{name}_spec-update.sh %{_sourcedir} %{name} libgtop-2_0)
%define soname 10
Summary: LibGTop Library
License: GPL-2.0+
Group: System/Libraries
Source: http://download.gnome.org/sources/libgtop/2.33/%{name}-%{version}.tar.xz
Source1: %{name}_spec-update.sh
Source99: baselibs.conf
BuildRequires: fdupes
BuildRequires: glib2-devel
@ -139,12 +136,12 @@ rm -rf $RPM_BUILD_ROOT
%postun -n libgtop-2_0-%{soname} -p /sbin/ldconfig
%preun doc
%install_info_delete --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
%post doc
%install_info --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
%postun doc
%install_info_delete --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
%files lang -f %{name}-2.0.lang
%files -n libgtop-2_0-%{soname}

View File

@ -1,34 +0,0 @@
#!/bin/bash
# Autobuild doesn't support package names with macros. This script will update versions in package names.
# Usage: Automatically called from spec file by:
# libwnck_spec-update.sh DIR BASE_NAME libnames...
if ! test -f $1/$2.spec ; then
exit
fi
BASE=$1/$2
shift 2
for PKGNAME in $@ ; do
# Packages with name ending by number needs separator
if test x`echo $PKGNAME | sed "s/.*[0-9]$//"` = x ; then
SEPARATOR=-
else
SEPARATOR=
fi
sed -i "
# Copy ${PKGNAME}_name to hold space
/^%define ${PKGNAME}_name / {
h;
s/^%define ${PKGNAME}_name //;
x;
};
# Update ${PKGNAME}_name everywhere
/$PKGNAME$SEPARATOR[0-9][-_0-9]*/ {
G;
s/$PKGNAME$SEPARATOR[0-9][-_0-9]*\(.*\)\n\(.*\)/$PKGNAME$SEPARATOR\2\1/;
};" $BASE.spec
done