From 7b169246797e6cddcc3678e2fee0587535c51eb8 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 21 Jul 2010 14:37:31 +0000 Subject: [PATCH] - move headers to /usr/include (#609977) --- slang.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/slang.spec b/slang.spec index 6e44f43..d782dfb 100644 --- a/slang.spec +++ b/slang.spec @@ -1,7 +1,7 @@ Summary: The shared library for the S-Lang extension language Name: slang Version: 2.2.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: System Environment/Libraries 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 %configure \ - --includedir=%{_includedir}/slang \ --with-{pcre,onig,png,z}lib=%{_libdir} \ --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 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 rm -rf ${RPM_BUILD_ROOT} @@ -107,6 +111,7 @@ rm -rf ${RPM_BUILD_ROOT} %doc doc/*/cslang*.txt doc/*/cref.txt %{_libdir}/libslang*.so %{_libdir}/pkgconfig/slang.pc +%{_includedir}/sl*.h %{_includedir}/slang %files static @@ -114,6 +119,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libslang*.a %changelog +* Wed Jul 21 2010 Miroslav Lichvar - 2.2.2-2 +- move headers to /usr/include (#609977) + * Mon Dec 07 2009 Miroslav Lichvar - 2.2.2-1 - update to 2.2.2