ae499bff836b05b13c6d2761efca7d53f5be214e
[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.6
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:  c4b2440d5e816ff4d692a246bce55dfb
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 %description
38 C++ wrappers for libglade (cross mingw32 version).
39
40 %description -l pl.UTF-8
41 Interfejsy C++ dla libglade (wersja skrośna mingw32).
42
43 %package static
44 Summary:        Static libglademm library (cross mingw32 version)
45 Summary(pl.UTF-8):      Statyczna biblioteka libglademm (wersja skrośna mingw32)
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48
49 %description static
50 Static libglademm library (cross mingw32 version).
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka libglademm (wersja skrośna mingw32).
54
55 %package dll
56 Summary:        DLL libglademm library for Windows
57 Summary(pl.UTF-8):      Biblioteka DLL libglademm dla Windows
58 Group:          Applications/Emulators
59 Requires:       crossmingw32-gtkmm-dll >= 2.12.1
60 Requires:       crossmingw32-libglade2-dll >= 2.6.2
61 Requires:       wine
62
63 %description dll
64 DLL libglademm library for Windows.
65
66 %description dll -l pl.UTF-8
67 Biblioteka DLL libglademm 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         --enable-static
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 install -d $RPM_BUILD_ROOT%{_dlldir}
92 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
93
94 %if 0%{!?debug:1}
95 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
96 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
97 %endif
98
99 rm -rf $RPM_BUILD_ROOT%{_libdir}/libglademm-2.4/proc
100 rm -rf $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc/gnomemm-2.6}
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS
108 %{_libdir}/libglademm-2.4.la
109 %{_libdir}/libglademm-2.4.dll.a
110 %{_includedir}/libglademm-2.4
111 %{_libdir}/libglademm-2.4
112 %{_pkgconfigdir}/libglademm-2.4.pc
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/libglademm-2.4.a
117
118 %files dll
119 %defattr(644,root,root,755)
120 %{_dlldir}/libglademm*-2.4-*.dll
This page took 0.075944 seconds and 2 git commands to generate.