- updated to 2.6.5
[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.5
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:  4d868c9c1bef2480c47d07ef63619e27
11 URL:            http://www.gnome.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         _pkgconfigdir           %{_prefix}/lib/pkgconfig
32 %define         _dlldir                 /usr/share/wine/windows/system
33 %define         __cc                    %{target}-gcc
34 %define         __cxx                   %{target}-g++
35
36 %description
37 C++ wrappers for libglade (cross mingw32 version).
38
39 %description -l pl.UTF-8
40 Interfejsy C++ dla libglade (wersja skrośna mingw32).
41
42 %package static
43 Summary:        Static libglademm library (cross mingw32 version)
44 Summary(pl.UTF-8):      Statyczna biblioteka libglademm (wersja skrośna mingw32)
45 Group:          Development/Libraries
46 Requires:       %{name} = %{version}-%{release}
47
48 %description static
49 Static libglademm library (cross mingw32 version).
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka libglademm (wersja skrośna mingw32).
53
54 %package dll
55 Summary:        DLL libglademm library for Windows
56 Summary(pl.UTF-8):      Biblioteka DLL libglademm dla Windows
57 Group:          Applications/Emulators
58 Requires:       crossmingw32-gtkmm-dll >= 2.12.1
59 Requires:       crossmingw32-libglade2-dll >= 2.6.2
60 Requires:       wine
61
62 %description dll
63 DLL libglademm library for Windows.
64
65 %description dll -l pl.UTF-8
66 Biblioteka DLL libglademm dla Windows.
67
68 %prep
69 %setup -q -n %{realname}-%{version}
70
71 %build
72 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
73 %{__libtoolize}
74 %{__aclocal} -I scripts
75 %{__autoconf}
76 %{__automake}
77 %configure \
78         --target=%{target} \
79         --host=%{target} \
80         --enable-static
81
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 install -d $RPM_BUILD_ROOT%{_dlldir}
91 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
92
93 %if 0%{!?debug:1}
94 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
95 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
96 %endif
97
98 rm -rf $RPM_BUILD_ROOT%{_libdir}/libglademm-2.4/proc
99 rm -rf $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc/gnomemm-2.6}
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %files
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog NEWS
107 %{_libdir}/libglademm-2.4.la
108 %{_libdir}/libglademm-2.4.dll.a
109 %{_includedir}/libglademm-2.4
110 %{_libdir}/libglademm-2.4
111 %{_pkgconfigdir}/libglademm-2.4.pc
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/libglademm-2.4.a
116
117 %files dll
118 %defattr(644,root,root,755)
119 %{_dlldir}/libglademm*-2.4-*.dll
This page took 0.060961 seconds and 3 git commands to generate.