- move headers to /usr/include (#609977)

This commit is contained in:
Miroslav Lichvar 2010-07-21 14:37:31 +00:00
parent d6d9b63ed2
commit 7b16924679

View File

@ -1,7 +1,7 @@
Summary: The shared library for the S-Lang extension language Summary: The shared library for the S-Lang extension language
Name: slang Name: slang
Version: 2.2.2 Version: 2.2.2
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
Source: ftp://space.mit.edu/pub/davis/slang/v2.2/%{name}-%{version}.tar.bz2 Source: ftp://space.mit.edu/pub/davis/slang/v2.2/%{name}-%{version}.tar.bz2
@ -68,7 +68,6 @@ head -n -1800 < changes.txt > changes.txt_ && tail -n 1800 < changes.txt | \
%build %build
%configure \ %configure \
--includedir=%{_includedir}/slang \
--with-{pcre,onig,png,z}lib=%{_libdir} \ --with-{pcre,onig,png,z}lib=%{_libdir} \
--with-{pcre,onig,png,z}inc=%{_includedir} \ --with-{pcre,onig,png,z}inc=%{_includedir} \
; ;
@ -81,6 +80,11 @@ rm -rf ${RPM_BUILD_ROOT}
make install-all INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT make install-all INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{_docdir}/{slang,slsh} rm -rf $RPM_BUILD_ROOT%{_docdir}/{slang,slsh}
mkdir $RPM_BUILD_ROOT%{_includedir}/slang
for h in slang.h slcurses.h; do
ln -s ../$h $RPM_BUILD_ROOT%{_includedir}/slang/$h
done
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
@ -107,6 +111,7 @@ rm -rf ${RPM_BUILD_ROOT}
%doc doc/*/cslang*.txt doc/*/cref.txt %doc doc/*/cslang*.txt doc/*/cref.txt
%{_libdir}/libslang*.so %{_libdir}/libslang*.so
%{_libdir}/pkgconfig/slang.pc %{_libdir}/pkgconfig/slang.pc
%{_includedir}/sl*.h
%{_includedir}/slang %{_includedir}/slang
%files static %files static
@ -114,6 +119,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/libslang*.a %{_libdir}/libslang*.a
%changelog %changelog
* Wed Jul 21 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.2-2
- move headers to /usr/include (#609977)
* Mon Dec 07 2009 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.2-1 * Mon Dec 07 2009 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.2-1
- update to 2.2.2 - update to 2.2.2