-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackagemaker.spec.in
178 lines (140 loc) · 6.02 KB
/
packagemaker.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
#%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
#%define run_testsuite 1
#%else
%define run_testsuite 0
#%endif
Name: packagemaker
Version: @VERSION@
Release: 1%{?dist}
Summary: Tool to make packages of files on your system automatically
Group: System Environment/Base
License: GPLv3+
URL: https://github.com/ssato/packagemaker
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python
%if %{run_testsuite}
BuildRequires: python-nose
BuildRequires: python-pep8
%endif
%if ! 0%{?fedora} == 0
Requires: mock
%endif
Requires: rpm-build
Requires: automake
Requires: autoconf
Requires: make
Requires: %{name}-core = %{version}-%{release}
%description
PackageMaker is a tool can automate process to package files on your system. It
helps building packages of existing files, dirs and symlinks on your system by
automating almost all of the steps needed for packaging: arrange source tree,
create makefiles and rpm specs or debian packaging files, etc.
%package core
Summary: PackageMaker core library and tools
Group: System Environment/Base
Requires: python
%description core
PackageMaker core library and tools to make source working directories to build
packages at least even if some dependencies such as autoconf, automake,
rpm-build not found on target systems, to make packages (SRPMs).
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*.egg-info
%check
%if %{run_testsuite}
%{__python} setup.py test
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README.rst
%doc tests
%files core
%defattr(-,root,root,-)
%doc README.rst
%doc examples
%{python_sitelib}/pmaker
%{_bindir}/*
%{_datadir}/pmaker/templates/1/*
%{_datadir}/pmaker/templates/1/common/*
%{_datadir}/pmaker/templates/1/common/debian/*
%{_datadir}/pmaker/templates/1/common/debian/source/*
%{_datadir}/pmaker/templates/1/autotools/*
%{_datadir}/pmaker/templates/1/autotools/debian/*
%{_datadir}/pmaker/templates/1/autotools.single/*
%{_datadir}/pmaker/templates/1/buildrpm/*
%{_datadir}/man/man8/*
%changelog
* Wed Oct 21 2015 Satoru SATOH <[email protected]> - 0.5.0-1
- Fix a grave bug when --destdir=. and path of target files contain '.'
* Tue Oct 15 2013 Satoru SATOH <[email protected]> - 0.4.3-1
- Make template search path specified in -P/--template-path option inserted
into the top of paths always
- Added a filter filtering out files of which names contains ':' as make does
not like such file names
- Some other minor bug fixes including many PEP8 errors
* Fri Feb 22 2013 Satoru SATOH <[email protected]> - 0.4.2-1
- Fixed template syntax error such var 'reqs' is undefined
- Fixed templates having var 'trigger'
- Added a filter filtering out files having whitespaces in those paths
- Some other minor bug fixes
* Fri Jul 6 2012 Satoru SATOH <[email protected]> - 0.4.1-1
- new major version release
- splitted into two RPMs to bring some runtime deps selectively
* Sun Dec 25 2011 Satoru SATOH <[email protected]> - 0.4.0-1
- new major version release
- switched module represents file objects from FileInfo to FileObjects
- switched module implements build process from Makers to Backends
- switched template engine from python-cheetah to (builtin) pytenjin
- many refactorings, enhancements and fixes around option and configurations handling
- new backend: buildrpm.{tgz,rpm}
* Fri Sep 30 2011 Satoru SATOH <[email protected]> - 0.3.1.20110930-2
- snapshot release
- fixed a grave bug introduced in previous commits that attributes user
specified are ignored
* Fri Sep 30 2011 Satoru SATOH <[email protected]> - 0.3.1.20110930-1
- snapshot release
- fixed a bug that collectors instatiate FileInfo objects directry instead by factory class
- fixed a bug that '%dir ' is missing in the rpm attribute of DirInfo objects
- started to write internal design notes in README
* Thu Sep 29 2011 Satoru SATOH <[email protected]> - 0.3.1.20110906-1
- snapshot release
- fixed a bug when str gid passed
- make it allowed string represation of uids and gids ([email protected])
- changed default package version (customizable with --pversion option) from 0.1 to 0.0.1
- corrected an wrong English expression: it should not be a singular form
- started to switch to thread based pmaker.shell.run from pmaker.shell.shell
* Thu Jul 14 2011 Satoru SATOH <[email protected]> - 0.3.1-1
- bug fix release
- new option --trace to get tracing logs
- fixed some grave bugs around pmaker.collectors.Collector.collect()
- changed behavior of FileInfo.__eq__ to take care of paths
- enhanced test cases to catch more bugs before release
- fixed some bugs in updating workdir originally passed as --workdir option when --pversion option used
- merged functions of pmaker.models.Target into pmaker.models.FileInfo and removed it
- migrated ExtFileListCollector into FileListCollector
- merged Virtul*FileInfo to FileInfo
* Thu Jul 14 2011 Satoru SATOH <[email protected]> - 0.3.0.20110714-2
- Fixed bugs related to deprecated and removed option --scriptlets
* Thu Jul 14 2011 Satoru SATOH <[email protected]> - 0.3.0.20110714-1
- Added a man page
* Thu Jul 07 2011 Satoru SATOH <[email protected]> - 0.3.0.20110707-1
- Fixed wrong option '-l' found in help text
* Mon Jul 04 2011 Satoru SATOH <[email protected]> - 0.3.0-1
- New modularized 0.3.0 release
- Removed some options: --build-self, --tests, etc.
- Changed the option --mail to --email to make it consistent with myrepo in rpmkit
- Git repository was moved
- And some more bug fixes
* Thu Jun 30 2011 Satoru SATOH <[email protected]> - 0.2.99.20110630-1
- Initial (static) packaging