- cleanup, separated -static,-dll
[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.3
6 Release:        1
7 License:        GPL
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/gnome/sources/libglademm/2.6/%{_realname}-%{version}.tar.bz2
10 # Source0-md5:  3dd3c3777c4407b8a330bd79089ddbfc
11 URL:            http://www.gnome.org/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  crossmingw32-gtkmm >= 2.10.0
15 BuildRequires:  crossmingw32-libglade2 >= 2.6.0
16 BuildRequires:  libtool >= 2:1.4d
17 BuildRequires:  perl-base
18 BuildRequires:  pkgconfig
19 Requires:       crossmingw32-gtkmm >= 2.10.0
20 Requires:       crossmingw32-libglade2 >= 2.6.0
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         no_install_post_strip   1
24
25 %define         target                  i386-mingw32
26 %define         target_platform         i386-pc-mingw32
27 %define         arch                    %{_prefix}/%{target}
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.10.0
59 Requires:       crossmingw32-libglade2-dll >= 2.6.0
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_PATH=%{_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
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %files
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog NEWS
106 %{_libdir}/libglademm-2.4.la
107 %{_libdir}/libglademm-2.4.dll.a
108 %{_includedir}/%{_realname}-2.4
109 %{_libdir}/%{_realname}-2.4
110 %{_pkgconfigdir}/%{_realname}-2.4.pc
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libglademm-2.4.a
115
116 %files dll
117 %defattr(644,root,root,755)
118 %{_dlldir}/libglademm*-2.4-*.dll
This page took 0.069081 seconds and 3 git commands to generate.