aboutsummaryrefslogtreecommitdiff
path: root/mpio.spec.in
diff options
context:
space:
mode:
authorgermeier <germeier>2003-03-08 14:54:21 +0000
committergermeier <germeier>2003-03-08 14:54:21 +0000
commit2006118bc82205e2f873dced5704ad8e68896e88 (patch)
tree422febc8f82cdf15ca9c10851634e1cc34777d3d /mpio.spec.in
parent31175a2dfdff288073a4390c5999e71cd625cd17 (diff)
downloadmpiosh-2006118bc82205e2f873dced5704ad8e68896e88.tar.gz
mpiosh-2006118bc82205e2f873dced5704ad8e68896e88.tar.bz2
mpiosh-2006118bc82205e2f873dced5704ad8e68896e88.zip
fixed packaging problems
Diffstat (limited to 'mpio.spec.in')
-rw-r--r--mpio.spec.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/mpio.spec.in b/mpio.spec.in
index ce87e46..be662e2 100644
--- a/mpio.spec.in
+++ b/mpio.spec.in
@@ -3,6 +3,8 @@
%define release 1
%define name mpio
%define spec_path @SPEC_PATH@
+%define prefix /usr
+%define sysconfdir %prefix/etc
Version: %version
Summary: MPIO - providing access to MPIO mp3 players
@@ -11,7 +13,7 @@ Release: %release
Copyright: see COPYING
Group: Applications/MultiMedia
Source: http://download.sourceforge.net/mpio/mpio-@VERSION@.tar.gz
-Prefix: /usr
+Prefix: %prefix
Buildroot: /var/tmp/mpio-@VERSION@-buildroot/
Packager: Andreas Bsching <crunchy@tzi.de>
@@ -22,7 +24,7 @@ a userspace library and at the moment one tool to access the MPIO player.
%prep
%setup
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix -sysconfdir=%sysconfdir
%build
make
@@ -39,8 +41,8 @@ echo "%defattr(700,root,root)" >> /tmp/mpio-files.lst
echo "%prefix/sbin/mkmpiodev" >> /tmp/mpio-files.lst
echo "%defattr(644,root,root)" >> /tmp/mpio-files.lst
echo "/lib/modules/$KVERSION/%{spec_path}/mpio.o" >> /tmp/mpio-files.lst
-echo "%defattr(640,root,root)" >> /tmp/mpio-files.lst
-echo "/etc/mpio/mpioshrc" >> /tmp/mpio-files.lst
+echo "%defattr(644,root,root)" >> /tmp/mpio-files.lst
+echo "%sysconfdir/mpio/mpioshrc" >> /tmp/mpio-files.lst
make DESTDIR=$RPM_BUILD_ROOT install