21886298314c1b6cd8e6bdfb4d98695ac8f8db21
[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.16.4
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.16/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  fe2e91fa93759ffc812e80ca50ace233
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.16.3
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.16.3
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 %description
38 A C++ interface for glib library - cross Mingw32 version.
39
40 %description -l pl.UTF-8
41 Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32.
42
43 %package static
44 Summary:        Static glibmm library (cross mingw32 version)
45 Summary(pl.UTF-8):      Statyczna biblioteka glibmm (wersja skrośna mingw32)
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48
49 %description static
50 Static glibmm library (cross mingw32 version).
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka glibmm (wersja skrośna mingw32).
54
55 %package dll
56 Summary:        DLL glibmm library for Windows
57 Summary(pl.UTF-8):      Biblioteka DLL glibmm dla Windows
58 Group:          Applications/Emulators
59 Requires:       crossmingw32-glib2-dll >= 2.16.3
60 Requires:       crossmingw32-libsigc++-dll >= 2.2.0
61 Requires:       wine
62
63 %description dll
64 DLL glibmm library for Windows.
65
66 %description dll -l pl.UTF-8
67 Biblioteka DLL glibmm dla Windows.
68
69 %prep
70 %setup -q -n %{realname}-%{version}
71
72 %build
73 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
74 %{__libtoolize}
75 %{__aclocal} -I scripts
76 %{__autoconf}
77 %{__automake}
78 %configure \
79         --target=%{target} \
80         --host=%{target} \
81         --disable-fulldocs \
82         --enable-static
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 install -d $RPM_BUILD_ROOT%{_dlldir}
93 mv -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
100 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
101 # use these from native glibmm if needed
102 rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc
103 rm -rf $RPM_BUILD_ROOT%{_datadir}/aclocal
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README
111 %{_libdir}/libgiomm-2.4.dll.a
112 %{_libdir}/libglibmm-2.4.dll.a
113 %{_libdir}/libglibmm_generate_extra_defs-2.4.dll.a
114 %{_libdir}/libgiomm-2.4.la
115 %{_libdir}/libglibmm-2.4.la
116 %{_libdir}/libglibmm_generate_extra_defs-2.4.la
117 %dir %{_libdir}/giomm-2.4
118 %{_libdir}/giomm-2.4/include
119 %dir %{_libdir}/glibmm-2.4
120 %{_libdir}/glibmm-2.4/include
121 %{_includedir}/giomm-2.4
122 %{_includedir}/glibmm-2.4
123 %{_pkgconfigdir}/giomm-2.4.pc
124 %{_pkgconfigdir}/glibmm-2.4.pc
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libgiomm-2.4.a
129 %{_libdir}/libglibmm-2.4.a
130 %{_libdir}/libglibmm_generate_extra_defs-2.4.a
131
132 %files dll
133 %defattr(644,root,root,755)
134 %{_dlldir}/libgiomm-2.4-*.dll
135 %{_dlldir}/libglibmm-2.4-*.dll
136 %{_dlldir}/libglibmm_generate_extra_defs-2.4-*.dll
This page took 0.039683 seconds and 2 git commands to generate.