| 1 | #define svn_url e:/trees/wcd/trunk
|
|---|
| 2 | %define svn_url http://svn.netlabs.org/repos/ports/wcd/trunk
|
|---|
| 3 | %define svn_rev 1776
|
|---|
| 4 |
|
|---|
| 5 | Summary: Chdir for DOS and Unix
|
|---|
| 6 | Name: wcd
|
|---|
| 7 | Version: 5.3.3
|
|---|
| 8 | Release: 2%{?dist}
|
|---|
| 9 | License: GPLv2
|
|---|
| 10 | Group: Applications/File
|
|---|
| 11 | URL: http://waterlan.home.xs4all.nl/
|
|---|
| 12 | Vendor: bww bitwise works GmbH
|
|---|
| 13 |
|
|---|
| 14 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 15 |
|
|---|
| 16 | BuildRequires: gettext
|
|---|
| 17 | BuildRequires: ncurses-devel
|
|---|
| 18 | #BuildRequires: libunistring-devel
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | Wcd. Directory changer for DOS and Unix. Another Norton
|
|---|
| 22 | Change Directory (NCD) clone.
|
|---|
| 23 |
|
|---|
| 24 | Wcd is a command-line program to change directory fast. It
|
|---|
| 25 | saves time typing at the keyboard. One needs to type only
|
|---|
| 26 | a part of a directory name and wcd will jump to it. Wcd
|
|---|
| 27 | has a fast selection method in case of multiple matches
|
|---|
| 28 | and allows aliasing and banning of directories. Wcd also
|
|---|
| 29 | includes a full-screen interactive directory tree browser
|
|---|
| 30 | with speed search.
|
|---|
| 31 |
|
|---|
| 32 | %debug_package
|
|---|
| 33 |
|
|---|
| 34 | %prep
|
|---|
| 35 | %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}
|
|---|
| 36 | %setup -q
|
|---|
| 37 | %else
|
|---|
| 38 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 39 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 40 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 41 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 42 | %endif
|
|---|
| 43 |
|
|---|
| 44 | %build
|
|---|
| 45 | export LDFLAGS_EXTRA="-Zhigh-mem -Zomf -Zargs-resp"
|
|---|
| 46 | export LIBS_EXTRA="-lcx"
|
|---|
| 47 | make -C src %{?_smp_mflags} prefix=%{_prefix}
|
|---|
| 48 | #UCS=1 UNINORM=1
|
|---|
| 49 |
|
|---|
| 50 | %install
|
|---|
| 51 | make -C src install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} mandir=%{_mandir}
|
|---|
| 52 | make -C src install-profile DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} sysconfdir=%{_sysconfdir}
|
|---|
| 53 |
|
|---|
| 54 | %find_lang %{name} --with-man
|
|---|
| 55 |
|
|---|
| 56 | %clean
|
|---|
| 57 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 58 |
|
|---|
| 59 | %files -f %{name}.lang
|
|---|
| 60 | %{_bindir}/wcd*.exe
|
|---|
| 61 | %{_bindir}/wcd.cmd
|
|---|
| 62 | # Overwrite the old config files. Old config files may break a new
|
|---|
| 63 | # installation when the name of the binary changes.
|
|---|
| 64 | %exclude %{_sysconfdir}/profile.d/wcd.*
|
|---|
| 65 | # https://fedoraproject.org/wiki/Packaging_tricks#As_part_of_the_staged_install
|
|---|
| 66 | %{_defaultdocdir}/%{name}-%{version}/
|
|---|
| 67 | %{_mandir}/man1/wcd.*
|
|---|
| 68 | # The name of the manual page is 'wcd', equal to the name of the package and
|
|---|
| 69 | # defined alias (csh) and function (sh) in the config files, and not equal to
|
|---|
| 70 | # the name of the binary. The name of the binary may vary and is in fact not
|
|---|
| 71 | # important.
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | %changelog
|
|---|
| 75 | * Thu Nov 3 2016 Elbert Pol <elbert.pol@gmail.com> - 5.3.3-2
|
|---|
| 76 | - Remove -Zargs-wild option
|
|---|
| 77 |
|
|---|
| 78 | * Wed Oct 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 5.3.3-1
|
|---|
| 79 | - Initial build
|
|---|
| 80 |
|
|---|