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