ncurses 5.9 - patch 20150214
[ncurses.git] / package / mingw-ncurses.spec
index dd1d466964a67775e161af3c7fd73abf9ddf22e1..3ead6c4de4375990bc2f563bdbea8d3adfb60db2 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 5.9
-Release: 20140323
+Release: 20150214
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
@@ -96,12 +96,24 @@ popd
 %install
 rm -rf $RPM_BUILD_ROOT
 
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+
 pushd BUILD-W32
-%{mingw32_make} install
+%{mingw32_make} install.libs
+for name in $RPM_BUILD_ROOT%{mingw32_bindir}/*-config; \
+       do \
+               base=`basename $name`; \
+               ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw32_target}-$base; \
+       done
 popd
 
 pushd BUILD-W64
-%{mingw64_make} install
+%{mingw64_make} install.libs
+for name in $RPM_BUILD_ROOT%{mingw64_bindir}/*-config; \
+       do \
+               base=`basename $name`; \
+               ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw64_target}-$base; \
+       done
 popd
 
 %clean
@@ -111,16 +123,21 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 
 %files -n mingw32-ncurses6
+%{_bindir}/%{mingw32_target}-*
 %{mingw32_bindir}/*
 %{mingw32_includedir}/*
 %{mingw32_libdir}/*
 
 %files -n mingw64-ncurses6
+%{_bindir}/%{mingw64_target}-*
 %{mingw64_bindir}/*
 %{mingw64_includedir}/*
 %{mingw64_libdir}/*
 
 %changelog
 
+* Sat Sep 20 2014 Thomas E. Dickey
+- adjust install-rules for ncurses*-config
+
 * Sat Aug 03 2013 Thomas E. Dickey
 - initial version, using mingw-pdcurses package as a guide.