From 5faed17156de8c2c647e8da2554392ed79352f22 Mon Sep 17 00:00:00 2001 From: Kaihao Bai Date: Tue, 11 Apr 2023 17:59:50 +0800 Subject: [PATCH] optimize spec --- libtimezonemap.spec | 51 ++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/libtimezonemap.spec b/libtimezonemap.spec index a5c0104..a2ba3ac 100644 --- a/libtimezonemap.spec +++ b/libtimezonemap.spec @@ -1,21 +1,16 @@ -%define anolis_release 2 +%define anolis_release 3 + Name: libtimezonemap Version: 0.4.5.2 Release: %{anolis_release}%{?dist} Summary: Time zone map widget for Gtk+ - License: GPLv3 -URL: https://launchpad.net/timezonemap -Source0: https://github.com/dashea/timezonemap/archive/%{version}.tar.gz - -BuildRequires: glib2-devel >= 2.26 -BuildRequires: gtk3-devel >= 3.1.4 -BuildRequires: json-glib-devel -BuildRequires: gobject-introspection-devel -BuildRequires: gnome-common -BuildRequires: libsoup-devel >= 2.42.0 -BuildRequires: librsvg2-devel -BuildRequires: make +URL: https://github.com/dashea/timezonemap +Source0: %{url}/archive/%{version}.tar.gz + +BuildRequires: glib2-devel >= 2.26 gtk3-devel >= 3.1.4 json-glib-devel +BuildRequires: gobject-introspection-devel gnome-common +BuildRequires: libsoup-devel >= 2.42.0 librsvg2-devel make %description libtimezonemap is a time zone map widget for Gtk+. The widget displays a world @@ -25,9 +20,18 @@ location can be changed by clicking on the map. This library is a fork of the of the code from gnome-control-center's datetime panel, which was itself a fork of Ubiquity's timezone map. +This static library is a copied version of the code in GNOME 3.0's control center +panel 'datetime', which itself is a version of Ubiquity's map ported to C. + +Ideally in the future, we can have all three packages using the same code. +But for now, for time reasons (hah), it's just a copy. + +To update this copy, put newer versions of the code and data files in place; +then fix up any GTK3-isms and add cc_timezone_map_set_coords and friends. + %package doc Summary: Documentation files for %{name} -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{EVR} BuildArch: noarch %description doc @@ -35,14 +39,14 @@ The %{name}-doc package contains documentation files for %{name}. %package devel Summary: Development files for %{name} -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{EVR} %description devel libtimezonemap is a time zone map widget for Gtk+. This package contains header files used for building applications that use %{name}. %prep -%autosetup -n timezonemap-%{version} +%autosetup -p1 -n timezonemap-%{version} %build ./autogen.sh @@ -58,22 +62,25 @@ rm -f %{buildroot}%{_libdir}/*.la %files %license COPYING %dir %{abidir} -%{_libdir}/libtimezonemap.so.* +%{_libdir}/%{name}.so.* %{_libdir}/girepository-1.0/TimezoneMap-1.0.typelib %{_datadir}/%{name} -%{abidir}/libtimezonemap.dump - -%files doc -%doc README TODO +%{abidir}/%{name}.dump %files devel -%{_libdir}/libtimezonemap.so +%{_libdir}/%{name}.so %{_libdir}/pkgconfig/timezonemap.pc %{_includedir}/timezonemap %{_datadir}/gir-1.0/TimezoneMap-1.0.gir %{_datadir}/glade/catalogs/TimezoneMap.xml +%files doc +%doc README TODO + %changelog +* Tue Apr 11 2023 Kaihao Bai - 0.4.5.2-3 +- optimize spec + * Mon Mar 06 2023 Kaihao Bai - 0.4.5.2-2 - optimize spec -- Gitee