Spec clean up

This commit is contained in:
Xavier Bachelot 2018-04-19 17:29:44 +02:00
parent b0676f0e6b
commit 09425a56b7

View File

@ -1,18 +1,12 @@
Name: sombok
Version: 2.4.0
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Unicode Text Segmentation Package
Group: System Environment/Libraries
License: GPLv2+ or Artistic clarified
URL: http://sf.net/projects/linefold/
Source0: https://github.com/hatukanezumi/sombok/archive/%{name}-%{version}.tar.gz
# libthai is available only in Fedora and EL6
%if 0%{?rhel} > 5 || 0%{?fedora}
BuildRequires: libthai-devel
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
@ -28,7 +22,6 @@ Annex #29 (UAX #29).
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
@ -48,31 +41,29 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog ChangeLog.REL1 COPYING NEWS README README.ja_JP
%license COPYING
%doc AUTHORS ChangeLog ChangeLog.REL1 NEWS README README.ja_JP
%{_libdir}/libsombok.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/sombok*.h
%{_libdir}/libsombok.so
%{_libdir}/pkgconfig/sombok.pc
%changelog
* Thu Apr 19 2018 Xavier Bachelot <xavier@bachelot.org> 2.4.0-7
- Spec clean up.
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild