- updated to 2.6.5
[packages/crossmingw32-libglademm.git] / crossmingw32-libglademm.spec
index 5c343bdc8fdf63c4da3a5b8dc6b776f888ca9e29..67b12585723c70d54dd64b962f85511253181f41 100644 (file)
@@ -1,48 +1,75 @@
-Summary:       C++ wrappers for libglade
-Summary(pl.UTF-8):Interfejsy C++ dla libglade
-%define                _realname   libglademm
-Name:          crossmingw32-%{_realname}
-Version:       2.6.3
+Summary:       C++ wrappers for libglade (cross mingw32 version)
+Summary(pl.UTF-8):     Interfejsy C++ dla libglade (wersja skrośna mingw32)
+%define                realname   libglademm
+Name:          crossmingw32-%{realname}
+Version:       2.6.5
 Release:       1
-License:       GPL
-Group:         Libraries
-Source0:       http://ftp.gnome.org/pub/gnome/sources/libglademm/2.6/%{_realname}-%{version}.tar.bz2
-# Source0-md5: 3dd3c3777c4407b8a330bd79089ddbfc
+License:       LGPL v2+
+Group:         Development/Libraries
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/libglademm/2.6/%{realname}-%{version}.tar.bz2
+# Source0-md5: 4d868c9c1bef2480c47d07ef63619e27
 URL:           http://www.gnome.org/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: crossmingw32-gtkmm >= 2.10.0
-BuildRequires: crossmingw32-libglade2 >= 2.6.0
-BuildRequires: crossmingw32-pkgconfig
+BuildRequires: crossmingw32-gcc-c++
+BuildRequires: crossmingw32-gtkmm >= 2.12.1
+BuildRequires: crossmingw32-libglade2 >= 2.6.2
 BuildRequires: libtool >= 2:1.4d
 BuildRequires: perl-base
+BuildRequires: pkgconfig >= 1:0.15
+Requires:      crossmingw32-gtkmm >= 2.12.1
+Requires:      crossmingw32-libglade2 >= 2.6.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                no_install_post_strip   1
 
 %define                target                  i386-mingw32
 %define                target_platform         i386-pc-mingw32
-%define                arch                    %{_prefix}/%{target}
-%define                gccarch                 %{_prefix}/lib/gcc-lib/%{target}
-%define                gcclib                  %{_prefix}/lib/gcc-lib/%{target}/%{version}
 
 %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++
 
 %description
-C++ wrappers for libglade.
+C++ wrappers for libglade (cross mingw32 version).
 
 %description -l pl.UTF-8
-Interfejsy C++ dla libglade.
+Interfejsy C++ dla libglade (wersja skrośna mingw32).
+
+%package static
+Summary:       Static libglademm library (cross mingw32 version)
+Summary(pl.UTF-8):     Statyczna biblioteka libglademm (wersja skrośna mingw32)
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description static
+Static libglademm library (cross mingw32 version).
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libglademm (wersja skrośna mingw32).
+
+%package dll
+Summary:       DLL libglademm library for Windows
+Summary(pl.UTF-8):     Biblioteka DLL libglademm dla Windows
+Group:         Applications/Emulators
+Requires:      crossmingw32-gtkmm-dll >= 2.12.1
+Requires:      crossmingw32-libglade2-dll >= 2.6.2
+Requires:      wine
+
+%description dll
+DLL libglademm library for Windows.
+
+%description dll -l pl.UTF-8
+Biblioteka DLL libglademm dla Windows.
 
 %prep
-%setup -q -n %{_realname}-%{version}
+%setup -q -n %{realname}-%{version}
 
 %build
-export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
+export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
 %{__libtoolize}
 %{__aclocal} -I scripts
 %{__autoconf}
@@ -60,15 +87,33 @@ rm -rf $RPM_BUILD_ROOT
 %{__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%{_dlldir}/*.dll
+%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
+%endif
+
+rm -rf $RPM_BUILD_ROOT%{_libdir}/libglademm-2.4/proc
+rm -rf $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc/gnomemm-2.6}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS
-%{_libdir}/libglademm*.la
-%{_libdir}/libglademm*.a
-%{_bindir}/libglademm*.dll
-%{_includedir}/%{_realname}-2.4
-%{_libdir}/%{_realname}-2.4
-%{_pkgconfigdir}/%{_realname}-2.4.pc
+%{_libdir}/libglademm-2.4.la
+%{_libdir}/libglademm-2.4.dll.a
+%{_includedir}/libglademm-2.4
+%{_libdir}/libglademm-2.4
+%{_pkgconfigdir}/libglademm-2.4.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libglademm-2.4.a
+
+%files dll
+%defattr(644,root,root,755)
+%{_dlldir}/libglademm*-2.4-*.dll
This page took 0.035365 seconds and 4 git commands to generate.