-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflamethrower.spec
73 lines (64 loc) · 2.32 KB
/
flamethrower.spec
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
%define name flamethrower
%define version 0.1.8
%define release 3
%define prefix /usr
Name: %name
Version: %version
Release: %release
License: GPL
Summary: A multicast file transfer utility
URL: http://systemimager.org
Group: Applications/System
Source: %{name}-%{version}.tar.bz2
BuildArch: noarch
Requires: /usr/bin/perl, udpcast
Vendor: http://sisuite.org
Packager: SIS Devel Team <[email protected]>
Prefix: %prefix
Buildroot: /tmp/%{name}-%{version}-root
#AutoReq: no
%description
Flamethrower is a multicast file transfer utility.
%prep
%setup
%build
%{__perl} Makefile.PL PREFIX=%{_prefix}
%{__make} %{?_smp_mflags}
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
%{__make} install CONFDIR=$RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{prefix}/lib/flamethrower/auto/
find $RPM_BUILD_ROOT%{prefix} -name perllocal.pod | xargs rm -f
find $RPM_BUILD_ROOT%{prefix} -name .packlist | xargs rm -f
%files
%defattr(-,root,root)
%doc HOWTO README LICENSE CREDITS
%{_bindir}/flamethrower
%{_bindir}/flamethrowerd
%{perl_vendorlib}/Flamethrower.pm
%config %{_sysconfdir}/flamethrower/flamethrower.conf
%config %{_sysconfdir}/init.d/flamethrower-server
%dir %{_sharedstatedir}/flamethrower
%post
%preun
%changelog
* Wed Jun 08 2022 Olivier Lahaye <[email protected]>
- statedir is now /var/run (thus not packaged anymore)
* Fri Sep 21 2012 Olivier Lahaye <[email protected]>
- Fixed install using DESTDIR and using PREFIX for Makefile.PL
* Mon Jan 16 2006 Bernard Li <[email protected]>
- Added %dir /var/lib/flamethrower
* Sat Dec 24 2005 Bernard Li <[email protected]>
- Added PERLPREFIX such that building RPM on systems with newer perl (5.8.5?) works
- PREFIX is needed for backward compatability
- Find the correct perllocal.pod file to delete instead of hardcoding it
* Wed Dec 14 2005 Bernard Li <[email protected]>
- 0.1.7 release
- added directory /var/state/flamethrower needed for /etc/init.d script
* Wed Nov 26 2003 Brian Finley <[email protected]>
- 0.1.6 release
- simplify spec file
* Thu Jul 03 2003 dann frazier <[email protected]>
- fix 765028 - stop using %dir macros for system dirs
* Sun Jul 01 2003 dann frazier <[email protected]>
- first package - based on systeminstaller's .spec file.