PDA

View Full Version : [SOLVED] cannot remove file, Permission denied


rafaga2k
19th February 2012, 12:08 AM
HI fedora forum i'm newbie in this thing of RPM packaging and i having a lot of problems making my first RPM

i'm trying to package the cdemu package with all their dependencies and when i try

rpmbuild -ba libmirage.spec

i got this error

libtool: install: /usr/bin/install -c .libs/image-b6t.so /usr/lib64/libmirage-1.5/image-b6t.so
/usr/bin/install: cannot remove `/usr/lib64/libmirage-1.5/image-b6t.so': Permission denied
make[4]: *** [install-pluginLTLIBRARIES] Error 1
make[4]: Leaving directory `/home/rafael/rpmbuild/BUILD/libmirage-1.5.0/src/parsers/image-b6t'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/rafael/rpmbuild/BUILD/libmirage-1.5.0/src/parsers/image-b6t'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/rafael/rpmbuild/BUILD/libmirage-1.5.0/src/parsers'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/rafael/rpmbuild/BUILD/libmirage-1.5.0/src'
make: *** [install-recursive] Error 1
error: Estado de salida erróneo de /var/tmp/rpm-tmp.MJdzzi (%install)

this is my spec file

Summary: a CD-ROM image access library
%define version 1.5.0
Group: System Environment/Libraries
Name: libmirage
Release: 1%{?dist}
License: GPL
Packager: Rafael ----------
Source: %{name}-%{version}.tar.gz
URL: http://cdemu.sourceforge.net/about/libmirage/
Requires: glib >= 2.28, libsndfile >= 1.0.0, zlib
Version: %{version}
Buildroot: %{_buildrootdir}/%{name}-%{version}-root
%description
The aim of libMirage is to provide uniform access to the data stored in different image formats, by creating a representation of disc stored in image file, which is based on GObjects. There are various objects that represent different parts of the disc; disc, session, track, sector, etc. In addition to providing access to data provided by the image file, libMirage is also capable of generating some of the data that might not be present in image file. For instance, ISO image provides only user data from sector, without sync pattern, header, ECC/EDC codes or subchannel. When this missing data is requested, libMirage will transparently generate it.

Currently supported image formats:
- BlindWrite 5/6 (B5T, B6T) file format
- Roxio / WinOnCD (C2D) file format
- CloneCD (CCD, SUB, IMG) image format
- DiscJuggler (CDI) file format
- Easy CD Creator (CIF) file format
- CDRwin (CUE, BIN) image format
- PowerISO (DAA) image format
- Track loader (ISO, UDF) for ISO9660 and UDF track images
- Alcohol 120% (MDS) image format
- Nero Burning ROM (NRG) image format
- ReadCD (TOC, BIN) image format
- Cdrdao's (TOC, BIN) image format
- XCDRoast (TOC, BIN) image format

%package devel
Group: Development/Libraries
Requires: glib-devel >= 2.28, libsndfile-devel >= 1.0.0, zlib-devel, gtk-doc
Summary: a CD-ROM image access development library
%description devel
The aim of libMirage is to provide uniform access to the data stored in different image formats, by creating a representation of disc stored in image file, which is based on GObjects. There are various objects that represent different parts of the disc; disc, session, track, sector, etc. In addition to providing access to data provided by the image file, libMirage is also capable of generating some of the data that might not be present in image file. For instance, ISO image provides only user data from sector, without sync pattern, header, ECC/EDC codes or subchannel. When this missing data is requested, libMirage will transparently generate it.

Currently supported image formats:
- BlindWrite 5/6 (B5T, B6T) file format
- Roxio / WinOnCD (C2D) file format
- CloneCD (CCD, SUB, IMG) image format
- DiscJuggler (CDI) file format
- Easy CD Creator (CIF) file format
- CDRwin (CUE, BIN) image format
- PowerISO (DAA) image format
- Track loader (ISO, UDF) for ISO9660 and UDF track images
- Alcohol 120% (MDS) image format
- Nero Burning ROM (NRG) image format
- ReadCD (TOC, BIN) image format
- Cdrdao's (TOC, BIN) image format
- XCDRoast (TOC, BIN) image format

%prep
%setup -q

%build
%configure
make DESTDIR=%{buildroot}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

#Sequence to test the build, something like 'make test' should work
%check

%files
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%{_libdir}/libmirage-1.5/*.so
%{_datadir}/mime/packages/*.xml
%doc README

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%doc %{_datadir}/gtk-doc/*

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%changelog
* Fri Feb 17 2012 Rafael ------
- Initial version 1.5.0

this is my SPEC file any ideas what i'm doing wrong

leigh123linux
19th February 2012, 05:39 PM
Change these sections to



%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

rafaga2k
19th February 2012, 07:11 PM

worked thanks