From 4a9be96d273096c42018b66e5b4e92be898225594d1586e36226e5fc0183dbfe Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 5 Mar 2018 13:57:37 +0000 Subject: [PATCH 1/2] Accepting request 581272 from GNOME:Next spec-cleaner OBS-URL: https://build.opensuse.org/request/show/581272 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libthai?expand=0&rev=47 --- libthai.changes | 5 +++++ libthai.spec | 22 +++++++--------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/libthai.changes b/libthai.changes index bc3515c..92569a6 100644 --- a/libthai.changes +++ b/libthai.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 28 16:36:34 UTC 2018 - dimstar@opensuse.org + +- Modernize spec-file by calling spec-cleaner + ------------------------------------------------------------------- Wed Nov 1 08:59:46 UTC 2017 - fezhang@suse.com diff --git a/libthai.spec b/libthai.spec index bdaf097..98d5cfa 100644 --- a/libthai.spec +++ b/libthai.spec @@ -1,7 +1,7 @@ # # spec file for package libthai # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -20,14 +20,13 @@ Name: libthai Version: 0.1.27 Release: 0 Summary: Thai Language Support Routines -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: System/Libraries -Url: http://linux.thai.net/plone/TLWG/libthai/ +URL: http://linux.thai.net/plone/TLWG/libthai/ Source: https://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz Source99: baselibs.conf BuildRequires: libdatrie-devel -BuildRequires: pkg-config -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig %description LibThai is a set of Thai language support routines aimed to ease @@ -40,12 +39,12 @@ support. Summary: Thai Language Support Routines # SLPP applied since version 0.1.15. Group: System/Libraries -Provides: libthai = %{version} -Obsoletes: libthai < %{version} # libthai needs the data to run, but the data is not parallel-installable, # hence the >= instead of =. We just hope the data format will stay the same in # the future. Requires: libthai-data >= %{version} +Provides: libthai = %{version} +Obsoletes: libthai < %{version} %description -n libthai0 LibThai is a set of Thai language support routines aimed to ease @@ -91,25 +90,18 @@ make %{?_smp_mflags} %install %make_install -find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print - -%clean -rm -rf %{buildroot} +find %{buildroot} -type f -name "*.la" -delete -print %post -n libthai0 -p /sbin/ldconfig - %postun -n libthai0 -p /sbin/ldconfig %files -n libthai0 -%defattr(-,root,root) %{_libdir}/libthai.so.* %files data -%defattr(-, root, root) %{_datadir}/libthai/ %files devel -%defattr(-,root,root) %{_includedir}/thai/ %{_libdir}/libthai.so %{_libdir}/pkgconfig/*.pc From e75414da8335c10bd40c0a2683b99282f59a3cc25b0b636b05b55cfbda786a19 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 5 Mar 2018 15:54:15 +0000 Subject: [PATCH 2/2] Accepting request 583019 from home:jengelh:branches:GNOME:Factory - Fix SRPM group. Update descriptions. OBS-URL: https://build.opensuse.org/request/show/583019 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libthai?expand=0&rev=48 --- libthai.changes | 5 +++++ libthai.spec | 48 ++++++++++++++++++++++-------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/libthai.changes b/libthai.changes index 92569a6..59bb280 100644 --- a/libthai.changes +++ b/libthai.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 5 15:40:22 UTC 2018 - jengelh@inai.de + +- Fix SRPM group. Update descriptions. + ------------------------------------------------------------------- Wed Feb 28 16:36:34 UTC 2018 - dimstar@opensuse.org diff --git a/libthai.spec b/libthai.spec index 98d5cfa..a4a1545 100644 --- a/libthai.spec +++ b/libthai.spec @@ -21,62 +21,58 @@ Version: 0.1.27 Release: 0 Summary: Thai Language Support Routines License: LGPL-2.1-or-later -Group: System/Libraries -URL: http://linux.thai.net/plone/TLWG/libthai/ +Group: Development/Libraries/C and C++ +Url: http://linux.thai.net/plone/TLWG/libthai/ Source: https://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz Source99: baselibs.conf BuildRequires: libdatrie-devel BuildRequires: pkgconfig %description -LibThai is a set of Thai language support routines aimed to ease -developers' tasks to incorporate Thai language support in their -applications. It includes important Thai-specific functions, such as -word breaking, input and output methods, and basic character and string -support. +LibThai is a set of Thai language support routines to aid +incorporation of Thai language support into applications. It includes +important Thai-specific functions, such as word breaking, input and +output methods, and basic character and string support. %package -n libthai0 Summary: Thai Language Support Routines # SLPP applied since version 0.1.15. -Group: System/Libraries # libthai needs the data to run, but the data is not parallel-installable, # hence the >= instead of =. We just hope the data format will stay the same in # the future. +Group: System/Libraries Requires: libthai-data >= %{version} Provides: libthai = %{version} Obsoletes: libthai < %{version} %description -n libthai0 -LibThai is a set of Thai language support routines aimed to ease -developers' tasks to incorporate Thai language support in their -applications. It includes important Thai-specific functions, such as -word breaking, input and output methods, and basic character and string -support. +LibThai is a set of Thai language support routines to aid +incorporation of Thai language support into applications. It includes +important Thai-specific functions, such as word breaking, input and +output methods, and basic character and string support. %package data -Summary: Thai Language Support Routines - Data files +Summary: Data files for the Thai language support library Group: System/Libraries %description data -LibThai is a set of Thai language support routines aimed to ease -developers' tasks to incorporate Thai language support in their -applications. It includes important Thai-specific functions, such as -word breaking, input and output methods, and basic character and string -support. +LibThai is a set of Thai language support routines to aid +incorporation of Thai language support into applications. It includes +important Thai-specific functions, such as word breaking, input and +output methods, and basic character and string support. This package contains the data files for libthai. %package devel -Summary: Thai Language Support Routines (development files) +Summary: Development files for the Thai language support library Group: Development/Languages/C and C++ Requires: libthai0 = %{version} %description devel -LibThai is a set of Thai language support routines aimed to ease -developers' tasks to incorporate Thai language support in their -applications. It includes important Thai-specific functions, such as -word breaking, input and output methods, and basic character and string -support. +LibThai is a set of Thai language support routines to aid +incorporation of Thai language support into applications. It includes +important Thai-specific functions, such as word breaking, input and +output methods, and basic character and string support. This package contains headers and libraries required for developing software using libthai. @@ -85,7 +81,7 @@ software using libthai. %setup -q %build -%configure --disable-static --with-pic +%configure --disable-static make %{?_smp_mflags} %install