Changeset 645 for spec/trunk/SPECS/glib2.spec
- Timestamp:
- Jan 26, 2016, 11:41:21 PM (10 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/glib2.spec (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/glib2.spec
r309 r645 4 4 %define _name glib 5 5 Version: 2.25.15 6 Release: 4%{?dist}6 Release: 5%{?dist} 7 7 License: LGPLv2.1+ 8 8 Summary: A Library with Convenient Functions Written in C 9 9 Url: http://www.gtk.org/ 10 10 Group: Development/Libraries/C and C++ 11 Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/2.14/%{_name}-%{version}.tar.gz 12 Source1: glib-gspawn-os2.c 13 14 Patch0: %{_name}-%{version}-os2.diff 11 12 %define svn_url http://svn.netlabs.org/repos/ports/glib/trunk 13 %define svn_rev 508 14 15 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 16 17 BuildRequires: gcc make subversion zip 18 19 # @todo (dmik) later (see below about autogen.sh usage) 20 #BuildRequires: autoconf automake 21 ## @todo (dmik) We need this for the moment, see #93 22 #BuildRequires: libtool = 2.4.2 15 23 16 24 #BuildRequires: fam-devel … … 21 29 #BuildRequires: translation-update-upstream 22 30 BuildRequires: zlib-devel 31 BuildRequires: libffi-devel gettext-devel bind-devel 23 32 # For temporary %%posttrans script only. 24 33 #PreReq: coreutils … … 148 157 to a C programmer and is used by Gtk+ and GNOME. 149 158 150 %lang_package 159 # @todo (dmik) We don't support this macro, put language files into the main package 160 #%lang_package 151 161 152 162 %prep 153 %setup -q -n %{_name}-%{version} 154 #translation-update-upstream 155 %patch0 -p1 156 cp %{SOURCE1} glib/gspawn-os2.c 163 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 164 %setup -q 165 %else 166 %setup -n "%{name}-%{version}" -Tc 167 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 168 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 169 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 170 %endif 171 172 # pick up m4 fix necessary for configure to work (remove when switched to that rev) 173 svn export %{svn_url}/m4macros/glib-gettext.m4@892 m4macros/glib-gettext.m4 --force 174 # fix emxexp exports (r904), also to be removed 175 sed -e 's/:space:/[:space:]/g' configure.ac -i 176 177 # @todo (dmik) we can't use autogen.sh ATM because a newer trunk revison (2.33 with fixes) is necesary for that, 178 # also there are some problems with libtool (see #93) so we also can't use autoreconf -fvi (because we need the 179 # fixed ltmain.sh from SVN), and even when it finally works it will rename glib2.dll to glib200.dll so some 180 # -legacy package is necessary... 181 autoconf 182 ## Generate configure and friends 183 #export NOCONFIGURE=1 184 #autogen.sh 157 185 158 186 %build … … 161 189 export LIBS="-lurpo -lmmap -lpthread" 162 190 %configure \ 163 --enable-shared --disable-static \ 164 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 191 --enable-shared --disable-static 165 192 166 193 # YD fix extra CRLF after pass_all and execute it again (libtool hack breaks sed substitutions) … … 220 247 # We do not need the la files for 11.1 and newer 221 248 #%if %suse_version > 1100 222 #rm $RPM_BUILD_ROOT%{_libdir}/*.la249 rm $RPM_BUILD_ROOT%{_libdir}/*.la 223 250 #%endif 224 #%find_lang %{_name}20251 %find_lang %{_name}20 225 252 #%fdupes $RPM_BUILD_ROOT 226 253 … … 230 257 231 258 232 %files 259 %files -f %{_name}20.lang 233 260 %defattr(-,root,root) 234 %doc AUTHORS COPYING README NEWS ChangeLog 261 %doc AUTHORS COPYING README NEWS ChangeLog 235 262 #/etc/profile.d/zzz-glib2.* 236 263 #/sbin/conf.d/SuSEconfig.glib2 … … 271 298 #%{_libdir}/gio/modules/libgiofam.so 272 299 300 # @todo (dmik) We don't support this macro, put language files into the main package 273 301 #%files lang -f %{_name}20.lang 274 302 … … 285 313 %{_includedir}/glib-2.0 286 314 #%{_includedir}/gio-unix-2.0 287 #%{_libdir}/*.dll 288 %{_libdir}/*.*a 315 %{_libdir}/*.a 289 316 %{_libdir}/*.lib 290 317 %{_libdir}/glib-2.0 … … 305 332 306 333 %changelog 334 * Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 2.25.15-5 335 - Remove .la files from distribution. 336 - Build with gcc-4.9.2 against libc-0.6.6. 337 - Switch to downloading sources from SVN. 338 307 339 * Wed Jul 18 2012 yd 308 340 - include Dmitry's changes for OpenJDK build.
Note:
See TracChangeset
for help on using the changeset viewer.
