]> git.pld-linux.org Git - packages/crossmingw32-atkmm.git/blob - crossmingw32-atkmm.spec
a3ed0eadf39c13718782ad370c0fd3e0f5c54f97
[packages/crossmingw32-atkmm.git] / crossmingw32-atkmm.spec
1 Summary:        A C++ interface for atk library - cross MinGW32 version
2 Summary(pl.UTF-8):      Interfejs C++ dla biblioteki atk - wersja skrośna MinGW32
3 Name:           crossmingw32-atkmm
4 Version:        2.22.5
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Development/Libraries
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/atkmm/2.22/atkmm-%{version}.tar.bz2
9 # Source0-md5:  d56fe2b29d4c88fa270918e5572fc8cf
10 URL:            http://www.gtkmm.org/
11 BuildRequires:  autoconf >= 2.59
12 BuildRequires:  automake >= 1:1.9
13 BuildRequires:  crossmingw32-atk >= 1.22.0
14 BuildRequires:  crossmingw32-gcc-c++
15 BuildRequires:  crossmingw32-glibmm >= 2.24.0
16 BuildRequires:  libtool >= 2:1.5
17 BuildRequires:  mm-common >= 0.9.5
18 BuildRequires:  pkgconfig >= 1:0.15
19 Requires:       crossmingw32-atk >= 1.22.0
20 Requires:       crossmingw32-glibmm >= 2.24.0
21 Provides:       crossmingw32-gtkmm-atk
22 Obsoletes:      crossmingw32-gtkmm-atk
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 %ifnarch %{ix86}
39 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
40 %define         optflags        -O2
41 %endif
42 # -z options are invalid for mingw linker
43 %define         filterout_ld    -Wl,-z,.*
44
45 %description
46 A C++ interface for atk library - cross MinGW32 version.
47
48 %description -l pl.UTF-8
49 Interfejs C++ dla biblioteki atk - wersja skrośna MinGW32.
50
51 %package static
52 Summary:        Static atkmm library (cross MinGW32 version)
53 Summary(pl.UTF-8):      Statyczna biblioteka atkmm (wersja skrośna MinGW32)
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Provides:       crossmingw32-gtkmm-atk-static
57 Obsoletes:      crossmingw32-gtkmm-atk-static
58
59 %description static
60 Static atkmm library (cross MinGW32 version).
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka atkmm (wersja skrośna MinGW32).
64
65 %package dll
66 Summary:        DLL atkmm library for Windows
67 Summary(pl.UTF-8):      Biblioteka DLL atkmm dla Windows
68 Group:          Applications/Emulators
69 Requires:       crossmingw32-atk-dll >= 1.22.0
70 Requires:       crossmingw32-glibmm-dll >= 2.24.0
71 Requires:       wine
72 Provides:       crossmingw32-gtkmm-atk-dll
73 Obsoletes:      crossmingw32-gtkmm-atk-dll
74
75 %description dll
76 DLL atkmm library for Windows.
77
78 %description dll -l pl.UTF-8
79 Biblioteka DLL atkmm dla Windows.
80
81 %prep
82 %setup -q -n atkmm-%{version}
83
84 %build
85 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig:%{_npkgconfigdir}
86 %{__libtoolize}
87 %{__aclocal} -I build
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         --target=%{target} \
93         --host=%{target} \
94         --disable-documentation \
95         --enable-static
96
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 install -d $RPM_BUILD_ROOT%{_dlldir}
106 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
107
108 %if 0%{!?debug:1}
109 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
110 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
111 %endif
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS README
119 %{_libdir}/libatkmm-1.6.dll.a
120 %{_libdir}/libatkmm-1.6.la
121 %{_libdir}/atkmm-1.6
122 %{_includedir}/atkmm-1.6
123 %{_pkgconfigdir}/atkmm-1.6.pc
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libatkmm-1.6.a
128
129 %files dll
130 %defattr(644,root,root,755)
131 %{_dlldir}/libatkmm-1.6-*.dll
This page took 0.073461 seconds and 2 git commands to generate.