forked from pool/libwnck
Accepting request 67432 from GNOME:Next
thanks OBS-URL: https://build.opensuse.org/request/show/67432 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libwnck?expand=0&rev=63
This commit is contained in:
committed by
Git OBS Bridge
parent
b2404b65e8
commit
9c5a1aa430
38
libwnck.spec
38
libwnck.spec
@@ -18,12 +18,12 @@
|
||||
|
||||
|
||||
Name: libwnck
|
||||
Version: 2.30.6
|
||||
Release: 6
|
||||
Version: 3.0.0
|
||||
Release: 1
|
||||
License: LGPLv2.1+
|
||||
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
|
||||
#%(sh %{_sourcedir}/%{name}_spec-update.sh %{_sourcedir} %{name} libwnck-1)
|
||||
%define libwnck-1_name 22
|
||||
%define libwnck-3_name 0
|
||||
Summary: Window Navigator Construction Kit (Library Package)
|
||||
Group: Development/Libraries/GNOME
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
@@ -31,11 +31,11 @@ Source1: %{name}_spec-update.sh
|
||||
Source99: baselibs.conf
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
BuildRequires: intltool
|
||||
BuildRequires: translation-update-upstream
|
||||
Recommends: %{name}-lang
|
||||
Requires: libwnck-1-22 = %{version}
|
||||
Requires: libwnck-3-0 = %{version}
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: libwnck-64bit
|
||||
@@ -47,7 +47,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
The Window Navigator Construction Kit is a library that can be used to
|
||||
write task lists, pagers, and similar GNOME programs.
|
||||
|
||||
%package -n libwnck-1-22
|
||||
%package -n libwnck-3-0
|
||||
License: LGPLv2.1+
|
||||
Summary: Window Navigator Construction Kit (Library Package)
|
||||
Group: Development/Libraries/GNOME
|
||||
@@ -58,7 +58,7 @@ Obsoletes: libwnck-64bit
|
||||
%endif
|
||||
#
|
||||
|
||||
%description -n libwnck-1-22
|
||||
%description -n libwnck-3-0
|
||||
The Window Navigator Construction Kit is a library that can be used to
|
||||
write task lists, pagers, and similar GNOME programs.
|
||||
|
||||
@@ -67,8 +67,6 @@ License: GPLv2+
|
||||
Summary: Include Files and Libraries mandatory for Development
|
||||
Group: Development/Libraries/GNOME
|
||||
Requires: %{name} = %{version}
|
||||
Requires: glib2-devel
|
||||
Requires: gtk2-devel
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: libwnck-devel-64bit
|
||||
@@ -87,11 +85,9 @@ translation-update-upstream
|
||||
# rpmlint note: libwnck has a separate translation for both Bengali and Bengali India
|
||||
|
||||
%build
|
||||
# needed for libwnck-2.19.4:
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%configure\
|
||||
--disable-static
|
||||
%__make %{?jobs:-j%jobs}
|
||||
--disable-static
|
||||
%__make %{?jobs:-j%jobs} V=1
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
@@ -99,15 +95,15 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
||||
%endif
|
||||
rm %{buildroot}%{_libdir}/*.*a
|
||||
%find_lang %{name}
|
||||
%find_lang %{name}-3.0
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -n libwnck-1-22 -p /sbin/ldconfig
|
||||
%post -n libwnck-3-0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libwnck-1-22 -p /sbin/ldconfig
|
||||
%postun -n libwnck-3-0 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
@@ -115,19 +111,19 @@ rm -rf %{buildroot}
|
||||
%{_bindir}/wnck-urgency-monitor
|
||||
%{_bindir}/wnckprop
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%files lang -f %{name}-3.0.lang
|
||||
|
||||
%files -n libwnck-1-22
|
||||
%files -n libwnck-3-0
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/girepository-1.0/Wnck-1.0.typelib
|
||||
%{_libdir}/girepository-1.0/Wnck-3.0.typelib
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/libwnck-1.0
|
||||
%{_includedir}/libwnck-3.0
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_libdir}/*.so
|
||||
%{_datadir}/gir-1.0/Wnck-1.0.gir
|
||||
%{_datadir}/gir-1.0/Wnck-3.0.gir
|
||||
# Own these repositories to not depend on gtk-doc while building:
|
||||
%dir %{_datadir}/gtk-doc
|
||||
%dir %{_datadir}/gtk-doc/html
|
||||
|
Reference in New Issue
Block a user