Changeset 1280 for spec/trunk/SPECS
- Timestamp:
- Dec 20, 2017, 2:48:48 PM (8 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/aspell.spec (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/aspell.spec
r537 r1280 1 Summary: A spelling checker 1 # spec source :http://pkgs.fedoraproject.org/cgit/rpms/aspell.git/tree/aspell.spec 2 3 Summary: Spell checker 2 4 Name: aspell 3 5 Version: 0.60.6.1 4 Release: 1%{?dist}5 License: LGPL 6 Release: 2%{?dist} 7 License: LGPLv2+ and LGPLv2 and GPLv2+ and BSD 6 8 Group: Applications/Text 7 9 URL: http://aspell.net/ 8 #define svn_url e:/trees/aspell/trunk9 %define svn_url http://svn.netlabs.org/repos/ports/aspell/trunk10 %define svn_rev 104111 10 12 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 13 14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) 11 Vendor: bww bitwise works GmbH 12 %scm_source github https://github.com/bitwiseworks/%{name}-os2 master 15 13 16 14 BuildRequires: gettext, ncurses-devel, pkgconfig 17 #Requires(pre): /sbin/install-info 18 #Requires(preun): /sbin/install-info 15 Requires(pre): %{_sbindir}/install-info.exe 16 Requires(preun): %{_sbindir}/install-info.exe 19 17 Requires: aspell-en 20 Provides: pspell < 0.1321 Obsoletes: pspell < 0.1322 18 23 19 … … 32 28 than one Aspell process is open at once. 33 29 34 %package devel35 Summary: Static libraries and header files for Aspell development30 %package devel 31 Summary: Libraries and header files for Aspell development 36 32 Group: Development/Libraries 37 33 Requires: %{name} = %{version}-%{release} 38 #Requires(pre): /sbin/install-info 39 #Requires(preun): /sbin/install-info 34 Requires(pre): %{_sbindir}/install-info.exe 35 Requires(preun): %{_sbindir}/install-info.exe 40 36 Requires: pkgconfig 41 Provides: pspell-devel < 0.1342 Obsoletes: pspell-devel < 0.1343 37 44 %description devel38 %description devel 45 39 Aspell is a spelling checker. The aspell-devel package includes the 46 40 static libraries and header files needed for Aspell development. 47 41 48 %package debug49 Summary: HLL debug data for exception handling support50 42 51 %description debug 52 %{summary}. 43 %debug_package 53 44 54 45 %prep 55 %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} 56 %setup -q 57 %else 58 %setup -n "%{name}-%{version}" -Tc 59 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 60 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 61 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 62 %endif 46 %scm_setup 63 47 64 autoreconf -f i48 autoreconf -fvi 65 49 66 50 %build 67 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \ 68 export LIBS="-ltinfo" ; \ 51 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 52 export LIBS="-ltinfo -lcx" 53 export VENDOR="%{vendor}" 69 54 70 55 %configure --disable-static 71 56 make %{?_smp_mflags} 57 cp scripts/aspell-import examples/aspell-import 58 cp manual/aspell-import.1 examples/aspell-import.1 59 72 60 73 61 %install … … 82 70 rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la 83 71 rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la 84 chmod 644 ${RPM_BUILD_ROOT}%{_bindir}/aspell-import 72 rm -f ${RPM_BUILD_ROOT}%{_bindir}/aspell-import 73 rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1 74 rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir 85 75 86 76 %find_lang %{name} 87 77 88 #%post 89 #/sbin/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || : 78 %post 79 # /sbin/ldconfig 80 if [ -f %{_infodir}/aspell.info.gz ]; then 81 %{_sbindir}/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || : 82 fi 90 83 91 #%post devel 92 #/sbin/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || : 84 %post devel 85 if [ -f %{_infodir}/aspell-dev.info.gz ]; then 86 %{_sbindir}/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || : 87 fi 93 88 94 #%preun 95 #if [ $1 = 0 ]; then 96 # /sbin/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir 97 #fi 98 #exit 0 89 %preun 90 if [ $1 = 0 ]; then 91 if [ -f %{_infodir}/aspell.info.gz ]; then 92 %{_sbindir}/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir || : 93 fi 94 fi 99 95 100 #%preun devel 101 #if [ $1 = 0 ]; then 102 # /sbin/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir 103 #fi 104 #exit 0 96 %preun devel 97 if [ $1 = 0 ]; then 98 if [ -f %{_infodir}/aspell-dev.info.gz ]; then 99 %{_sbindir}/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir || : 100 fi 101 fi 105 102 106 #%postun 107 108 %clean 109 rm -rf $RPM_BUILD_ROOT 103 #postun -p /sbin/ldconfig 110 104 111 105 %files -f %{name}.lang 112 %defattr(-,root,root) 113 %doc README TODO COPYING 106 %doc README TODO COPYING examples/aspell-import examples/aspell-import.1 114 107 %dir %{_libdir}/aspell-0.60 115 108 %{_bindir}/a* … … 122 115 %{_libdir}/*.dll 123 116 %{_libdir}/aspell-0.60/* 124 % {_datadir}/locale/*/LC_MESSAGES/aspell.mo117 %exclude %{_libdir}/aspell-0.60/*.dbg 125 118 %{_infodir}/aspell.* 126 %{_mandir}/man1/aspell *119 %{_mandir}/man1/aspell.1.* 127 120 %{_mandir}/man1/run-with-aspell.1* 128 121 %{_mandir}/man1/word-list-compress.1* 129 122 %{_mandir}/man1/prezip-bin.1* 130 123 131 %files devel 132 %defattr(-,root,root) 124 %files devel 133 125 %dir %{_includedir}/pspell 134 126 %{_bindir}/pspell-config … … 139 131 %{_mandir}/man1/pspell-config.1* 140 132 141 %files debug142 %defattr(-,root,root)143 %{_libdir}/*.dbg144 %{_bindir}/*.dbg145 133 146 134 %changelog 135 * Wed Dec 20 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-2 136 - use new scm_ macros 137 - fix loading of filters 138 - add bldlevel to the dll 139 - move source to github 140 147 141 * Thu Feb 12 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-1 148 142 - first version
Note:
See TracChangeset
for help on using the changeset viewer.
