3 %bcond_with tests # build without tests
5 Summary: Cross package maker. DEB/RPM generation or conversion
10 Group: Development/Languages
11 Source0: http://fossil.include-once.org/xpm/tarball/%{name}-%{version}.tar.gz?uuid=v%{version}&/%{name}-%{version}.tar.gz
12 # Source0-md5: f73ececfa6725965fc41d4e11ea85992
13 Patch0: templates.patch
14 URL: http://fossil.include-once.org/xpm/
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
17 BuildRequires: sed >= 4.0
19 BuildRequires: ruby-insist < 0.1
20 BuildRequires: ruby-insist >= 0.0.5
21 BuildRequires: ruby-pry
22 BuildRequires: ruby-rspec < 3.1
23 BuildRequires: ruby-rspec >= 3.0.0
24 BuildRequires: ruby-stud
26 Requires: ruby-arr-pm < 0.1
27 Requires: ruby-arr-pm >= 0.0.9
28 Requires: ruby-backports >= 2.6.2
29 Requires: ruby-cabin >= 0.6.0
30 Requires: ruby-childprocess
31 Requires: ruby-clamp < 1
32 Requires: ruby-clamp >= 0.6
34 Requires: ruby-json >= 1.7.7
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 fpm greatly simplifies distribution package generation. xpm is a
40 feature-oriented branch of fpm.
42 It creates or converts between:
48 - Solaris packages, plain zip or tar archives, and a few more...
53 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
55 # cleanup backups after patching
56 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
61 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
62 cp -a templates $RPM_BUILD_ROOT%{ruby_vendorlibdir}/fpm
63 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
70 %doc README.md CHANGELIST CODE_OF_CONDUCT.md CONTRIBUTORS NOTES.md LICENSE
71 %attr(755,root,root) %{_bindir}/xpm
72 %{ruby_vendorlibdir}/fpm.rb
73 %{ruby_vendorlibdir}/fpm