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

Last change on this file since 1569 was 1405, checked in by tellie, 8 years ago

spec: wcd: Release version 6.0.2-2.

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