File girara.spec of Package girara

#
# spec file for package girara
#
# Copyright (c) 2015 SUSE LINUX 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/
#


%define libname libgirara-gtk3
%define so_ver  2
Name:           girara
Version:        0.2.4
Release:        0
Summary:        User interface library
License:        Zlib
Group:          Libraries
Url:            http://pwmt.org/projects/girara
Source0:        http://pwmt.org/projects/girara/download/%{name}-%{version}.tar.gz
BuildRequires:  gettext
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.2
BuildRequires:  pkgconfig(libnotify)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%package -n %{libname}-%{so_ver}
Summary:        Header files for girara library
Group:          System/Libraries

%description -n %{libname}-%{so_ver}
girara is a library that implements a user interface that focuses on
simplicity and minimalism. Currently based on GTK+, a cross-platform
widget toolkit, it provides an interface that focuses on three main
components: A so-called view widget that represents the actual
application (e.g. a website (browser), an image (image viewer) or the
document (document viewer)), an input bar that is used to execute
commands of the application and the status bar which provides the user
with current information. girara was designed to replace and enhance
the user interface that is used by zathura and jumanji and other
features that those applications share.

%description
girara is a library that implements a user interface that focuses on
simplicity and minimalism. Currently based on GTK+, a cross-platform
widget toolkit, it provides an interface that focuses on three main
components: A so-called view widget that represents the actual
application (e.g. a website (browser), an image (image viewer) or the
document (document viewer)), an input bar that is used to execute
commands of the application and the status bar which provides the user
with current information. girara was designed to replace and enhance
the user interface that is used by zathura and jumanji and other
features that those applications share.

%package devel
Summary:        Header files for girara library
Group:          Development/Libraries
Requires:       %{libname}-%{so_ver} = %{version}-%{release}

%description devel
Header files for girara user interface library.

%prep
%setup -q

%build
make %{?_smp_mflags} COLOR=0 VERBOSE=1

%install
make install \
	DESTDIR=%{buildroot} \
	LIBDIR=%{_libdir} \
	COLOR=0

%find_lang %{libname}-%{so_ver}
find %{buildroot} -name '*.*a' -delete -print

%post -n %{libname}-%{so_ver} -p /sbin/ldconfig

%postun	-n %{libname}-%{so_ver} -p /sbin/ldconfig

%files -n %{libname}-%{so_ver} -f %{libname}-%{so_ver}.lang
%defattr(-,root,root)
%doc LICENSE README
%{_libdir}/libgirara-gtk3.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/libgirara-gtk3.so
%{_includedir}/girara
%{_libdir}/pkgconfig/girara-gtk3.pc

%changelog