LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File timezonemap.spec of Package timezonemap (Project home:MargueriteSu:unity)

#
# spec file for package timezonemap
#
# 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/
#

Name:           timezonemap
Version:	0.4.3build1
Release:	0
License:	GPL-3.0
Summary:	GTK+3 timezone map widget
Url:	https://launchpad.net/timezonemap
Group:	System/Libraries
Source:	http://archive.ubuntu.com/ubuntu/pool/main/libt/libtimezonemap/libtimezonemap_%{version}.tar.gz
BuildRequires:	gnome-common
BuildRequires:	glib2-devel
BuildRequires:	gtk3-devel
BuildRequires:	gobject-introspection-devel
BuildRequires:	json-glib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Timezone map widget for GTK+3

%package -n libtimezonemap1
Summary:	GTK+3 timezone map widget
Group:	System/Libraries

%description -n libtimezonemap1
Timezone map widget for GTK+3.

%package devel
Summary:	Development headers for %{name}
Group:	Development/Libraries/C and C++
Requires:	libtimezonemap1 = %{version}

%description devel
Development headers for %{name}.

%package -n typelib-1_0-TimezoneMap-1_0
Summary:	GTK+3 timezone map widget - Introspection bindings
Group:	System/Libraries

%description -n typelib-1_0-TimezoneMap-1_0
This package contains the GObject Introspection bindings for
%{name} library.

%prep
%setup -q -n lib%{name}-%{version}
NOCONFIGURE=1 ./autogen.sh

%build
%configure
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
find %{buildroot} -name "*.la" -delete

%post -n libtimezonemap1 -p /sbin/ldconfig

%postun -n libtimezonemap1 -p /sbin/ldconfig

%files -n libtimezonemap1
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/libtimezonemap.so.1
%{_libdir}/libtimezonemap.so.1.0.0
%{_datadir}/libtimezonemap

%files devel
%defattr(-,root,root)
%{_includedir}/timezonemap
%{_libdir}/libtimezonemap.so
%{_libdir}/pkgconfig/timezonemap.pc
%{_datadir}/gir-1.0/TimezoneMap-1.0.gir

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