root/scrubbery/trunk/scrubbery.spec.in

Revision 1, 1.5 kB (checked in by conrad, 3 years ago)

scrubbery: initial import

Line 
1 # scrubbery.spec
2 #
3 # Copyright (c) 2003 Conrad Parker conrad@metadecks.org
4 #
5 %define name scrubbery
6 %define version @VERSION@
7 %define release 1
8 %define manifest %{_builddir}/%{name}-%{version}-%{release}.manifest
9
10 # required items
11 Name: %{name}
12 Version: %{version}
13 Release: %{release}
14 Copyright: GPL
15 Group: Application/Sound
16
17 # optional items
18 #Vendor: Conrad Parker
19 #Distribution:
20 #Icon:
21 #URL:
22 #Packager: Conrad Parker conrad@metadecks.org
23
24 # source + patches
25 Source: %{name}-%{version}.tar.gz
26 #Source1:
27 #Patch:
28 #Patch1:
29
30 # RPM info
31 #Provides:
32 #Requires:
33 #Conflicts:
34 #Prereq:
35
36 #Prefix: /usr
37 BuildRoot: /var/tmp/%{name}-%{version}
38
39 Summary: A simple drum machine
40
41 %description
42 A simple drum machine
43 @configure_input@
44 A simple scrubbing machine.
45
46 %prep
47 %setup -q
48 #%patch0 -p1
49
50 %build
51 %configure
52 make
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 mkdir -p $RPM_BUILD_ROOT
57 %makeinstall
58
59 # __os_install_post is implicitly expanded after the
60 # %install section... do it now, and then disable it,
61 # so all work is done before building manifest.
62
63 %{?__os_install_post}
64 %define __os_install_post %{nil}
65
66 # build the file list automagically into %{manifest}
67
68 cd $RPM_BUILD_ROOT
69 rm -f %{manifest}
70 find . -type d \
71         | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' >> %{manifest}
72 find . -type f \
73         | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{manifest}
74 find . -type l \
75         | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{manifest}
76
77 #%pre
78 #%post
79 #%preun
80 #%postun
81
82 %clean
83 rm -f %{manifest}
84 rm -rf $RPM_BUILD_ROOT
85
86 %files -f %{manifest}
87 %defattr(-,root,root)
88 #%doc README
89 #%docdir
90 #%config
91
92 %changelog
Note: See TracBrowser for help on using the browser.