ncurses 5.9 - patch 20150214
[ncurses.git] / package / mingw-ncurses.spec
index bada23621efcbaa35da15c4b791553762af624e0..3ead6c4de4375990bc2f563bdbea8d3adfb60db2 100644 (file)
@@ -2,11 +2,11 @@
 
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
-Release: 5.9
-Version: 20130831
+Version: 5.9
+Release: 20150214
 License: X11
 Group: Development/Libraries
-Source: ncurses-%{release}-%{version}.tgz
+Source: ncurses-%{version}-%{release}.tgz
 # URL: http://invisible-island.net/ncurses/
 
 BuildRequires:  mingw32-filesystem >= 95
@@ -74,7 +74,7 @@ This package is used for testing ABI 6 with cross-compiles to MinGW.
        --without-tests
 
 %define debug_package %{nil}
-%setup -q -n ncurses-%{release}-%{version}
+%setup -q -n ncurses-%{version}-%{release}
 
 %build
 mkdir BUILD-W32
@@ -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.