SPECS: crossmingw32-gettext.spec - cleanup, separated -static,-dll

qboosh qboosh at pld-linux.org
Tue Mar 6 11:00:39 CET 2007


Author: qboosh                       Date: Tue Mar  6 10:00:39 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- cleanup, separated -static,-dll

---- Files affected:
SPECS:
   crossmingw32-gettext.spec (1.28 -> 1.29) 

---- Diffs:

================================================================
Index: SPECS/crossmingw32-gettext.spec
diff -u SPECS/crossmingw32-gettext.spec:1.28 SPECS/crossmingw32-gettext.spec:1.29
--- SPECS/crossmingw32-gettext.spec:1.28	Sun Feb 25 16:01:06 2007
+++ SPECS/crossmingw32-gettext.spec	Tue Mar  6 11:00:33 2007
@@ -1,5 +1,4 @@
 # $Revision$, $Date$
-#
 Summary:	gettext libraries - cross mingw32 version
 Summary(pl.UTF-8):	Biblioteki gettext - wersja skrośna dla mingw32
 %define		_realname		gettext
@@ -7,7 +6,7 @@
 Version:	0.16.1
 Release:	1
 License:	LGPL
-Group:		Libraries
+Group:		Development/Libraries
 Source0:	ftp://ftp.gnu.org/gnu/gettext/%{_realname}-%{version}.tar.gz
 # Source0-md5:	3d9ad24301c6d6b17ec30704a13fe127
 Patch0:		%{_realname}-info.patch
@@ -36,6 +35,7 @@
 %define		_sysprefix		/usr
 %define		_prefix			%{_sysprefix}/%{target}
 %define		_pkgconfigdir		%{_prefix}/lib/pkgconfig
+%define		_dlldir			/usr/share/wine/windows/system
 %define		__cc			%{target}-gcc
 %define		__cxx			%{target}-g++
 
@@ -45,6 +45,30 @@
 %description -l pl.UTF-8
 Biblioteki gettext - wersja skrośna dla mingw32.
 
+%package static
+Summary:	Static gettext libraries (cross mingw32 version)
+Summary(pl.UTF-8):	Statyczne biblioteki gettext (wersja skrośna mingw32)
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description static
+Static gettext libraries (cross mingw32 version).
+
+%description static -l pl.UTF-8
+Statyczne biblioteki gettext (wersja skrośna mingw32).
+
+%package dll
+Summary:	DLL gettext libraries for Windows
+Summary(pl.UTF-8):	Biblioteki DLL gettext dla Windows
+Group:		Applications/Emulators
+Requires:	wine
+
+%description dll
+DLL gettext libraries for Windows.
+
+%description dll -l pl.UTF-8
+Biblioteki DLL gettext dla Windows.
+
 %prep
 %setup -q -n %{_realname}-%{version}
 %patch0 -p1
@@ -81,26 +105,38 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_dlldir}
+mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
+
 %if 0%{!?debug:1}
-%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_bindir}/*.dll
+%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
 %endif
-#
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
+rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gettext,locale,man}
+rm -rf $RPM_BUILD_ROOT%{_infodir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{_bindir}/*.dll
-%{_libdir}/*.la
-%{_libdir}/*.a
-%{_includedir}/*.h
-%{_bindir}/libintl-8.dll
 %{_libdir}/libintl.dll.a
 %{_libdir}/libintl.la
-%{_bindir}/libasprintf-0.dll
 %{_libdir}/libasprintf.dll.a
 %{_libdir}/libasprintf.la
+%{_includedir}/*.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libintl.a
+%{_libdir}/libasprintf.a
+
+%files dll
+%defattr(644,root,root,755)
+%{_dlldir}/libintl-8.dll
+%{_dlldir}/libasprintf-0.dll
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -108,6 +144,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.29  2007/03/06 10:00:33  qboosh
+- cleanup, separated -static,-dll
+
 Revision 1.28  2007/02/25 15:01:06  czarny
 - shared and static build
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/crossmingw32-gettext.spec?r1=1.28&r2=1.29&f=u



More information about the pld-cvs-commit mailing list