File libunique.spec of Package libunique

#
# spec file for package libunique
#
# 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:           libunique
Version:        1.1.6
Release:        8
License:        LGPLv2.1+
Summary:        A library for writing single instance application
Url:            http://live.gnome.org/LibUnique
Group:          System/Libraries
Source:         libunique-%{version}.tar.bz2
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

%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
openSUSE Build Service is sponsored by