remove internal libgettextlib.so and libgettextsrc.so (#650471)

This commit is contained in:
Jens Petersen 2011-02-07 15:33:57 +10:00
parent 5d0888d8a4
commit 7ed4974359

View File

@ -6,7 +6,7 @@
Summary: GNU libraries and utilities for producing multi-lingual messages Summary: GNU libraries and utilities for producing multi-lingual messages
Name: gettext Name: gettext
Version: 0.18.1.1 Version: 0.18.1.1
Release: 5%{?dist} Release: 6%{?dist}
License: GPLv3+ and LGPLv2+ License: GPLv3+ and LGPLv2+
Group: Development/Tools Group: Development/Tools
URL: http://www.gnu.org/software/gettext/ URL: http://www.gnu.org/software/gettext/
@ -36,7 +36,6 @@ BuildRequires: emacs
BuildRequires: git BuildRequires: git
%endif %endif
BuildRequires: chrpath BuildRequires: chrpath
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires(post): info Requires(post): info
Requires(preun): info Requires(preun): info
@ -150,7 +149,6 @@ make %{?_smp_mflags} %{?with_java:GCJFLAGS="-findirect-dispatch"}
%install %install
rm -rf %{buildroot}
make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="%{__install} -p" \ make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="%{__install} -p" \
lispdir=%{_datadir}/emacs/site-lisp/gettext \ lispdir=%{_datadir}/emacs/site-lisp/gettext \
aclocaldir=%{_datadir}/aclocal EXAMPLESFILES="" aclocaldir=%{_datadir}/aclocal EXAMPLESFILES=""
@ -197,9 +195,12 @@ rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/libintl.jar
rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/gettext.jar rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/gettext.jar
# remove unpackaged files from the buildroot # remove .la files
rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
# remove internal .so lib files
rm ${RPM_BUILD_ROOT}%{_libdir}/libgettext{src,lib}.so
# move po-mode initialization elisp file to the right place, and remove byte # move po-mode initialization elisp file to the right place, and remove byte
# compiled file # compiled file
install -d ${RPM_BUILD_ROOT}%{_emacs_sitestartdir} install -d ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}
@ -218,10 +219,6 @@ for i in $RPM_BUILD_ROOT%{_bindir}/* `find $RPM_BUILD_ROOT%{_libdir} -type f`; d
done done
%clean
rm -rf ${RPM_BUILD_ROOT}
%if %{with check} %if %{with check}
%check %check
# this takes quite a lot of time to run # this takes quite a lot of time to run
@ -299,8 +296,6 @@ fi
%{_infodir}/autosprintf* %{_infodir}/autosprintf*
%{_libdir}/libasprintf.so %{_libdir}/libasprintf.so
%{_libdir}/libgettextpo.so %{_libdir}/libgettextpo.so
%{_libdir}/libgettextlib.so
%{_libdir}/libgettextsrc.so
%{_libdir}/preloadable_libintl.so %{_libdir}/preloadable_libintl.so
%{_mandir}/man1/autopoint.1* %{_mandir}/man1/autopoint.1*
%{_mandir}/man3/* %{_mandir}/man3/*
@ -313,8 +308,8 @@ fi
%files libs %files libs
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libasprintf.so.* %{_libdir}/libasprintf.so.*
%{_libdir}/libgettextlib-0.*.so
%{_libdir}/libgettextpo.so.* %{_libdir}/libgettextpo.so.*
%{_libdir}/libgettextlib-0.*.so
%{_libdir}/libgettextsrc-0.*.so %{_libdir}/libgettextsrc-0.*.so
%if %{with jar} %if %{with jar}
%{_datadir}/%{name}/libintl.jar %{_datadir}/%{name}/libintl.jar
@ -331,6 +326,9 @@ fi
%{_emacs_sitelispdir}/%{name}/*.el %{_emacs_sitelispdir}/%{name}/*.el
%changelog %changelog
* Mon Feb 7 2011 Jens Petersen <petersen@redhat.com> - 0.18.1.1-6
- remove internal libgettextlib.so and libgettextsrc.so (#650471)
* Mon Feb 7 2011 Jens Petersen <petersen@redhat.com> - 0.18.1.1-5 * Mon Feb 7 2011 Jens Petersen <petersen@redhat.com> - 0.18.1.1-5
- fix license field of gettext-libs since libgettextpo is GPLv3+ (#640158) - fix license field of gettext-libs since libgettextpo is GPLv3+ (#640158)