2019-05-24
This commit is contained in:
53
SPECS/gettext.spec
Normal file
53
SPECS/gettext.spec
Normal file
@@ -0,0 +1,53 @@
|
||||
#TARBALL: http://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz
|
||||
#MD5SUM: df3f5690eaa30fd228537b00cb7b7590;SOURCES/gettext-0.19.8.1.tar.xz
|
||||
#-----------------------------------------------------------------------------
|
||||
Summary: The Gettext package contains utilities for internationalization and localization.
|
||||
Name: gettext
|
||||
Version: 0.19.8.1
|
||||
Release: 1
|
||||
License: GPLv3
|
||||
URL: Any
|
||||
Group: LFS/Base
|
||||
Vendor: Elizabeth
|
||||
Source0: http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz
|
||||
Requires: filesystem
|
||||
%description
|
||||
The Gettext package contains utilities for internationalization and localization.
|
||||
These allow programs to be compiled with NLS (Native Language Support), enabling
|
||||
them to output messages in the user's native language.
|
||||
#-----------------------------------------------------------------------------
|
||||
%prep
|
||||
%setup -q -n %{NAME}-%{VERSION}
|
||||
sed -i '/^TESTS =/d' gettext-runtime/tests/Makefile.in
|
||||
sed -i 's/test-lock..EXEEXT.//' gettext-tools/gnulib-tests/Makefile.in
|
||||
%build
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/%{NAME}-%{VERSION}
|
||||
make %{?_smp_mflags}
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install
|
||||
chmod -v 0755 %{buildroot}%{_libdir}/preloadable_libintl.so
|
||||
rm -rf %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
|
||||
#-----------------------------------------------------------------------------
|
||||
# Copy license/copying file
|
||||
install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
|
||||
#-----------------------------------------------------------------------------
|
||||
# Create file list
|
||||
rm %{buildroot}%{_infodir}/dir
|
||||
find %{buildroot} -name '*.la' -delete
|
||||
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
|
||||
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
|
||||
sed -i '/man\/man/d' filelist.rpm
|
||||
sed -i '/\/usr\/share\/info/d' filelist.rpm
|
||||
#-----------------------------------------------------------------------------
|
||||
%files -f filelist.rpm
|
||||
%defattr(-,root,root)
|
||||
%{_infodir}/*.gz
|
||||
%{_mandir}/man1/*.gz
|
||||
%{_mandir}/man3/*.gz
|
||||
#-----------------------------------------------------------------------------
|
||||
%changelog
|
||||
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 0.19.8.1-1
|
||||
- Initial build. First version
|
Reference in New Issue
Block a user