Vincent Untz 2010-03-22 14:34:56 +00:00 committed by Git OBS Bridge
parent 23b93fa37f
commit a11129023f
2 changed files with 18 additions and 16 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 22 15:34:07 CET 2010 - vuntz@opensuse.org
- Remove manual check for the package name to follow the library
policy: rpmlint does this now.
-------------------------------------------------------------------
Sun Mar 21 17:47:43 UTC 2010 - dimstar@opensuse.org

View File

@ -18,18 +18,8 @@
Name: libwnck
BuildRequires: fdupes
BuildRequires: gobject-introspection-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: licenses
# bug437293
%ifarch ppc64
Obsoletes: libwnck-64bit
%endif
Version: 2.29.92
Release: 1
#
License: LGPL v2.1 or later
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
#%(sh %{_sourcedir}/%{name}_spec-update.sh %{_sourcedir} %{name} libwnck-1)
@ -39,9 +29,19 @@ Group: Development/Libraries/GNOME
Source: %{name}-%{version}.tar.bz2
Source1: %{name}_spec-update.sh
Source99: baselibs.conf
BuildRequires: fdupes
BuildRequires: gobject-introspection-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: licenses
Requires: %{name}-lang = %{version}
Requires: libwnck-1-22 = %{version}
Requires: licenses
# bug437293
%ifarch ppc64
Obsoletes: libwnck-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -101,11 +101,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%endif
rm %{buildroot}%{_libdir}/*.*a
%find_lang %{name}
LIBNAME="$(echo %{buildroot}%{_libdir}/%{name}-*.so.?? | sed 's/.*\///;s/\.so\./-/;s/\./_/')"
if test "$LIBNAME" != libwnck-1-22 ; then
echo "Library version does not match package name. It should be $LIBNAME."
exit 1
fi
for FILE in COPYING ; do
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
@ -142,6 +137,7 @@ rm -rf %{buildroot}
%{_libdir}/*.so
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%{_datadir}/gtk-doc/html/
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/*
%changelog