File libunique.spec of Package libunique

#
# spec file for package libunique
#
# Copyright (c) 2013 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:        3.0.2
Release:        0
Summary:        A library for writing single instance application
License:        LGPL-2.1+
Group:          System/Libraries
Url:            http://live.gnome.org/LibUnique
Source:         http://download.gnome.org/sources/libunique/3.0/libunique-%{version}.tar.bz2
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  gtk3-devel
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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-3_0-0
Summary:        A library for writing single instance application
Group:          System/Libraries

%description -n libunique-3_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 -n typelib-1_0-Unique-3_0
Summary:        A library for writing single instance application -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Unique-3_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.

This package provides the GObject Introspection bindings forlibunique.

%package devel
Summary:        A library for writing single instance application - development files
Group:          Development/Libraries/GNOME
Requires:       libunique-3_0-0 = %{version}
Requires:       typelib-1_0-Unique-3_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-3_0-0 -p /sbin/ldconfig

%postun -n libunique-3_0-0 -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -n libunique-3_0-0
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.0*

%files -n typelib-1_0-Unique-3_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Unique-3.0.typelib

%files devel
%defattr(-,root,root)
%{_includedir}/unique-3.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%doc %{_datadir}/gtk-doc/html/unique-3.0

%changelog
openSUSE Build Service is sponsored by