forked from juicer/juicer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
juicer.spec.in
141 lines (114 loc) · 4.27 KB
/
juicer.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
%if 0%{?rhel} <= 5
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%endif
Name: juicer
Release: 1%{?dist}
Summary: Pulp and release carts
Version: %VERSION%
Group: Development/Libraries
License: GPLv3+
Source0: %{name}-%{version}.tar.gz
Url: https://github.com/juicer
BuildArch: noarch
BuildRequires: python2-devel
Requires: juicer-common
%description
Pulp stuff, oh -- and release carts.
######################################################################
# juicer-common sub-package
%package common
Group: Development/Libraries
Summary: Files common to juicer and juicer-admin
Requires: python-BeautifulSoup
Requires: python-requests >= 0.13.1
Requires: rpm-python
Requires: python-progressbar
Requires: python >= 2.5
%description common
Provides common resources like documentation, shared libraries, and
utilities for juicer and juicer-admin.
######################################################################
# juicer-admin sub-package
%package admin
Group: Development/Libraries
Summary: Manage a pulp repository server
Requires: juicer-common
%description admin
The juicer-admin utility lets you manage users, user roles, create,
and delete repositories on a pulp server.
######################################################################
%prep
%setup -q
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --root=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man5}/
cp -v docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
cp -v docs/man/man5/*.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/juicer
cp -vr share/juicer/completions $RPM_BUILD_ROOT/%{_datadir}/juicer/
cp -vr share/juicer/juicer.conf $RPM_BUILD_ROOT/%{_datadir}/juicer/
%clean
rm -rf $RPM_BUILD_ROOT
######################################################################
# files for 'juicer' package
%files
%defattr(-,root,root)
%{python_sitelib}/juicer/juicer
%{_bindir}/juicer
######################################################################
%files common
%{python_sitelib}/juicer*-info
%{python_sitelib}/juicer/__init__.py*
%{python_sitelib}/juicer/common
%{python_sitelib}/juicer/utils
%doc README.md RELEASES.md docs/markdown LICENSE
%doc %{_mandir}/man1/juicer*
%doc %{_mandir}/man5/juicer*
%{_datadir}/juicer*
######################################################################
%files admin
%{_bindir}/juicer-admin
%{python_sitelib}/juicer/admin
######################################################################
%changelog
* Mon Jun 24 2013 Tim Bielawa <[email protected]> - 0.5.0-1
- Release of 0.5.0, "Lovecraft in Raleigh"
- Tons of changes necessary for switching to targeting Pulp v2, GitHub #100
- Support for syncing a repo from another source, GitHub #45
- Code cleanup and minor refactoring, GitHub #101
* Mon Nov 5 2012 Tim Bielawa <[email protected]> - 0.4.0-1
- Release of 0.4.0, "Hello, my dear"
- System level configs
- More helpful error messages
- New 'juicer update' method
- No more python-magic requires, swap with rpm-python
- Now with pulp setup instructions
- Major code refactoring (clean & tidy++)
- And a bunch of bug fixes: http://git.io/CvaXtA
* Wed Aug 15 2012 Tim Bielawa <[email protected]> - 0.3.0-1
- Release of 0.3.0
- Adds Cart promotion
- Adds RPM signing support
- Adds progress bar during uploads
- Split into 3 packages
- Improved search output (links to results now included!)
- Clean up some error messages/stack traces and exit cleanly
- Password prompt for user creation/update
- Reworked config file syntax
* Sun Jul 22 2012 Tim Bielawa <[email protected]> - 0.2.0-1
- First actual release!
* Sun Jul 22 2012 Tim Bielawa <[email protected]> - 0.1.9-1
- Prepare for 0.2.0 release.
* Tue Jul 17 2012 Tim Bielawa <[email protected]> - 0.1.7-1
- Bump. Almost on a 0.2.0 release.
* Wed Jul 11 2012 Tim Bielawa <[email protected]> - 0.1.3-1
- Now with client-side cart creation.
* Tue Jul 10 2012 Tim Bielawa <[email protected]> - 0.1.2-1
- Now with upload functionality
* Tue Jun 26 2012 Tim Bielawa <[email protected]> - 0.1.0-1
- juicer-admin code complete
* Mon Jun 18 2012 Tim Bielawa <[email protected]> - 0.0.1-1
- First release