diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bd9e6617827818fd043452c08c606f07b78014a0 (patch) | |
tree | 425bb4c3168f9c02f10150f235d2cb998dcc6108 /kapptemplate/appframework/app.spec | |
download | tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kapptemplate/appframework/app.spec')
-rw-r--r-- | kapptemplate/appframework/app.spec | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/kapptemplate/appframework/app.spec b/kapptemplate/appframework/app.spec new file mode 100644 index 00000000..b0f3fd48 --- /dev/null +++ b/kapptemplate/appframework/app.spec @@ -0,0 +1,44 @@ +echo "Creating $LOCATION_ROOT/$APP_NAME_LC.spec..."; +cat << EOF > $LOCATION_ROOT/$APP_NAME_LC.spec +%define distversion %( perl -e '$_=\<\>;/(\\d+)\\.(\\d)\\.?(\\d)?/; print "$1$2".($3||0)' /etc/*-release) +Name: ${APP_NAME_LC} +Summary: ${APP_NAME} -- Some description +Version: ${APP_VERSION} +Release: %{_vendor}_%{distversion} +Copyright: GPL +Group: X11/KDE/Utilities +Source: ftp://ftp.kde.org/pub/kde/unstable/apps/utils/%{name}-%{version}.tar.gz +Packager: ${AUTHOR} <${EMAIL}> +BuildRoot: /tmp/%{name}-%{version} +Prefix: `kde-config --prefix` + +%description +A long description + +%prep +rm -rf \$RPM_BUILD_ROOT +%setup -n %{name}-%{version} +CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ + --disable-debug --enable-final --prefix=%{prefix} + +%build +# Setup for parallel builds +numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :` +if [ "$numprocs" = "0" ]; then + numprocs=1 +fi + +make -j$numprocs + +%install +make install-strip DESTDIR=\$RPM_BUILD_ROOT + +cd $RPM_BUILD_ROOT +find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/%{name}-master.list +find . -type f -o -type l | sed 's|^\.||' >> \$RPM_BUILD_DIR/%{name}-master.list + +%clean +rm -rf \$RPM_BUILD_DIR/%{name}-%{version} +rm -rf \$RPM_BUILD_DIR/${name}-master.list + +%files -f \$RPM_BUILD_DIR/%{name}-master.list |