Ignore:
Timestamp:
Jun 28, 2016, 11:44:26 AM (9 years ago)
Author:
Silvan Scherrer
Message:

spec: gettext updated to version 0.19.8.1

File:
1 edited

Legend:

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

    r810 r814  
    1 #define svn_url     F:/rd/ports/gettext/trunk
     1#define svn_url     e:/trees/gettext/trunk
    22%define svn_url     http://svn.netlabs.org/repos/ports/gettext/trunk
    3 %define svn_rev     1005
    4 
    5 %bcond_with jar
    6 %bcond_with java
    7 %bcond_without check
    8 %bcond_without git
     3%define svn_rev     1622
     4
     5%define with_jar 0
     6%define with_java 0
     7%define with_check 0
     8%define with_git 0
     9%define with_emacs 0
     10
     11%global archiveversion 0.19.8
    912
    1013Summary: GNU libraries and utilities for producing multi-lingual messages
    1114Name: gettext
    12 Version: 0.18.3.2
    13 Release: 2%{?dist}
     15Version: 0.19.8.1
     16Release: 1%{?dist}
    1417License: GPLv3+ and LGPLv2+
    1518Group: Development/Tools
    1619URL: http://www.gnu.org/software/gettext/
     20Vendor: bww bitwise works GmbH
    1721Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1822Source1: gettext-legacy-os2.zip
     
    2125BuildRequires: automake
    2226BuildRequires: libtool, bison
    23 %if %{with java}
     27%if %{with_java}
    2428# libintl.jar requires gcj >= 4.3 to build
    25 #BuildRequires: gcc-java, libgcj
     29BuildRequires: gcc-java, libgcj
    2630# For javadoc
    27 #BuildRequires: java-1.6.0-openjdk-devel
    28 %if %{with jar}
    29 #BuildRequires: %{_bindir}/fastjar
     31BuildRequires: java-1.6.0-openjdk-devel
     32%if %{with_jar}
     33BuildRequires: %{_bindir}/fastjar
    3034# require zip and unzip for brp-java-repack-jars
    3135BuildRequires: zip, unzip
    3236%endif
    3337%endif
    34 # need expat for xgettext on glade
    35 Buildrequires: expat-devel
    3638# for po-mode.el
    37 #BuildRequires: emacs
    38 %if %{with git}
     39%if %{with_emacs}
     40BuildRequires: emacs
     41%endif
     42%if %{with_git}
    3943# for autopoint:
    40 #BuildRequires: git
     44BuildRequires: git
    4145%endif
    4246#BuildRequires: chrpath
    4347
    44 Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
    45 
    46 Requires: gettext-libs = %{version}-%{release}
     48# following suggested by DEPENDENCIES:
     49BuildRequires: ncurses-devel
     50BuildRequires: libxml2-devel
     51BuildRequires: glib2-devel
     52#BuildRequires: libcroco-devel
     53#BuildRequires: libunistring-devel
     54#Requires(post): info
     55#Requires(preun): info
     56Requires: %{name}-libs = %{version}-%{release}
    4757
    4858%description
     
    5969
    6070
     71%package common-devel
     72Summary: Common development files for %{name}
     73Group: Development/Tools
     74# autopoint archive
     75License: GPLv3+
     76BuildArch: noarch
     77
     78%description common-devel
     79This package contains common architecture independent gettext development files.
     80
     81
    6182%package devel
    6283Summary: Development files for %{name}
     
    6687Requires: %{name} = %{version}-%{release}
    6788Requires: %{name}-libs = %{version}-%{release}
     89#Requires(post): info
     90#Requires(preun): info
     91%if %{with_git}
    6892# for autopoint
    69 #Requires: git
     93Requires: git
     94%endif
    7095Obsoletes: gettext-autopoint < 0.18.3.2-1
    7196Provides: gettext-autopoint = %{version}-%{release}
    72 
    7397
    7498%description devel
     
    82106Summary: Libraries for %{name}
    83107Group: System Environment/Libraries
    84 License: LGPLv2+
     108# libasprintf is LGPLv2+
     109# libgettextpo is GPLv3+
     110License: LGPLv2+ and GPLv3+
    85111
    86112%description libs
     
    88114
    89115
    90 #%package -n emacs-%{name}
    91 #Summary: Support for editing po files within GNU Emacs
    92 #Group: Applications/Editors
    93 #BuildArch: noarch
     116%if %{with_emacs}
     117%package -n emacs-%{name}
     118Summary: Support for editing po files within GNU Emacs
     119Group: Applications/Editors
     120BuildArch: noarch
    94121# help users find po-mode.el
    95 #Provides: emacs-po-mode
    96 #Requires: emacs(bin) >= %{_emacs_version}
    97 
    98 #%description -n emacs-%{name}
    99 #This package provides a major mode for editing po files within GNU Emacs.
    100 
    101 
    102 #%package -n emacs-%{name}-el
    103 #Summary: Elisp source files for editing po files within GNU Emacs
    104 #Group: Applications/Editors
    105 #BuildArch: noarch
    106 #Requires: emacs-%{name} = %{version}-%{release}
    107 
    108 #%description -n emacs-%{name}-el
    109 #This package contains the Elisp source files for editing po files within GNU
    110 #Emacs.
     122Provides: emacs-po-mode
     123Requires: emacs(bin) >= %{_emacs_version}
     124Provides: emacs-%{name}-el = %{version}-%{release}
     125Obsoletes: emacs-%{name}-el < %{version}-%{release}
     126
     127%description -n emacs-%{name}
     128This package provides a major mode for editing po files within GNU Emacs.
     129%endif
    111130
    112131
     
    125144%setup -q
    126145%else
    127 %setup -n "%{name}-%{version}" -Tc -a 1
    128 echo %{svn_rev}
     146%setup -n "%{name}-%{version}" -Tc
    129147svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
    130148rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     
    132150%endif
    133151
     152
    134153%build
    135 %if %{with java}
     154%if %{with_java}
    136155export JAVAC=gcj
    137 %if %{with jar}
     156%if %{with_jar}
    138157export JAR=fastjar
    139158%endif
     
    143162export LIBS="-lurpo -lmmap" ; \
    144163
    145 autogen.sh --skip-gnulib --quick
     164autogen.sh --skip-gnulib
    146165
    147166%configure \
     
    149168    --with-libxml2-prefix=/@unixroot/usr/include/libxml2 \
    150169    --disable-csharp \
    151     --disable-java --disable-native-java\
    152     --disable-git \
    153170    --disable-rpath \
    154     --enable-shared --disable-static
     171    --enable-shared --disable-static \
     172%if %{with_java}
     173    --enable-java \
     174%else
     175    --disable-java --disable-native-java \
     176%endif
     177%if !%{with_git}
     178    --disable-git
     179%endif
    155180
    156181cd gettext-tools/gnulib-lib
     
    163188%install
    164189rm -rf %{buildroot}
    165 #INSTALL="%{__install} -p"
    166190make install DESTDIR=${RPM_BUILD_ROOT} \
    167191    lispdir=%{_datadir}/emacs/site-lisp/gettext \
    168192    aclocaldir=%{_datadir}/aclocal EXAMPLESFILES=""
    169193
    170 #rm -f ${RPM_BUILD_ROOT}%{_datadir}/gettext/archive.git.tar.gz
    171194
    172195# OS/2 specific files
    173196rm -f ${RPM_BUILD_ROOT}%{_libdir}/charset.alias
     197rm -f ${RPM_BUILD_ROOT}%{_datadir}/locale/locale.alias
    174198cp -p kintl.dll %{buildroot}%{_libdir}
    175 
    176 
    177 # move gettext to /bin
    178 #mkdir -p ${RPM_BUILD_ROOT}/bin
    179 #mv ${RPM_BUILD_ROOT}%{_bindir}/gettext ${RPM_BUILD_ROOT}/bin
    180 #ln -s ../../bin/gettext ${RPM_BUILD_ROOT}%{_bindir}/gettext
    181 
    182 #install -pm 755 %SOURCE2 ${RPM_BUILD_ROOT}/%{_bindir}/msghack
    183199
    184200
     
    204220## note libintl.jar does not build with gcj < 4.3
    205221## since it would not be fully portable
    206 %if %{with jar}
     222%if %{with_jar}
    207223### this is no longer needed since examples not packaged
    208224## set timestamp of examples ChangeLog timestamp for brp-java-repack-jars
     
    217233rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/gettext.jar
    218234
     235# own this directory for third-party *.its files
     236mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/its
     237
    219238# remove unpackaged files from the buildroot
    220239rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
     
    222241# move po-mode initialization elisp file to the right place, and remove byte
    223242# compiled file
    224 #install -d ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}
    225 #mv ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.el ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}
    226 #rm ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.elc
     243%if %{with_emacs}
     244install -d ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}
     245mv ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.el ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}
     246rm ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.elc
     247%endif
    227248
    228249%find_lang %{name}-runtime
     
    242263
    243264
    244 #%if %{with check}
    245 #%check
    246 ## this takes quite a lot of time to run
    247 #make check
    248 #%endif
    249 
    250 
    251 #%post
     265%if %{with_check}
     266%check
     267# this takes quite a lot of time to run
     268
     269# override LIBUNISTRING to prevent reordering of lib objects
     270make check LIBUNISTRING=-lunistring
     271%endif
     272
     273
     274%post
    252275#/sbin/ldconfig
    253276#/sbin/install-info %{_infodir}/gettext.info.gz %{_infodir}/dir || :
    254277
    255278
    256 #%preun
    257 #if [ "$1" = 0 ]; then
     279%preun
     280if [ "$1" = 0 ]; then
    258281#  /sbin/install-info --delete %{_infodir}/gettext.info.gz %{_infodir}/dir || :
    259 #fi
     282fi
    260283
    261284
     
    263286
    264287
    265 #%post devel
     288%post devel
    266289#/sbin/ldconfig
    267290#/sbin/install-info %{_infodir}/autosprintf.info %{_infodir}/dir || :
    268291
    269292
    270 #%preun devel
    271 #if [ "$1" = 0 ]; then
     293%preun devel
     294if [ "$1" = 0 ]; then
    272295#  /sbin/install-info --delete %{_infodir}/autosprintf.info %{_infodir}/dir || :
    273 #fi
     296fi
    274297
    275298
     
    286309%doc gettext-runtime/man/*.1.html
    287310%doc gettext-runtime/intl/COPYING*
    288 #/bin/*
     311%{_bindir}/*
    289312%exclude %{_bindir}/autopoint
    290 %{_bindir}/*
     313%exclude %{_bindir}/gettextize
    291314%{_infodir}/gettext*
    292315%exclude %{_mandir}/man1/autopoint.1*
    293316%{_mandir}/man1/*
    294317%{_libdir}/%{name}
    295 %if %{with java}
     318%if %{with_java}
    296319%exclude %{_libdir}/%{name}/gnu.gettext.*
    297320%endif
    298321%dir %{_datadir}/%{name}
     322%dir %{_datadir}/%{name}/its
    299323%{_datadir}/%{name}/ABOUT-NLS
    300 %{_datadir}/%{name}/intl
    301324%{_datadir}/%{name}/po
    302325%{_datadir}/%{name}/styles
    303 %{_datadir}/locale/locale.alias
     326%dir %{_datadir}/%{name}-%{archiveversion}
     327%{_datadir}/%{name}-%{archiveversion}/its
     328
     329%files common-devel
     330%{_datadir}/%{name}/archive.*.tar.xz
     331
    304332
    305333%files devel
    306334%defattr(-,root,root,-)
    307 #%doc gettext-runtime/man/*.3.html ChangeLog
     335%doc gettext-runtime/man/*.3.html ChangeLog
    308336%{_bindir}/autopoint
    309 %{_datadir}/%{name}/archive.*.tar.xz
     337%{_bindir}/gettextize
    310338%{_datadir}/%{name}/projects/
    311339%{_datadir}/%{name}/config.rpath
     
    318346%{_mandir}/man1/autopoint.1*
    319347%{_mandir}/man3/*
     348%{_datadir}/%{name}/intl
    320349%{_datadir}/%{name}/javaversion.class
    321 #%doc gettext-runtime/intl-java/javadoc*
    322 %if %{with java}
     350%if %{with_java}
     351%doc gettext-runtime/intl-java/javadoc*
    323352%{_libdir}/%{name}/gnu.gettext.*
    324353%endif
     
    328357%{_libdir}/*.dll
    329358%exclude %{_libdir}/kintl.dll
    330 %if %{with jar}
     359%if %{with_jar}
    331360%{_datadir}/%{name}/libintl.jar
    332361%endif
    333362
    334 #%files -n emacs-%{name}
    335 #%defattr(-,root,root,-)
    336 #%dir %{_emacs_sitelispdir}/%{name}
    337 #%{_emacs_sitelispdir}/%{name}/*.elc
    338 #%{_emacs_sitestartdir}/*.el
    339 
    340 #%files -n emacs-%{name}-el
    341 #%defattr(-,root,root,-)
    342 #%{_emacs_sitelispdir}/%{name}/*.el
     363%if %{with_emacs}
     364%files -n emacs-%{name}
     365%defattr(-,root,root,-)
     366%dir %{_emacs_sitelispdir}/%{name}
     367%{_emacs_sitelispdir}/%{name}/*.elc
     368%{_emacs_sitelispdir}/%{name}/*.el
     369%{_emacs_sitestartdir}/*.el
     370%endif
    343371
    344372%files legacy
     
    347375
    348376%changelog
     377* Mon Jun 27 2016 yd <silvan.scherrer@aroa.ch> 0.19.8.1-1
     378- updated to version 0.19.8.1
     379
    349380* Sat Jun 18 2016 yd <yd@os2power.com> 0.18.3.2-2
    350381- rebuild for glib2 2.33.
Note: See TracChangeset for help on using the changeset viewer.