File libunique1.spec of Package libunique1
#
# spec file for package libunique1
#
# Copyright (c) 2011 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/
#
Name: libunique1
%define _name libunique
Version: 1.1.6
Release: 12
License: LGPLv2.1+
Summary: A library for writing single instance application
Url: http://live.gnome.org/LibUnique
Group: System/Libraries
Source: %{_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libunique1-gcc46.patch dimstar@opensuse.org -- Backport commit f791ed from master to unique-1.1.
Patch0: libunique1-gcc46.patch
# PATCH-FIX-UPSTREAM libunique1-no_g_const_return.patch dimstar@opensuse.org -- Use const instead of G_CONST_RETURN. Not send upstream, as libunique1 is obsoleted.
Patch1: libunique1-no_g_const_return.patch
BuildRequires: gobject-introspection-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: gtk-doc
BuildRequires: gtk2-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libunique-1_0-0 = %{version}
%description
Unique is a library for writing single instance application. If you
launch a single instance application twice, the second instance will
either just quit or will send a message to the running instance.
%package -n libunique-1_0-0
License: LGPLv2.1+
Summary: A library for writing single instance application
Group: System/Libraries
%description -n libunique-1_0-0
Unique is a library for writing single instance application. If you
launch a single instance application twice, the second instance will
either just quit or will send a message to the running instance.
%package devel
License: LGPLv2.1+
Summary: A library for writing single instance application - development files
Group: Development/Libraries/GNOME
Requires: gtk2-devel
Requires: libunique-1_0-0 = %{version}
Provides: unique-doc = %{version}
Obsoletes: unique-doc < %{version}
Provides: unique-devel = %{version}
Obsoletes: unique-devel < %{version}
%description devel
Unique is a library for writing single instance application. If you
launch a single instance application twice, the second instance will
either just quit or will send a message to the running instance.
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
%patch1 -p1
%build
%configure --enable-debug=no --enable-static=no --enable-dbus=yes
make %{?jobs:-j%jobs}
%install
%makeinstall
rm %{buildroot}%{_libdir}/*.la
%post -n libunique-1_0-0 -p /sbin/ldconfig
%postun -n libunique-1_0-0 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -n libunique-1_0-0
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.0*
%{_libdir}/girepository-1.0/Unique-1.0.typelib
%files devel
%defattr(-,root,root)
%{_includedir}/unique-1.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%doc %{_datadir}/gtk-doc/html/unique
%changelog