Changeset 814 for spec/trunk/SPECS/gettext.spec
- Timestamp:
- Jun 28, 2016, 11:44:26 AM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/gettext.spec (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/gettext.spec
r810 r814 1 #define svn_url F:/rd/ports/gettext/trunk1 #define svn_url e:/trees/gettext/trunk 2 2 %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 9 12 10 13 Summary: GNU libraries and utilities for producing multi-lingual messages 11 14 Name: gettext 12 Version: 0.1 8.3.213 Release: 2%{?dist}15 Version: 0.19.8.1 16 Release: 1%{?dist} 14 17 License: GPLv3+ and LGPLv2+ 15 18 Group: Development/Tools 16 19 URL: http://www.gnu.org/software/gettext/ 20 Vendor: bww bitwise works GmbH 17 21 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 18 22 Source1: gettext-legacy-os2.zip … … 21 25 BuildRequires: automake 22 26 BuildRequires: libtool, bison 23 %if %{with java}27 %if %{with_java} 24 28 # libintl.jar requires gcj >= 4.3 to build 25 #BuildRequires: gcc-java, libgcj29 BuildRequires: gcc-java, libgcj 26 30 # For javadoc 27 #BuildRequires: java-1.6.0-openjdk-devel28 %if %{with jar}29 #BuildRequires: %{_bindir}/fastjar31 BuildRequires: java-1.6.0-openjdk-devel 32 %if %{with_jar} 33 BuildRequires: %{_bindir}/fastjar 30 34 # require zip and unzip for brp-java-repack-jars 31 35 BuildRequires: zip, unzip 32 36 %endif 33 37 %endif 34 # need expat for xgettext on glade35 Buildrequires: expat-devel36 38 # for po-mode.el 37 #BuildRequires: emacs 38 %if %{with git} 39 %if %{with_emacs} 40 BuildRequires: emacs 41 %endif 42 %if %{with_git} 39 43 # for autopoint: 40 #BuildRequires: git44 BuildRequires: git 41 45 %endif 42 46 #BuildRequires: chrpath 43 47 44 Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 45 46 Requires: gettext-libs = %{version}-%{release} 48 # following suggested by DEPENDENCIES: 49 BuildRequires: ncurses-devel 50 BuildRequires: libxml2-devel 51 BuildRequires: glib2-devel 52 #BuildRequires: libcroco-devel 53 #BuildRequires: libunistring-devel 54 #Requires(post): info 55 #Requires(preun): info 56 Requires: %{name}-libs = %{version}-%{release} 47 57 48 58 %description … … 59 69 60 70 71 %package common-devel 72 Summary: Common development files for %{name} 73 Group: Development/Tools 74 # autopoint archive 75 License: GPLv3+ 76 BuildArch: noarch 77 78 %description common-devel 79 This package contains common architecture independent gettext development files. 80 81 61 82 %package devel 62 83 Summary: Development files for %{name} … … 66 87 Requires: %{name} = %{version}-%{release} 67 88 Requires: %{name}-libs = %{version}-%{release} 89 #Requires(post): info 90 #Requires(preun): info 91 %if %{with_git} 68 92 # for autopoint 69 #Requires: git 93 Requires: git 94 %endif 70 95 Obsoletes: gettext-autopoint < 0.18.3.2-1 71 96 Provides: gettext-autopoint = %{version}-%{release} 72 73 97 74 98 %description devel … … 82 106 Summary: Libraries for %{name} 83 107 Group: System Environment/Libraries 84 License: LGPLv2+ 108 # libasprintf is LGPLv2+ 109 # libgettextpo is GPLv3+ 110 License: LGPLv2+ and GPLv3+ 85 111 86 112 %description libs … … 88 114 89 115 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} 118 Summary: Support for editing po files within GNU Emacs 119 Group: Applications/Editors 120 BuildArch: noarch 94 121 # 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. 122 Provides: emacs-po-mode 123 Requires: emacs(bin) >= %{_emacs_version} 124 Provides: emacs-%{name}-el = %{version}-%{release} 125 Obsoletes: emacs-%{name}-el < %{version}-%{release} 126 127 %description -n emacs-%{name} 128 This package provides a major mode for editing po files within GNU Emacs. 129 %endif 111 130 112 131 … … 125 144 %setup -q 126 145 %else 127 %setup -n "%{name}-%{version}" -Tc -a 1 128 echo %{svn_rev} 146 %setup -n "%{name}-%{version}" -Tc 129 147 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 130 148 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" … … 132 150 %endif 133 151 152 134 153 %build 135 %if %{with java}154 %if %{with_java} 136 155 export JAVAC=gcj 137 %if %{with jar}156 %if %{with_jar} 138 157 export JAR=fastjar 139 158 %endif … … 143 162 export LIBS="-lurpo -lmmap" ; \ 144 163 145 autogen.sh --skip-gnulib --quick164 autogen.sh --skip-gnulib 146 165 147 166 %configure \ … … 149 168 --with-libxml2-prefix=/@unixroot/usr/include/libxml2 \ 150 169 --disable-csharp \ 151 --disable-java --disable-native-java\152 --disable-git \153 170 --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 155 180 156 181 cd gettext-tools/gnulib-lib … … 163 188 %install 164 189 rm -rf %{buildroot} 165 #INSTALL="%{__install} -p"166 190 make install DESTDIR=${RPM_BUILD_ROOT} \ 167 191 lispdir=%{_datadir}/emacs/site-lisp/gettext \ 168 192 aclocaldir=%{_datadir}/aclocal EXAMPLESFILES="" 169 193 170 #rm -f ${RPM_BUILD_ROOT}%{_datadir}/gettext/archive.git.tar.gz171 194 172 195 # OS/2 specific files 173 196 rm -f ${RPM_BUILD_ROOT}%{_libdir}/charset.alias 197 rm -f ${RPM_BUILD_ROOT}%{_datadir}/locale/locale.alias 174 198 cp -p kintl.dll %{buildroot}%{_libdir} 175 176 177 # move gettext to /bin178 #mkdir -p ${RPM_BUILD_ROOT}/bin179 #mv ${RPM_BUILD_ROOT}%{_bindir}/gettext ${RPM_BUILD_ROOT}/bin180 #ln -s ../../bin/gettext ${RPM_BUILD_ROOT}%{_bindir}/gettext181 182 #install -pm 755 %SOURCE2 ${RPM_BUILD_ROOT}/%{_bindir}/msghack183 199 184 200 … … 204 220 ## note libintl.jar does not build with gcj < 4.3 205 221 ## since it would not be fully portable 206 %if %{with jar}222 %if %{with_jar} 207 223 ### this is no longer needed since examples not packaged 208 224 ## set timestamp of examples ChangeLog timestamp for brp-java-repack-jars … … 217 233 rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/gettext.jar 218 234 235 # own this directory for third-party *.its files 236 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/its 237 219 238 # remove unpackaged files from the buildroot 220 239 rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la … … 222 241 # move po-mode initialization elisp file to the right place, and remove byte 223 242 # 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} 244 install -d ${RPM_BUILD_ROOT}%{_emacs_sitestartdir} 245 mv ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.el ${RPM_BUILD_ROOT}%{_emacs_sitestartdir} 246 rm ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.elc 247 %endif 227 248 228 249 %find_lang %{name}-runtime … … 242 263 243 264 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 270 make check LIBUNISTRING=-lunistring 271 %endif 272 273 274 %post 252 275 #/sbin/ldconfig 253 276 #/sbin/install-info %{_infodir}/gettext.info.gz %{_infodir}/dir || : 254 277 255 278 256 #%preun257 #if [ "$1" = 0 ]; then279 %preun 280 if [ "$1" = 0 ]; then 258 281 # /sbin/install-info --delete %{_infodir}/gettext.info.gz %{_infodir}/dir || : 259 #fi282 fi 260 283 261 284 … … 263 286 264 287 265 #%post devel288 %post devel 266 289 #/sbin/ldconfig 267 290 #/sbin/install-info %{_infodir}/autosprintf.info %{_infodir}/dir || : 268 291 269 292 270 #%preun devel271 #if [ "$1" = 0 ]; then293 %preun devel 294 if [ "$1" = 0 ]; then 272 295 # /sbin/install-info --delete %{_infodir}/autosprintf.info %{_infodir}/dir || : 273 #fi296 fi 274 297 275 298 … … 286 309 %doc gettext-runtime/man/*.1.html 287 310 %doc gettext-runtime/intl/COPYING* 288 #/bin/*311 %{_bindir}/* 289 312 %exclude %{_bindir}/autopoint 290 % {_bindir}/*313 %exclude %{_bindir}/gettextize 291 314 %{_infodir}/gettext* 292 315 %exclude %{_mandir}/man1/autopoint.1* 293 316 %{_mandir}/man1/* 294 317 %{_libdir}/%{name} 295 %if %{with java}318 %if %{with_java} 296 319 %exclude %{_libdir}/%{name}/gnu.gettext.* 297 320 %endif 298 321 %dir %{_datadir}/%{name} 322 %dir %{_datadir}/%{name}/its 299 323 %{_datadir}/%{name}/ABOUT-NLS 300 %{_datadir}/%{name}/intl301 324 %{_datadir}/%{name}/po 302 325 %{_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 304 332 305 333 %files devel 306 334 %defattr(-,root,root,-) 307 #%doc gettext-runtime/man/*.3.html ChangeLog335 %doc gettext-runtime/man/*.3.html ChangeLog 308 336 %{_bindir}/autopoint 309 %{_ datadir}/%{name}/archive.*.tar.xz337 %{_bindir}/gettextize 310 338 %{_datadir}/%{name}/projects/ 311 339 %{_datadir}/%{name}/config.rpath … … 318 346 %{_mandir}/man1/autopoint.1* 319 347 %{_mandir}/man3/* 348 %{_datadir}/%{name}/intl 320 349 %{_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* 323 352 %{_libdir}/%{name}/gnu.gettext.* 324 353 %endif … … 328 357 %{_libdir}/*.dll 329 358 %exclude %{_libdir}/kintl.dll 330 %if %{with jar}359 %if %{with_jar} 331 360 %{_datadir}/%{name}/libintl.jar 332 361 %endif 333 362 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 343 371 344 372 %files legacy … … 347 375 348 376 %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 349 380 * Sat Jun 18 2016 yd <yd@os2power.com> 0.18.3.2-2 350 381 - rebuild for glib2 2.33.
Note:
See TracChangeset
for help on using the changeset viewer.
