- updated to 2.18.0
[packages/crossmingw32-glibmm.git] / crossmingw32-glibmm.spec
1 Summary:        A C++ interface for glib library - cross Mingw32 version
2 Summary(pl.UTF-8):      Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32
3 %define         realname        glibmm
4 Name:           crossmingw32-%{realname}
5 Version:        2.18.0
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.18/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  1a0df362e15e7f850b8361b5102f1f16
11 URL:            http://gtkmm.sourceforge.net/
12 BuildRequires:  autoconf >= 2.58
13 BuildRequires:  automake >= 1:1.7
14 BuildRequires:  crossmingw32-gcc-c++
15 BuildRequires:  crossmingw32-glib2 >= 2.18.0
16 BuildRequires:  crossmingw32-libsigc++ >= 2.2.0
17 BuildRequires:  libtool >= 2:1.5
18 BuildRequires:  perl-XML-Parser
19 BuildRequires:  pkgconfig >= 1:0.15
20 Requires:       crossmingw32-glib2 >= 2.18.0
21 Requires:       crossmingw32-libsigc++ >= 2.2.0
22 BuildRoot:      %{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
28
29 %define         _sysprefix              /usr
30 %define         _prefix                 %{_sysprefix}/%{target}
31 %define         _libdir                 %{_prefix}/lib
32 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
33 %define         _dlldir                 /usr/share/wine/windows/system
34 %define         __cc                    %{target}-gcc
35 %define         __cxx                   %{target}-g++
36
37 %ifnarch %{ix86}
38 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
39 %define         optflags        -O2
40 %endif
41 # -z options are invalid for mingw linker
42 %define         filterout_ld    -Wl,-z,.*
43
44 %description
45 A C++ interface for glib library - cross Mingw32 version.
46
47 %description -l pl.UTF-8
48 Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32.
49
50 %package static
51 Summary:        Static glibmm library (cross mingw32 version)
52 Summary(pl.UTF-8):      Statyczna biblioteka glibmm (wersja skrośna mingw32)
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55
56 %description static
57 Static glibmm library (cross mingw32 version).
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka glibmm (wersja skrośna mingw32).
61
62 %package dll
63 Summary:        DLL glibmm library for Windows
64 Summary(pl.UTF-8):      Biblioteka DLL glibmm dla Windows
65 Group:          Applications/Emulators
66 Requires:       crossmingw32-glib2-dll >= 2.18.0
67 Requires:       crossmingw32-libsigc++-dll >= 2.2.0
68 Requires:       wine
69
70 %description dll
71 DLL glibmm library for Windows.
72
73 %description dll -l pl.UTF-8
74 Biblioteka DLL glibmm dla Windows.
75
76 %prep
77 %setup -q -n %{realname}-%{version}
78
79 %build
80 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
81 %{__libtoolize}
82 %{__aclocal} -I scripts
83 %{__autoconf}
84 %{__automake}
85 %configure \
86         --target=%{target} \
87         --host=%{target} \
88         --disable-fulldocs \
89         --enable-static
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 install -d $RPM_BUILD_ROOT%{_dlldir}
100 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
101
102 %if 0%{!?debug:1}
103 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
104 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
105 %endif
106
107 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
108 # use these from native glibmm if needed
109 rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc
110 rm -rf $RPM_BUILD_ROOT%{_datadir}/aclocal
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog NEWS README
118 %{_libdir}/libgiomm-2.4.dll.a
119 %{_libdir}/libglibmm-2.4.dll.a
120 %{_libdir}/libglibmm_generate_extra_defs-2.4.dll.a
121 %{_libdir}/libgiomm-2.4.la
122 %{_libdir}/libglibmm-2.4.la
123 %{_libdir}/libglibmm_generate_extra_defs-2.4.la
124 %dir %{_libdir}/giomm-2.4
125 %{_libdir}/giomm-2.4/include
126 %dir %{_libdir}/glibmm-2.4
127 %{_libdir}/glibmm-2.4/include
128 %{_includedir}/giomm-2.4
129 %{_includedir}/glibmm-2.4
130 %{_pkgconfigdir}/giomm-2.4.pc
131 %{_pkgconfigdir}/glibmm-2.4.pc
132
133 %files static
134 %defattr(644,root,root,755)
135 %{_libdir}/libgiomm-2.4.a
136 %{_libdir}/libglibmm-2.4.a
137 %{_libdir}/libglibmm_generate_extra_defs-2.4.a
138
139 %files dll
140 %defattr(644,root,root,755)
141 %{_dlldir}/libgiomm-2.4-*.dll
142 %{_dlldir}/libglibmm-2.4-*.dll
143 %{_dlldir}/libglibmm_generate_extra_defs-2.4-*.dll
This page took 0.102394 seconds and 3 git commands to generate.