~ubuntu-branches/ubuntu/precise/ksocrat/precise

« back to all changes in this revision

Viewing changes to ksocrat.spec

  • Committer: Bazaar Package Importer
  • Author(s): Ivan E. Moore II
  • Date: 2003-04-28 23:10:00 UTC
  • Revision ID: james.westby@ubuntu.com-20030428231000-8lne67fn8ji8ihmq
Tags: upstream-3.1.2
ImportĀ upstreamĀ versionĀ 3.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Summary:   English/Russian and Russian/English dictionary for KDE 3
 
2
Name:      ksocrat
 
3
Version:   3.1.2
 
4
Release:   1
 
5
Copyright: GPL
 
6
Vendor:    Zavolzhsky Alexandr <zavolzhsky@mail.ru>
 
7
Packager:  Zavolzhsky Alexandr <zavolzhsky@mail.ru>
 
8
Url:       http://webua.net/zavolzhsky
 
9
Group:     Graphical desktop/KDE
 
10
Source:    ksocrat-3.1.2.tar.gz
 
11
BuildRoot: /tmp/buildroot
 
12
 
 
13
%description
 
14
English/Russian and Russian/English dictionary.
 
15
 
 
16
%prep
 
17
%setup
 
18
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
 
19
                 \
 
20
                $LOCALFLAGS
 
21
%build
 
22
# Setup for parallel builds
 
23
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
 
24
if [ "$numprocs" = "0" ]; then
 
25
  numprocs=1
 
26
fi
 
27
 
 
28
make -j$numprocs
 
29
 
 
30
%install
 
31
make install-strip DESTDIR=$RPM_BUILD_ROOT
 
32
 
 
33
cd $RPM_BUILD_ROOT
 
34
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.ksocrat
 
35
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.ksocrat
 
36
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.ksocrat
 
37
 
 
38
%clean
 
39
rm -rf $RPM_BUILD_ROOT/*
 
40
rm -rf $RPM_BUILD_DIR/ksocrat
 
41
rm -rf ../file.list.ksocrat
 
42
 
 
43
 
 
44
%files -f ../file.list.ksocrat