File: slpim.spec.in

package info (click to toggle)
slpim 0.1.0-2.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 692 kB
  • ctags: 145
  • sloc: sh: 2,295; ansic: 1,559; makefile: 41
file content (45 lines) | stat: -rw-r--r-- 1,198 bytes parent folder | download | duplicates (2)
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
%define name	slpim
%define version @VERSION@
%define release 1
%define builddir $RPM_BUILD_DIR/%{name}-%{version}

Name:		%{name}
Version:	%{version}
Release:	%{release}
Vendor:		John J. Ruthe 
Packager:	John J. Ruthe <phaust@users.sourceforge.net>
URL:		http://slpim.sf.net/
Source:         %{name}-%{version}.tar.gz
#Patch:		
Group:		Application
Copyright:	GPL
BuildRoot:	/var/tmp/%{name}-%{version}
Summary:	a PIM for (not only) text terminals
%description
a PIM for (not only) text terminals

%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 NEWS TODO COPYING