]> git.pld-linux.org Git - packages/crossmingw32-libglade2.git/blob - crossmingw32-libglade2.spec
- cleanup
[packages/crossmingw32-libglade2.git] / crossmingw32-libglade2.spec
1 %define         _realname   libglade2
2 Summary:        libglade library - cross Mingw32 version
3 Summary(pl.UTF-8):      Biblioteka do ładowania definicji interfejsu generowanego programem glade - wersja skrośna dla Mingw32
4 Name:           crossmingw32-%{_realname}
5 Version:        2.6.0
6 Release:        1
7 License:        LGPL
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/libglade-%{version}.tar.bz2
10 # Source0-md5:  81d7b2b64871ce23a5fae1e5da0b1f6e
11 URL:            http://www.gnome.org/
12 BuildRequires:  autoconf >= 2.52
13 BuildRequires:  automake
14 BuildRequires:  bison
15 BuildRequires:  crossmingw32-atk >= 1.12.1
16 BuildRequires:  crossmingw32-gettext
17 BuildRequires:  crossmingw32-gtk+2 >= 2.10.0
18 BuildRequires:  crossmingw32-libxml2 >= 2.6.26
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 BuildRequires:  python >= 2.0
22 BuildRequires:  python-modules >= 2.0
23 BuildRequires:  rpmbuild(macros) >= 1.197
24 Requires:       crossmingw32-atk >= 1.12.1
25 Requires:       crossmingw32-gtk+2 >= 2.10.0
26 Requires:       crossmingw32-libxml2 >= 2.6.26
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         no_install_post_strip   1
30
31 %define         target                  i386-mingw32
32 %define         target_platform         i386-pc-mingw32
33 %define         arch                    %{_prefix}/%{target}
34
35 %define         _sysprefix              /usr
36 %define         _prefix                 %{_sysprefix}/%{target}
37 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
38 %define         _dlldir                 /usr/share/wine/windows/system
39 %define         __cc                    %{target}-gcc
40 %define         __cxx                   %{target}-g++
41
42 %description
43 This library allows you to load user interfaces in your program, which
44 are stored externally. This allows alteration of the interface without
45 recompilation of the program. The interfaces can also be edited with
46 GLADE.
47
48 This package contains the cross version for Win32.
49
50 %description -l pl.UTF-8
51 Biblioteka libglade umożliwia dynamiczne ładowanie definicji
52 interfejsu użytkownika generowanego za pomocą programu glade. Taka
53 separacja definicji interfejsu umożliwia pracę nad nim bez
54 konieczności rekompilacji programu.
55
56 Ten pakiet zawiera wersję skrośną dla Win32.
57
58 %package static
59 Summary:        Static libglade library (cross mingw32 version)
60 Summary(pl.UTF-8):      Statyczna biblioteka libglade (wersja skrośna mingw32)
61 Group:          Development/Libraries
62 Requires:       %{name} = %{version}-%{release}
63
64 %description static
65 Static libglade library (cross mingw32 version).
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka libglade (wersja skrośna mingw32).
69
70 %package dll
71 Summary:        DLL libglade library for Windows
72 Summary(pl.UTF-8):      Biblioteka DLL libglade dla Windows
73 Group:          Applications/Emulators
74 Requires:       crossmingw32-atk-dll >= 1.12.1
75 Requires:       crossmingw32-gtk+2-dll >= 2.10.0
76 Requires:       crossmingw32-libxml2-dll >= 2.6.26
77 Requires:       wine
78
79 %description dll
80 DLL libglade library for Windows.
81
82 %description dll -l pl.UTF-8
83 Biblioteka DLL libglade dla Windows.
84
85 %prep
86 %setup -q -n libglade-%{version}
87
88 %build
89 export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
90 %{__libtoolize}
91 %{__glib_gettextize}
92 %{__aclocal} -I m4
93 %{__autoconf}
94 %{__automake}
95 %configure \
96         lt_cv_deplibs_check_method=pass_all \
97         --target=%{target} \
98         --host=%{target} \
99         --disable-gtk-doc
100
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT%{_libdir}/libglade/2.0
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 install -d $RPM_BUILD_ROOT%{_dlldir}
111 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
112
113 %if 0%{!?debug:1}
114 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
115 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
116 %endif
117
118 rm -rf $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,xml}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files
124 %defattr(644,root,root,755)
125 %doc AUTHORS NEWS README
126 %{_libdir}/libglade-2.0.dll.a
127 %{_libdir}/libglade-2.0.la
128 %{_pkgconfigdir}/libglade-2.0.pc
129 %{_includedir}/libglade-2.0
130
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libglade-2.0.a
134
135 %files dll
136 %defattr(644,root,root,755)
137 %{_dlldir}/libglade-2.0-*.dll
This page took 0.125815 seconds and 4 git commands to generate.