NBash

Форк
0
93 строки · 2.6 Кб
1
Summary: An high level argument parsing library for bash
2
Name: bash-argsparse
3
Version: 1.8
4
Release: 1%{?dist}
5
License: WTFPL
6
URL: https://github.com/Anvil/bash-argsparse
7
Source0: http://argsparse.livna.org/%{name}-%{version}.tar.gz
8
BuildArch: noarch
9
# Binaries are required for unittest to perform cleanly.
10
BuildRequires: doxygen glibc-common util-linux /usr/bin/host
11

12
Requires: bash >= 4.2
13
Requires: util-linux glibc-common /usr/bin/host
14

15
%description
16
An high level argument parsing library for bash.
17

18
The purpose is to replace the option-parsing and usage-describing
19
functions commonly rewritten in all scripts.
20

21
This library is implemented for bash version 4. Prior versions of bash
22
will fail at interpreting that code.
23

24
%prep
25
%setup -q
26

27
%build
28
# Nothing to build, except the documentation.
29
doxygen
30

31
%install
32
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
33
for file in argsparse argsparse-completion; do
34
    install -m 0755 "$file.sh" $RPM_BUILD_ROOT/%{_bindir}
35
    ln -s "$file".sh $RPM_BUILD_ROOT/%{_bindir}/"$file"
36

37
%check
38
./unittest
39

40
%files
41
%doc tutorial README.md html COPYING
42
%{_bindir}/argsparse*
43

44

45
%changelog
46
* Tue Sep  5 2017 Dams <bash-argsparse[AT]livna.org> - 1.8-1
47
- Version 1.8
48

49
* Thu Mar 5 2015 Dams <bash-argsparse[AT]livna.org> - 1.7-1
50
- Version 1.7
51

52
* Wed Jan 28 2015 Dams <bash-argsparse[AT]livna.org> - 1.6.2-1
53
- Version 1.6.2
54
- Dropped fedora patch (included upstream)
55

56
* Fri Oct 24 2014 Dams <bash-argsparse[AT]livna.org> - 1.6.1-3
57
- Using package names instead of path for Requires/BuildRequires
58

59
* Wed Oct 15 2014 Dams <bash-argsparse[AT]livna.org> - 1.6.1-2
60
- Added patch to fix some unittest issues
61

62
* Thu Oct 9 2014 Dams <bash-argsparse[AT]livna.org> - 1.6.1-1
63
- Version 1.6.1
64
- Fixed changelog names
65

66
* Thu Oct 9 2014 Dams <bash-argsparse[AT]livna.org> - 1.6-4
67
- Update host path in *Requires tags.
68

69
* Wed Oct 8 2014 Dams <bash-argsparse[AT]livna.org> - 1.6-3
70
- Added more BuildRequires to allow unittest script to run correctly
71
  restricted small environments
72

73
* Mon Sep 15 2014 Dams <bash-argsparse[AT]livna.org> - 1.6-2
74
- Fixed date in changelog entry
75

76
* Tue Aug 12 2014 Dams <bash-argsparse[AT]livna.org> - 1.6-1
77
- License tag is now WTFPL
78
- Removed trailing dot at the end of Summary
79
- Removed BuildRoot tag
80
- Requiring commands instead of packages
81

82
* Mon Jan 13 2014 Dams <bash-argsparse[AT]livna.org> - 1.6-0
83
- Version 1.6
84
- Added doxygen documentation
85
- check section
86

87
* Thu Mar 21 2013 Dams <bash-argsparse[AT]livna.org> - 1.5-0
88
- Version 1.5
89
- Updated Requires
90
- Removed old/fedora-obsolete directives/noise
91

92
* Thu Mar 14 2013 Dams <bash-argsparse[AT]livna.org> - 1.4-0
93
- Initial build.
94

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.