SPECS: dotnet-ipod-sharp.spec - use symlinks instead of duplicating files -...

qboosh qboosh at pld-linux.org
Tue Aug 26 20:44:57 CEST 2008


Author: qboosh                       Date: Tue Aug 26 18:44:57 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use symlinks instead of duplicating files
- separated -devel

---- Files affected:
SPECS:
   dotnet-ipod-sharp.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/dotnet-ipod-sharp.spec
diff -u SPECS/dotnet-ipod-sharp.spec:1.12 SPECS/dotnet-ipod-sharp.spec:1.13
--- SPECS/dotnet-ipod-sharp.spec:1.12	Tue Aug 26 15:43:44 2008
+++ SPECS/dotnet-ipod-sharp.spec	Tue Aug 26 20:44:52 2008
@@ -39,6 +39,18 @@
 zapisem baz danych iTunes/iPod oraz synchronizacja muzyki. ipod-sharp
 udostępnia także wrapper CIL dla libipoddevice.
 
+%package devel
+Summary:	Development files for ipod-sharp library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki ipod-sharp
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Development files for ipod-sharp library.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne biblioteki ipod-sharp.
+
 %prep
 %setup -q -n ipod-sharp-%{version}
 %patch0 -p1
@@ -58,19 +70,31 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# replace duplicates by symlinks
+cd $RPM_BUILD_ROOT%{_prefix}/lib/ipod-sharp
+for f in *.dll* ; do
+	%{__rm} $f
+	ln -sf ../mono/gac/ipod-sharp*/*/$f $f
+done
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
-%{_prefix}/lib/ipod-sharp
-#%files devel
-%{_pkgconfigdir}/ipod-sharp.pc
-%{_pkgconfigdir}/ipod-sharp-ui.pc
+%dir %{_prefix}/lib/ipod-sharp
+%{_prefix}/lib/ipod-sharp/ipod-sharp-firmware.dll*
 %{_prefix}/lib/mono/gac/ipod-sharp
 %{_prefix}/lib/mono/gac/ipod-sharp-ui
-#%{_libdir}/monodoc/sources/ipod-sharp-docs.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_prefix}/lib/ipod-sharp/ipod-sharp.dll*
+%{_prefix}/lib/ipod-sharp/ipod-sharp-ui.dll*
+%{_pkgconfigdir}/ipod-sharp.pc
+%{_pkgconfigdir}/ipod-sharp-ui.pc
+%{_libdir}/monodoc/sources/ipod-sharp-docs.*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -78,6 +102,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2008/08/26 18:44:52  qboosh
+- use symlinks instead of duplicating files
+- separated -devel
+
 Revision 1.12  2008/08/26 13:43:44  patrys
 - add gac patch
 - rel 2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dotnet-ipod-sharp.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list