Ignore:
Timestamp:
Jan 26, 2016, 11:41:21 PM (10 years ago)
Author:
dmik
Message:

spec: glib2: Release 2.25.15-5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/glib2.spec

    r309 r645  
    44%define _name glib
    55Version:        2.25.15
    6 Release:        4%{?dist}
     6Release:        5%{?dist}
    77License:        LGPLv2.1+
    88Summary:        A Library with Convenient Functions Written in C
    99Url:            http://www.gtk.org/
    1010Group:          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
     15Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
     16
     17BuildRequires: 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
    1523
    1624#BuildRequires:  fam-devel
     
    2129#BuildRequires:  translation-update-upstream
    2230BuildRequires:  zlib-devel
     31BuildRequires:  libffi-devel gettext-devel bind-devel
    2332# For temporary %%posttrans script only.
    2433#PreReq:         coreutils
     
    148157to a C programmer and is used by Gtk+ and GNOME.
    149158
    150 %lang_package
     159# @todo (dmik) We don't support this macro, put language files into the main package
     160#%lang_package
    151161
    152162%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
     167svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     168rm -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)
     173svn export  %{svn_url}/m4macros/glib-gettext.m4@892 m4macros/glib-gettext.m4 --force
     174# fix emxexp exports (r904), also to be removed
     175sed -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...
     181autoconf
     182## Generate configure and friends
     183#export NOCONFIGURE=1
     184#autogen.sh
    157185
    158186%build
     
    161189export LIBS="-lurpo -lmmap -lpthread"
    162190%configure \
    163         --enable-shared --disable-static \
    164         "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     191        --enable-shared --disable-static
    165192
    166193# YD fix extra CRLF after pass_all and execute it again (libtool hack breaks sed substitutions)
     
    220247# We do not need the la files for 11.1 and newer
    221248#%if %suse_version > 1100
    222 #rm $RPM_BUILD_ROOT%{_libdir}/*.la
     249rm $RPM_BUILD_ROOT%{_libdir}/*.la
    223250#%endif
    224 #%find_lang %{_name}20
     251%find_lang %{_name}20
    225252#%fdupes $RPM_BUILD_ROOT
    226253
     
    230257
    231258
    232 %files
     259%files -f %{_name}20.lang
    233260%defattr(-,root,root)
    234 %doc AUTHORS COPYING README NEWS ChangeLog 
     261%doc AUTHORS COPYING README NEWS ChangeLog
    235262#/etc/profile.d/zzz-glib2.*
    236263#/sbin/conf.d/SuSEconfig.glib2
     
    271298#%{_libdir}/gio/modules/libgiofam.so
    272299
     300# @todo (dmik) We don't support this macro, put language files into the main package
    273301#%files lang -f %{_name}20.lang
    274302
     
    285313%{_includedir}/glib-2.0
    286314#%{_includedir}/gio-unix-2.0
    287 #%{_libdir}/*.dll
    288 %{_libdir}/*.*a
     315%{_libdir}/*.a
    289316%{_libdir}/*.lib
    290317%{_libdir}/glib-2.0
     
    305332
    306333%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
    307339* Wed Jul 18 2012 yd
    308340- include Dmitry's changes for OpenJDK build.
Note: See TracChangeset for help on using the changeset viewer.