Remove obsolete macros

This commit is contained in:
Miroslav Lichvar 2013-07-29 14:35:24 +02:00
parent 15ddadbcc1
commit 2238d696be

View File

@ -12,8 +12,6 @@ Source0: ftp://ftp.gnu.org/gnu/autogen/rel5.12/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-autoopts-config.patch Patch0: %{name}-%{version}-autoopts-config.patch
Patch1: %{name}-%{version}-pkgconfig.patch Patch1: %{name}-%{version}-pkgconfig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: %{name}-libopts = %{version}-%{release} Requires: %{name}-libopts = %{version}-%{release}
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info Requires(preun): /sbin/install-info
@ -79,8 +77,6 @@ make #%{?_smp_mflags}
# 1 out of 20 tests fail. # 1 out of 20 tests fail.
%install %install
rm -rf $RPM_BUILD_ROOT
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -delete find $RPM_BUILD_ROOT -type f -name "*.la" -delete
find $RPM_BUILD_ROOT -type f -name "*.a" -delete find $RPM_BUILD_ROOT -type f -name "*.a" -delete
@ -90,9 +86,6 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/autoopts.m4 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/autoopts.m4
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/libopts-31.0.6.tar.gz rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/libopts-31.0.6.tar.gz
%clean
rm -rf $RPM_BUILD_ROOT
%post %post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
@ -107,7 +100,6 @@ fi
%postun libopts -p /sbin/ldconfig %postun libopts -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc AUTHORS %doc AUTHORS
%doc ChangeLog %doc ChangeLog
%doc COPYING %doc COPYING
@ -132,13 +124,11 @@ fi
%{_datadir}/%{name}/* %{_datadir}/%{name}/*
%files libopts %files libopts
%defattr(-,root,root,-)
%doc pkg/libopts/COPYING.mbsd %doc pkg/libopts/COPYING.mbsd
%doc pkg/libopts/COPYING.lgplv3 %doc pkg/libopts/COPYING.lgplv3
%{_libdir}/libopts.so.* %{_libdir}/libopts.so.*
%files libopts-devel %files libopts-devel
%defattr(-,root,root,-)
%{_bindir}/autoopts-config %{_bindir}/autoopts-config
%{_datadir}/aclocal/autoopts.m4 %{_datadir}/aclocal/autoopts.m4
#%{_datadir}/aclocal/liboptschk.m4 #%{_datadir}/aclocal/liboptschk.m4