- fix Requires

- disable static libs end remove *.la in devel
This commit is contained in:
Zoltan Kota 2005-08-26 09:39:20 +00:00
parent 0b16df5865
commit 2b1fe13610

View File

@ -1,16 +1,21 @@
Summary: Conversion between character sets and surfaces
Name: recode
Version: 3.6
Release: 18%{?dist}
Release: 19%{?dist}
License: GPL
Group: Applications/File
Source: http://recode.progiciels-bpi.ca/archives/recode-%{version}.tar.gz
Patch0: recode.patch
Patch1: recode-3.6-getcwd.patch
Url: http://recode.progiciels-bpi.ca/
Requires: /sbin/install-info /sbin/ldconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /sbin/install-info
Requires(post): /sbin/ldconfig
Requires(preun): /sbin/install-info
Requires(postun): /sbin/ldconfig
%description
The `recode' converts files between character sets and usages.
It recognises or produces nearly 150 different character sets
@ -22,7 +27,7 @@ are supported.
%package devel
Summary: Header files and static libraries for development using recode
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: %{name} = %{version}-%{release}
%description devel
The `recode' library converts files between character sets and usages.
@ -38,7 +43,7 @@ are supported.
%patch1 -p1 -b .getcwd
%build
%configure
%configure --disable-static
make %{?_smp_mflags}
%install
@ -50,6 +55,10 @@ rm -rf $RPM_BUILD_ROOT
# remove unpackaged file from the buildroot
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
# remove libtool archives
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%post
/sbin/ldconfig
/sbin/install-info %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode). Conversion between character sets and surfaces."
@ -75,12 +84,14 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root)
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/*
%changelog
* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-19
- fix requires
- disable static libs and remove libtool archives
* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-18
- add dist tag
- specfile cleanup