You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
knowit/knowit.spec

44 lines
1.2 KiB

%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=$KDEDIR --with-install-root=$RPM_BUILD_ROOT # --enable-final
make
%install
make prefix=$RPM_BUILD_ROOT$KDEDIR 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}