-
Notifications
You must be signed in to change notification settings - Fork 1
/
pressgangcli.spec.in
70 lines (57 loc) · 2.43 KB
/
pressgangcli.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Name: pressgangcli
Obsoletes: skynet-shell-tools
Version: @VERSION@
Release: 1%{?dist}
Summary: A collection of shell scripts for interacting with the Pressgang CCMS
Group: Development/Tools
License: Public Domain
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: automake
BuildRequires: autoconf
Requires: %{_bindir}/curl
Requires: %{_bindir}/wget
Requires: %{_bindir}/diff
Requires: %{_bindir}/xmllint
Requires: bash
Requires: python
Requires: python-requests
%description
The Pressgang CLI includes a number of scripts for interacting with the
Pressgang CCMS. The tools include support for getting topics from Pressgang,
saving topics to Pressgang, and interactive local editing of topics.
%prep
%setup -q
%build
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m 0755 scripts/pressgang-edit $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datarootdir}/%{name}/
install scripts/pressgang-get.py $RPM_BUILD_ROOT%{_datarootdir}/%{name}/
install scripts/pressgang-put.py $RPM_BUILD_ROOT%{_datarootdir}/%{name}/
install scripts/pressgang-config.py $RPM_BUILD_ROOT%{_datarootdir}/%{name}/
install scripts/config.py $RPM_BUILD_ROOT%{_datarootdir}/%{name}/
install scripts/topic.py $RPM_BUILD_ROOT%{_datarootdir}/%{name}/
ln -s %{_datarootdir}/%{name}/pressgang-get.py $RPM_BUILD_ROOT%{_bindir}/pressgang-get
ln -s %{_datarootdir}/%{name}/pressgang-put.py $RPM_BUILD_ROOT%{_bindir}/pressgang-put
ln -s %{_datarootdir}/%{name}/pressgang-config.py $RPM_BUILD_ROOT%{_bindir}/pressgang-config
%files
%{_bindir}/*
%{_datarootdir}/%{name}
%changelog
* Tue Jan 25 2013 Stephen Gordon <[email protected]> 0.1.6-1
- Updated endpoint logic for more flexibility.
* Fri Oct 19 2012 Stephen Gordon <[email protected]> 0.1.4-1
- Rebranded for Pressgang CCMS.
- Provided put/get/config scripts in Python.
* Wed Sep 26 2012 Stephen Gordon <[email protected]> 0.1.3-1
- Updated to match new Skynet REST API.
* Mon Jul 24 2012 Stephen Gordon <[email protected]> 0.1.2-1
- Updating put logic to return to use control characters for \f, \r, \b.
* Mon Jul 23 2012 Stephen Gordon <[email protected]> 0.1.1-1
- Updating put logic to handle newlines correctly.
* Mon Jul 16 2012 Stephen Gordon <[email protected]> 0.1.0-4
- Updated validation logic to handle entities correctly.
* Mon Jul 16 2012 Stephen Gordon <[email protected]> 0.1.0-1
- Initial skynet-shell-tools release.