source: spec/trunk/SPECS/wcd.spec@ 1036

Last change on this file since 1036 was 890, checked in by tellie, 9 years ago

spec: wcd: Release version 5.3.3-2

File size: 2.5 KB
Line 
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
5Summary: Chdir for DOS and Unix
6Name: wcd
7Version: 5.3.3
8Release: 2%{?dist}
9License: GPLv2
10Group: Applications/File
11URL: http://waterlan.home.xs4all.nl/
12Vendor: bww bitwise works GmbH
13
14Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
15
16BuildRequires: gettext
17BuildRequires: ncurses-devel
18#BuildRequires: libunistring-devel
19
20%description
21Wcd. Directory changer for DOS and Unix. Another Norton
22Change Directory (NCD) clone.
23
24Wcd is a command-line program to change directory fast. It
25saves time typing at the keyboard. One needs to type only
26a part of a directory name and wcd will jump to it. Wcd
27has a fast selection method in case of multiple matches
28and allows aliasing and banning of directories. Wcd also
29includes a full-screen interactive directory tree browser
30with 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
39svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
40rm -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
45export LDFLAGS_EXTRA="-Zhigh-mem -Zomf -Zargs-resp"
46export LIBS_EXTRA="-lcx"
47make -C src %{?_smp_mflags} prefix=%{_prefix}
48#UCS=1 UNINORM=1
49
50%install
51make -C src install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} mandir=%{_mandir}
52make -C src install-profile DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} sysconfdir=%{_sysconfdir}
53
54%find_lang %{name} --with-man
55
56%clean
57rm -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
Note: See TracBrowser for help on using the repository browser.