#define svn_url e:/trees/wcd/trunk #%define svn_url http://svn.netlabs.org/repos/ports/wcd/trunk #%define svn_rev 2247 Summary: Chdir for DOS and Unix Name: wcd Version: 6.0.2 Release: 2%{?dist} License: GPLv2 Group: Applications/File URL: http://waterlan.home.xs4all.nl/ Vendor: bww bitwise works GmbH %scm_source svn http://svn.netlabs.org/repos/ports/wcd/trunk 2279 #Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip BuildRequires: gettext BuildRequires: ncurses-devel #BuildRequires: libunistring-devel %description Wcd. Directory changer for DOS and Unix. Another Norton Change Directory (NCD) clone. Wcd is a command-line program to change directory fast. It saves time typing at the keyboard. One needs to type only a part of a directory name and wcd will jump to it. Wcd has a fast selection method in case of multiple matches and allows aliasing and banning of directories. Wcd also includes a full-screen interactive directory tree browser with speed search. %debug_package %prep %scm_setup #%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} #%setup -q #%else #%setup -n "%{name}-%{version}" -Tc #svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force #rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" #(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") #%endif %build export LDFLAGS_EXTRA="-Zhigh-mem -Zomf -Zargs-resp" export LIBS_EXTRA="-lcx" make -C src %{?_smp_mflags} prefix=%{_prefix} #UCS=1 UNINORM=1 %install make -C src install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} mandir=%{_mandir} make -C src install-profile DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} sysconfdir=%{_sysconfdir} %find_lang %{name} --with-man %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %{_bindir}/wcd*.exe %{_bindir}/wcd.cmd # Overwrite the old config files. Old config files may break a new # installation when the name of the binary changes. %exclude %{_sysconfdir}/profile.d/wcd.* # https://fedoraproject.org/wiki/Packaging_tricks#As_part_of_the_staged_install %{_defaultdocdir}/%{name}-%{version}/ %{_mandir}/man1/wcd.* # The name of the manual page is 'wcd', equal to the name of the package and # defined alias (csh) and function (sh) in the config files, and not equal to # the name of the binary. The name of the binary may vary and is in fact not # important. %changelog * Tue May 15 2018 Elbert Pol - 6.0.2-2 - Add missing files to source * Sun May 13 2018 Elbert Pol - 6.0.2-1 - Updated to v6.0.2 * Tue Sep 05 2017 Elbert Pol - 6.0.1-1 - Updated to v6.0.1 - use new scm_ macros * Thu Nov 3 2016 Elbert Pol - 5.3.3-2 - Remove -Zargs-wild option * Wed Oct 26 2016 Silvan Scherrer - 5.3.3-1 - Initial build