Group :: Sistema/Bibliotecas
RPM: libthai
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Group: System/Libraries
%add_optflags %optflags_shared
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Summary: Thai language support routines
Name: libthai
Version: 0.1.29
Release: alt1_6
License: LGPL-2.1-or-later
Source: http://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.xz
Patch0: libthai-0.1.9-multilib.patch
URL: http://linux.thai.net
BuildRequires: gcc
BuildRequires: pkgconfig(datrie-0.2)
BuildRequires: doxygen
Source44: import.info
%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 e.g. word breaking, input and
output methods as well as basic character and string supports.
%package devel
Group: Development/Other
Summary: Thai language support routines
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The libthai-devel package includes the header files and developer docs
for the libthai package.
Install libthai-devel if you want to develop programs which will use
libthai.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static
make
%install
%makeinstall
# move installed doc files back to build directory to package them
# in the right place
mkdir installed-docs
mv $RPM_BUILD_ROOT%{_docdir}/libthai/* installed-docs
rmdir $RPM_BUILD_ROOT%{_docdir}/libthai
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%files
%doc README AUTHORS COPYING ChangeLog
%{_libdir}/lib*.so.*
%{_datadir}/libthai
%files devel
%doc installed-docs/*
%{_includedir}/thai
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%changelog
…
Todas as alterações você pod ver aqui
%add_optflags %optflags_shared
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Summary: Thai language support routines
Name: libthai
Version: 0.1.29
Release: alt1_6
License: LGPL-2.1-or-later
Source: http://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.xz
Patch0: libthai-0.1.9-multilib.patch
URL: http://linux.thai.net
BuildRequires: gcc
BuildRequires: pkgconfig(datrie-0.2)
BuildRequires: doxygen
Source44: import.info
%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 e.g. word breaking, input and
output methods as well as basic character and string supports.
%package devel
Group: Development/Other
Summary: Thai language support routines
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The libthai-devel package includes the header files and developer docs
for the libthai package.
Install libthai-devel if you want to develop programs which will use
libthai.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static
make
%install
%makeinstall
# move installed doc files back to build directory to package them
# in the right place
mkdir installed-docs
mv $RPM_BUILD_ROOT%{_docdir}/libthai/* installed-docs
rmdir $RPM_BUILD_ROOT%{_docdir}/libthai
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%files
%doc README AUTHORS COPYING ChangeLog
%{_libdir}/lib*.so.*
%{_datadir}/libthai
%files devel
%doc installed-docs/*
%{_includedir}/thai
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%changelog
…
Todas as alterações você pod ver aqui