-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmlfs.spec.in
56 lines (50 loc) · 1.47 KB
/
xmlfs.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
%define name `xmlfs'
%define version @VERSION@
%define release 1
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: Amok Berserker
Packager: Amok Berserker amok@codestation.org
Epoch: 0
URL: codestation.org
Source: %{name}-%{version}.tar.gz
#Patch:
Group: Application/Generic
Copyright: see COPYRIGHT file
#Icon:
Prereq: ncurses >= 5.2
#Requires:
Autoreq: yes
BuildArch: i386
BuildRoot: /tmp/%{name}-%{version}-root
ExclusiveArch: i386
ExclusiveOS: Linux
ExcludeArch: i586,i686
Summary: does very much of very many different usefull things ... really.
%description
connect ...
@configure_input@
Please edit `xmlfs'.spec.in to add several more lines of description
here if appropriate, and to delete these instructions.
%prep
%setup -n %{name}-%{version}
#%patch -p1
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
make
%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
mkdir -p $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Build the file-list automagically :)
cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
%clean
rm -rf $RPM_BUILD_ROOT
rm ../file.list.%{name}
%files -f ../file.list.%{name}
%doc README