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
|
%define version 0.10
%define name knowit
%define release 1
Name: %{name}
Version: %{version}
Release: %{release}
Packager: Michal Rudolf
Source: %{name}-%{version}.tar.bz2
BuildRoot: /tmp/build-%{name}-%{version}-%{release}
Copyright: GPL
Group: X11/KDE/Utilities
Summary: knowledge management program for KDE
%description
KnowIt is a simple tool for managing notes. It is similar to
TuxCards, but KDE-based. Notes are organized in tree-like hierarchy,
texts are in RichText format, so bold, italic and lists are supported,
with more to come.
%prep
rm -rf $RPM_BUILD_ROOT
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG" \
./configure --prefix=$TDEDIR --with-install-root=$RPM_BUILD_ROOT # --enable-final
make
%install
make prefix=$RPM_BUILD_ROOT$TDEDIR install-strip
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 -rf $RPM_BUILD_DIR/%{name}-%{version}
rm -f $RPM_BUILD_DIR/file.list.%{name}
%files -f ../file.list.%{name}
|