File startup-notification.spec of Package startup-notification

#
# spec file for package startup-notification (Version 0.10)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           startup-notification
BuildRequires:  xorg-x11-devel
Url:            http://www.freedesktop.org/wiki/Software/startup-notification
License:        GPLv2+
Group:          System/X11/Utilities
Version:        0.10
Release:        10
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf)
Summary:        Reference Implementation for the Startup-Notification Protocol
Source:         startup-notification-%{version}.tar.bz2
Source99:       baselibs.conf
# PATCH-FEATURE-UPSTREAM startup-notification-application-id.patch vuntz@opensuse.org -- Add git commit to support APPLICATION_ID. This is useful for gnome-shell.
Patch0:         startup-notification-application-id.patch
# PATCH-FIX-UPSTREAM startup-notification-sn-launcher-screen.patch vuntz@opensuse.org -- Taken from git, to use the screen number in sn-launcher
Patch1:         startup-notification-sn-launcher-screen.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Startup-notification contains a reference implementation of the
startup-notification protocol.

%package -n libstartup-notification-1-0
License:        GPLv2+
Group:          System/X11/Utilities
Summary:        Reference Implementation for the Startup-Notification Protocol
Provides:       %{name} = %{version}
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 0.10 (when this provides/obsoletes was introduced)
Obsoletes:      %{name} <= %{version}
# bug437293
%ifarch ppc64
Obsoletes:      startup-notification-64bit
%endif
#

%description -n libstartup-notification-1-0
Startup-notification contains a reference implementation of the
startup-notification protocol.

%package devel
License:        GPLv2+
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/GNOME
Requires:       libstartup-notification-1-0 = %{version}
# bug437293
%ifarch ppc64
Obsoletes:      startup-notification-devel-64bit
%endif
#

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure --disable-static
make %{?jobs:-j %jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print

%post -n libstartup-notification-1-0 -p /sbin/ldconfig

%postun -n libstartup-notification-1-0 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libstartup-notification-1-0
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS ChangeLog
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/startup-notification-1.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by