File: libdbmusic.spec

package info (click to toggle)
libdbmusic 0.2.0-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 764 kB
  • ctags: 254
  • sloc: sh: 7,707; cpp: 3,403; ansic: 107; makefile: 46
file content (58 lines) | stat: -rw-r--r-- 1,723 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
57
58
# This spec file was generated by Will DeRousse.
# If you find any problems with this spec file please report
# the error to him at <badhack@users.sourceforge.net>
Summary:   A music collection library API using PostgreSQL
Name:      libdbmusic
Version:   0.2.0
Release:   1
Copyright: GPL
Vendor:    Will DeRousse <badhack@users.sourceforge.net>
Url:       http://kmusicdb.sourceforge.net
Packager:  Will DeRousse <badhack@users.sourceforge.net>
Group:     System/Libraries
Source:    libdbmusic-0.2.0.tar.gz
BuildRoot: /usr/src/RPM/SOURCES

%description
libdbmusic was designed to provide an API for implementing music databases or collections. This library requires QT, KDE and PostgreSQL.

%prep
%setup
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
                --prefix=/usr \
                $LOCALFLAGS
%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/file.list.libdbmusic
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.libdbmusic
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.libdbmusic

%clean
rm -rf /usr/src/RPM/BUILD/libdbmusic-0.2.0

%files
%dir /usr
%dir /usr/lib
%dir /usr/include
%dir /usr/share
%dir /usr/share/libdbmusic
/usr/share/libdbmusic/dbmusic.dump
/usr/include/dbmusic.h
/usr/include/dbmusicglobals.h
/usr/include/dbmusicvalidator.h
/usr/include/dbinit.h
/usr/lib/libdbmusic.la
/usr/lib/libdbmusic.so
/usr/lib/libdbmusic.so.0
/usr/lib/libdbmusic.so.0.0.2