source: projects/specs/branches/6/a/alternatives/alternatives-vl.spec @ 3009

Revision 3009, 3.0 KB checked in by daisuke, 12 years ago (diff)

alternatives:

  • s/PreReq/Requires
Line 
1Summary: maintain symbolic links determining default commands (from Debian dpkg utilities)
2Summary(ja): コマンドのシンボリックリンクを管理する (Debian dpkg ユーティリティーより)
3Name: alternatives
4Version: 0.1.10.18
5Release: 2%{?_dist_release}
6License: GPL
7Group: System Environment/Base
8# source archive is generated from Debian dpkg-1.10.18
9Source0: alternatives-%{version}.tar.bz2
10Source1: update-alternatives.ja.8
11Patch0: alternatives-0.1.10.18-rpm.patch
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14Requires: perl
15
16Distribution: Vine Linux
17Vendor: Project Vine
18Packager: daisuke
19
20
21%description
22maintain symbolic links determining default commands (from Debian dpkg utilities)
23
24%description -l ja
25コマンドのシンボリックリンクを管理する (Debian dpkg ユーティリティーより)
26
27
28%prep
29%setup
30%patch0 -p0
31
32%build
33pushd utils
34gcc -o enoent enoent.c
35strip enoent
36popd
37
38sed -e 's!@RPMDIR@!/var/lib/rpm!g' \
39    -e 's!@SYSCONFDIR@!%{_sysconfdir}!g' \
40    -e 's/dpkg/rpm/g' \
41    scripts/update-alternatives.pl \
42    > update-alternatives
43
44sed -e 's!@RPMDIR@!/var/lib/rpm!g' \
45    scripts/update-alternatives.8 \
46    > scripts/update-alternatives.8.rpm
47mv scripts/update-alternatives{.8.rpm,.8}
48
49%install
50rm -rf %{buildroot}
51mkdir -p %{buildroot}/sbin
52install -m 755 update-alternatives %{buildroot}/sbin/update-alternatives
53
54mkdir -p %{buildroot}/%{_mandir}/man8
55install -m644 scripts/update-alternatives.8 %{buildroot}/%{_mandir}/man8/
56
57mkdir -p %{buildroot}/%{_mandir}/ja/man8
58install -m644 %{SOURCE1} %{buildroot}/%{_mandir}/ja/man8/update-alternatives.8
59
60mkdir -p %{buildroot}/var/lib/rpm/alternatives
61install -m 755 utils/enoent %{buildroot}/var/lib/rpm/enoent
62
63mkdir -p %{buildroot}/%{_sysconfdir}/alternatives
64
65%clean
66rm -rf %{buildroot}
67
68%files
69%defattr (-, root, root)
70%doc COPYING
71/sbin/update-alternatives
72%{_sysconfdir}/alternatives
73%{_mandir}/man8/*
74%{_mandir}/ja/man8/*
75/var/lib/rpm/alternatives
76/var/lib/rpm/enoent
77
78%changelog
79* Sat Mar 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.10.18-2
80- s/PreReq/Requires perl
81
82* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.1.10.18-1vl5
83- applied new versioning policy, spec in utf-8
84
85* Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.10.18-0vl2
86- rebuild to add gpg sign
87
88* Tue Dec 02 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.10.18-0vl1
89- resync with upstream version
90
91* Sat Aug 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.9.17-0vl5
92- rebuild and changed docdir to /usr/share/doc
93- s/Copyright/License/
94
95* Sun Oct  6 2002 Jun Nishii <jun@vinelinux.org>
96- added Japanese man page by Toshiyasu KOJIMA [vine-users:041367]
97
98* Sat Mar 16 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.9.17-0vl3
99- add PreReq: perl for install time problem.
100
101* Sun Sep 09 2001 Toru Sagami <sagami@vinelinux.org>
102- 0.1.9.17-0vl2: fixed path(es) in man page
103- use /var/lib, instead of %%{_localstatedir} (current rpm has wrong macros)
104
105* Sat Sep 09 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.1.9.17-0vl1
106- Oops the spec was in JIS. Fixed.
107
108* Wed Sep 06 2001 Shoji Matsumoto <shom@vinelinux.org>
109- create
110
Note: See TracBrowser for help on using the repository browser.