LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lunar-date.spec of Package lunar-date (Project M17N)

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

Summary: Chinese Lunar calendar library
Name: lunar-date
Version: 2.4.0

%define _libver 2_0
%define _libpkg lib%{name}-%{_libver}-0

Release: 0
License: GPL-2.0+
Group: System/I18n/Chinese
Url: http://liblunar.googlecode.com/
Source: https://liblunar.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires: libgnome-devel gobject-introspection-devel intltool

%if %{defined fedora}
BuildRequires: python
%endif

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build

%package -n %{_libpkg}
Summary: Chinese Lunar calendar library
Group: System/I18n/Chinese
%if %{defined fedora}
%else
Recommends: typelib-1_0-LunarDate-%{_libver}
%endif

%package -n typelib-1_0-LunarDate-%{_libver}
Summary: Chinese Lunar calendar introspection bindings
Group: System/I18n/Chinese

%package devel
Summary: Chinese Lunar calendar library development files
Group: Development/Libraries/C and C++
Requires: %{_libpkg} = %{version}
Requires: typelib-1_0-LunarDate-%{_libver} = %{version}

%package holiday
Summary: Chinese Holiday definition
Group: System/I18n/Chinese
BuildArch: noarch

%description
Library to support date conversion from/to chinese lunar calendar

%description -n %{_libpkg}
Library to support date conversion from/to chinese lunar calendar

%description -n typelib-1_0-LunarDate-%{_libver}
Introspection bindings for Chinese Lunar calendar for use in Gnome Shell

%description devel
Development files for Chinese Lunar calendar library

%description holiday
Holiday definition file for Chinese Lunar calendar library

%prep
%setup -q

%build
%configure
%__make

%install
%makeinstall
%find_lang %{name}

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post -n %{_libpkg} -p /sbin/ldconfig

%postun -n %{_libpkg} -p /sbin/ldconfig

%files -n %{_libpkg} -f %{name}.lang
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%doc AUTHORS COPYING ChangeLog ChangeLog.pre-2-2 NEWS README

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

%files holiday
%defattr(-,root,root,-)
%dir %{_datadir}/liblunar
%{_datadir}/liblunar/holiday.*_*

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/liblunar-2.0
%{_includedir}/liblunar-2.0/%{name}
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/%{name}

%changelog