- force %{_lib}-independent libdir
[packages/crossmingw32-glibmm.git] / crossmingw32-glibmm.spec
CommitLineData
cbc44f5b 1Summary: A C++ interface for glib library - cross Mingw32 version
3b7538a7 2Summary(pl.UTF-8): Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32
03cf31c3
JB
3%define realname glibmm
4Name: crossmingw32-%{realname}
aa28783d 5Version: 2.14.2
cbc44f5b 6Release: 1
fa9e202d 7License: LGPL v2+
759ce599 8Group: Development/Libraries
60005631 9Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.14/%{realname}-%{version}.tar.bz2
aa28783d 10# Source0-md5: 58b4fdc97738795a19b1f5ad37f186b4
cbc44f5b 11URL: http://gtkmm.sourceforge.net/
12BuildRequires: autoconf >= 2.50
13BuildRequires: automake
759ce599 14BuildRequires: crossmingw32-gcc-c++
fa9e202d 15BuildRequires: crossmingw32-glib2 >= 2.14.0
cbc44f5b 16BuildRequires: crossmingw32-libsigc++ >= 2.0.17
759ce599 17BuildRequires: libtool >= 2:1.5
cbc44f5b 18BuildRequires: perl-XML-Parser
fa9e202d
JB
19BuildRequires: pkgconfig >= 1:0.15
20Requires: crossmingw32-glib2 >= 2.14.0
cbc44f5b 21Requires: crossmingw32-libsigc++ >= 2.0.17
cbc44f5b 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%define no_install_post_strip 1
25
26%define target i386-mingw32
27%define target_platform i386-pc-mingw32
cbc44f5b 28
29%define _sysprefix /usr
30%define _prefix %{_sysprefix}/%{target}
32a5567a 31%define _libdir %{_prefix}/lib
759ce599
JB
32%define _pkgconfigdir %{_prefix}/lib/pkgconfig
33%define _dlldir /usr/share/wine/windows/system
cbc44f5b 34%define __cc %{target}-gcc
35%define __cxx %{target}-g++
36
37%description
4daa34de 38A C++ interface for glib library - cross Mingw32 version.
cbc44f5b 39
f45ed5c9 40%description -l pl.UTF-8
4daa34de 41Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32.
cbc44f5b 42
759ce599
JB
43%package static
44Summary: Static glibmm library (cross mingw32 version)
45Summary(pl.UTF-8): Statyczna biblioteka glibmm (wersja skrośna mingw32)
46Group: Development/Libraries
47Requires: %{name} = %{version}-%{release}
48
49%description static
50Static glibmm library (cross mingw32 version).
51
52%description static -l pl.UTF-8
53Statyczna biblioteka glibmm (wersja skrośna mingw32).
54
55%package dll
56Summary: DLL glibmm library for Windows
57Summary(pl.UTF-8): Biblioteka DLL glibmm dla Windows
58Group: Applications/Emulators
fa9e202d 59Requires: crossmingw32-glib2-dll >= 2.14.0
759ce599
JB
60Requires: crossmingw32-libsigc++-dll >= 2.0.17
61Requires: wine
62
63%description dll
64DLL glibmm library for Windows.
65
66%description dll -l pl.UTF-8
67Biblioteka DLL glibmm dla Windows.
68
cbc44f5b 69%prep
03cf31c3 70%setup -q -n %{realname}-%{version}
cbc44f5b 71
72%build
667b9562 73export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
cbc44f5b 74%{__libtoolize}
75%{__aclocal} -I scripts
76%{__autoconf}
77%{__automake}
78%configure \
b7ddf918 79 --target=%{target} \
cbc44f5b 80 --host=%{target} \
b7ddf918 81 --disable-fulldocs \
82 --enable-static
cbc44f5b 83
84%{__make}
85
86%install
87rm -rf $RPM_BUILD_ROOT
88
89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT
91
759ce599
JB
92install -d $RPM_BUILD_ROOT%{_dlldir}
93mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
94
95%if 0%{!?debug:1}
96%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
97%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
98%endif
99
100rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
101# use these from native glibmm if needed
102rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc
103rm -rf $RPM_BUILD_ROOT%{_datadir}/aclocal
104
cbc44f5b 105%clean
106rm -rf $RPM_BUILD_ROOT
107
108%files
109%defattr(644,root,root,755)
110%doc AUTHORS ChangeLog CHANGES NEWS README
759ce599
JB
111%{_libdir}/libglibmm-2.4.dll.a
112%{_libdir}/libglibmm_generate_extra_defs-2.4.dll.a
113%{_libdir}/libglibmm-2.4.la
114%{_libdir}/libglibmm_generate_extra_defs-2.4.la
03cf31c3
JB
115%dir %{_libdir}/glibmm-2.4
116%{_libdir}/glibmm-2.4/include
117%{_includedir}/glibmm-2.4
759ce599
JB
118%{_pkgconfigdir}/glibmm-2.4.pc
119
120%files static
121%defattr(644,root,root,755)
122%{_libdir}/libglibmm-2.4.a
123%{_libdir}/libglibmm_generate_extra_defs-2.4.a
124
125%files dll
126%defattr(644,root,root,755)
127%{_dlldir}/libglibmm-2.4-*.dll
128%{_dlldir}/libglibmm_generate_extra_defs-2.4-*.dll
This page took 0.053849 seconds and 4 git commands to generate.