- updated to 2.6.7
[packages/crossmingw32-libglademm.git] / crossmingw32-libglademm.spec
1 Summary:        C++ wrappers for libglade (cross mingw32 version)
2 Summary(pl.UTF-8):      Interfejsy C++ dla libglade (wersja skrośna mingw32)
3 %define         realname   libglademm
4 Name:           crossmingw32-%{realname}
5 Version:        2.6.7
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libglademm/2.6/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  f9ca5b67f6c551ea98790ab5f21c19d0
11 URL:            http://www.gtkmm.org/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  crossmingw32-gcc-c++
15 BuildRequires:  crossmingw32-gtkmm >= 2.12.1
16 BuildRequires:  crossmingw32-libglade2 >= 2.6.2
17 BuildRequires:  libtool >= 2:1.4d
18 BuildRequires:  perl-base
19 BuildRequires:  pkgconfig >= 1:0.15
20 Requires:       crossmingw32-gtkmm >= 2.12.1
21 Requires:       crossmingw32-libglade2 >= 2.6.2
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 C++ wrappers for libglade (cross mingw32 version).
46
47 %description -l pl.UTF-8
48 Interfejsy C++ dla libglade (wersja skrośna mingw32).
49
50 %package static
51 Summary:        Static libglademm library (cross mingw32 version)
52 Summary(pl.UTF-8):      Statyczna biblioteka libglademm (wersja skrośna mingw32)
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55
56 %description static
57 Static libglademm library (cross mingw32 version).
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka libglademm (wersja skrośna mingw32).
61
62 %package dll
63 Summary:        DLL libglademm library for Windows
64 Summary(pl.UTF-8):      Biblioteka DLL libglademm dla Windows
65 Group:          Applications/Emulators
66 Requires:       crossmingw32-gtkmm-dll >= 2.12.1
67 Requires:       crossmingw32-libglade2-dll >= 2.6.2
68 Requires:       wine
69
70 %description dll
71 DLL libglademm library for Windows.
72
73 %description dll -l pl.UTF-8
74 Biblioteka DLL libglademm 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         --enable-static
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 install -d $RPM_BUILD_ROOT%{_dlldir}
99 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
100
101 %if 0%{!?debug:1}
102 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
103 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
104 %endif
105
106 rm -rf $RPM_BUILD_ROOT%{_libdir}/libglademm-2.4/proc
107 rm -rf $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc/gnomemm-2.6}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %files
113 %defattr(644,root,root,755)
114 %doc AUTHORS ChangeLog NEWS
115 %{_libdir}/libglademm-2.4.la
116 %{_libdir}/libglademm-2.4.dll.a
117 %{_includedir}/libglademm-2.4
118 %{_libdir}/libglademm-2.4
119 %{_pkgconfigdir}/libglademm-2.4.pc
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libglademm-2.4.a
124
125 %files dll
126 %defattr(644,root,root,755)
127 %{_dlldir}/libglademm*-2.4-*.dll
This page took 0.1173 seconds and 3 git commands to generate.