Changeset 1280 for spec/trunk/SPECS


Ignore:
Timestamp:
Dec 20, 2017, 2:48:48 PM (8 years ago)
Author:
Silvan Scherrer
Message:

spec: aspell: Release version 0.60.6.1-2.

File:
1 edited

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
     3Summary: Spell checker
    24Name: aspell
    35Version: 0.60.6.1
    4 Release: 1%{?dist}
    5 License: LGPL
     6Release: 2%{?dist}
     7License: LGPLv2+ and LGPLv2 and GPLv2+ and BSD
    68Group: Applications/Text
    79URL: http://aspell.net/
    8 #define svn_url     e:/trees/aspell/trunk
    9 %define svn_url     http://svn.netlabs.org/repos/ports/aspell/trunk
    10 %define svn_rev     1041
    1110
    12 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    13 
    14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
     11Vendor: bww bitwise works GmbH
     12%scm_source github https://github.com/bitwiseworks/%{name}-os2 master
    1513
    1614BuildRequires: gettext, ncurses-devel, pkgconfig
    17 #Requires(pre): /sbin/install-info
    18 #Requires(preun): /sbin/install-info
     15Requires(pre): %{_sbindir}/install-info.exe
     16Requires(preun): %{_sbindir}/install-info.exe
    1917Requires: aspell-en
    20 Provides: pspell < 0.13
    21 Obsoletes: pspell < 0.13
    2218
    2319
     
    3228than one Aspell process is open at once.
    3329
    34 %package        devel
    35 Summary: Static libraries and header files for Aspell development
     30%package devel
     31Summary: Libraries and header files for Aspell development
    3632Group: Development/Libraries
    3733Requires: %{name} = %{version}-%{release}
    38 #Requires(pre): /sbin/install-info
    39 #Requires(preun): /sbin/install-info
     34Requires(pre): %{_sbindir}/install-info.exe
     35Requires(preun): %{_sbindir}/install-info.exe
    4036Requires: pkgconfig
    41 Provides: pspell-devel < 0.13
    42 Obsoletes: pspell-devel < 0.13
    4337
    44 %description    devel
     38%description devel
    4539Aspell is a spelling checker. The aspell-devel package includes the
    4640static libraries and header files needed for Aspell development.
    4741
    48 %package debug
    49 Summary: HLL debug data for exception handling support
    5042
    51 %description debug
    52 %{summary}.
     43%debug_package
    5344
    5445%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
    6347
    64 autoreconf -fi
     48autoreconf -fvi
    6549
    6650%build
    67 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
    68 export LIBS="-ltinfo" ; \
     51export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
     52export LIBS="-ltinfo -lcx"
     53export VENDOR="%{vendor}"
    6954
    7055%configure --disable-static
    7156make %{?_smp_mflags}
     57cp scripts/aspell-import examples/aspell-import
     58cp manual/aspell-import.1 examples/aspell-import.1
     59
    7260
    7361%install
     
    8270rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
    8371rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la
    84 chmod 644 ${RPM_BUILD_ROOT}%{_bindir}/aspell-import
     72rm -f ${RPM_BUILD_ROOT}%{_bindir}/aspell-import
     73rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1
     74rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
    8575
    8676%find_lang %{name}
    8777
    88 #%post   
    89 #/sbin/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). "  || :
     78%post
     79# /sbin/ldconfig
     80if [ -f %{_infodir}/aspell.info.gz ]; then 
     81    %{_sbindir}/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). "  || :
     82fi
    9083
    91 #%post        devel
    92 #/sbin/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || :
     84%post devel
     85if [ -f %{_infodir}/aspell-dev.info.gz ]; then 
     86    %{_sbindir}/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || :
     87fi
    9388
    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
     90if [ $1 = 0 ]; then
     91    if [ -f %{_infodir}/aspell.info.gz ]; then 
     92        %{_sbindir}/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir || :
     93    fi
     94fi
    9995
    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
     97if [ $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
     101fi
    105102
    106 #%postun
    107 
    108 %clean
    109 rm -rf $RPM_BUILD_ROOT
     103#postun -p /sbin/ldconfig
    110104
    111105%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
    114107%dir %{_libdir}/aspell-0.60
    115108%{_bindir}/a*
     
    122115%{_libdir}/*.dll
    123116%{_libdir}/aspell-0.60/*
    124 %{_datadir}/locale/*/LC_MESSAGES/aspell.mo
     117%exclude %{_libdir}/aspell-0.60/*.dbg
    125118%{_infodir}/aspell.*
    126 %{_mandir}/man1/aspell*
     119%{_mandir}/man1/aspell.1.*
    127120%{_mandir}/man1/run-with-aspell.1*
    128121%{_mandir}/man1/word-list-compress.1*
    129122%{_mandir}/man1/prezip-bin.1*
    130123
    131 %files          devel
    132 %defattr(-,root,root)
     124%files devel
    133125%dir %{_includedir}/pspell
    134126%{_bindir}/pspell-config
     
    139131%{_mandir}/man1/pspell-config.1*
    140132
    141 %files debug
    142 %defattr(-,root,root)
    143 %{_libdir}/*.dbg
    144 %{_bindir}/*.dbg
    145133
    146134%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
    147141* Thu Feb 12 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-1
    148142- first version
Note: See TracChangeset for help on using the changeset viewer.