Author: arvenil Date: Sun Sep 20 14:54:33 2009 GMT Module: packages Tag: HEAD ---- Log message: - init
---- Files affected: packages/liblastfm: liblastfm.spec (NONE -> 1.1) (NEW), liblastfm-path.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/liblastfm/liblastfm.spec diff -u /dev/null packages/liblastfm/liblastfm.spec:1.1 --- /dev/null Sun Sep 20 16:54:33 2009 +++ packages/liblastfm/liblastfm.spec Sun Sep 20 16:54:27 2009 @@ -0,0 +1,83 @@ +# $Revision$, $Date$ +Summary: Library to access Last.fm features +Name: liblastfm +Version: 0.3.0 +Release: 0.1 +License: GPL v3 +Group: Libraries +Source0: http://cdn.last.fm/src/%{name}-%{version}.tar.bz2 +# Source0-md5: 3f73222ebc31635941832b01e7a494b6 +Patch0: %{name}-path.patch +URL: http://last.fm +BuildRequires: QtGui-devel +BuildRequires: QtNetwork-devel +BuildRequires: QtSql-devel +BuildRequires: QtTest-devel +BuildRequires: QtXml-devel +BuildRequires: qt4-qmake +BuildRequires: ruby +BuildRequires: ruby-modules +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +liblastfm is a collection of libraries to help you integrate Last.fm +services into your rich desktop software. It is officially supported +software developed by Last.fm staff. + +%package devel +Summary: Header files for %{name} +Summary(pl.UTF-8): Pliki nagłówkowe %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for %{name}. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe %{name}. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure \ + --prefix %{_prefix} \ + --libdir %{_libdir} +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc README +%attr(755,root,root) %{_libdir}/%{name}.so.*.*.* +%ghost %attr(755,root,root) %{_libdir}/%{name}.so.? +%attr(755,root,root) %{_libdir}/%{name}_fingerprint.so.*.*.* +%ghost %attr(755,root,root) %{_libdir}/%{name}_fingerprint.so.? + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/%{name}.so +%attr(755,root,root) %{_libdir}/%{name}_fingerprint.so +%{_includedir}/lastfm +%{_includedir}/lastfm.h + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2009/09/20 14:54:27 arvenil +- init ================================================================ Index: packages/liblastfm/liblastfm-path.patch diff -u /dev/null packages/liblastfm/liblastfm-path.patch:1.1 --- /dev/null Sun Sep 20 16:54:33 2009 +++ packages/liblastfm/liblastfm-path.patch Sun Sep 20 16:54:27 2009 @@ -0,0 +1,61 @@ +--- liblastfm-0.3.0/configure 2009-06-04 16:41:27.000000000 +0000 ++++ liblastfm-0.3.0/configure 2009-09-20 09:52:38.000000000 +0000 +@@ -26,6 +26,18 @@ + puts "Will install to: "+ENV['LFM_PREFIX'] + end + ++ h2 'Determining libdir' do ++ if ARGV.include? '--libdir' ++ n=ARGV.index '--libdir' ++ ENV['LFM_LIBDIR'] = ARGV[n+1] ++ end ++ ENV['LFM_LIBDIR'] = ENV['LFM_PREFIX']+'/lib' if ENV['LFM_LIBDIR'].nil? ++ if File.exists? ENV['LFM_LIBDIR'] and !File.directory? ENV['LFM_LIBDIR'] ++ abort "Library directory exists but isn't a directory: "+ENV['LFM_LIBDIR'] ++ end ++ puts "Library directory: "+ENV['LFM_LIBDIR'] ++ end ++ + h1 'Generating Build System' + + h2 'Generating .qmake.env' do +--- liblastfm-0.3.0/admin/Makefile.rb 2009-06-04 16:41:27.000000000 +0000 ++++ liblastfm-0.3.0/admin/Makefile.rb 2009-09-20 09:56:24.000000000 +0000 +@@ -43,6 +43,8 @@ + $headers='' + $install_prefix = ENV['LFM_PREFIX'] + abort("Environment variable LFM_PREFIX not defined") if $install_prefix.nil? ++$install_libdir = ENV['LFM_LIBDIR'] ++abort("Environment variable LFM_LIBDIR not defined") if $install_libdir.nil? + + puts <<-EOS + .PHONY: all +@@ -126,7 +128,7 @@ + + .PHONY: install + install: #{$install_headers} $(DESTDIR)#{$install_prefix}/include/lastfm.h +- cd src && make install "INSTALL_ROOT=$(DESTDIR)#{$install_prefix}" +- cd src/fingerprint && make install "INSTALL_ROOT=$(DESTDIR)#{$install_prefix}" ++ cd src && make install "INSTALL_ROOT=$(DESTDIR)#{$install_libdir}" ++ cd src/fingerprint && make install "INSTALL_ROOT=$(DESTDIR)#{$install_libdir}" + + EOS +\ Brak znaku nowej linii na końcu pliku +--- liblastfm-0.3.0/src/lastfm.pro 2009-06-04 16:41:27.000000000 +0000 ++++ liblastfm-0.3.0/src/lastfm.pro 2009-09-20 10:15:31.000000000 +0000 +@@ -18,4 +18,4 @@ + } + } + +-target.path = /lib +\ Brak znaku nowej linii na końcu pliku ++target.path = / +\ Brak znaku nowej linii na końcu pliku +--- liblastfm-0.3.0/src/fingerprint/fingerprint.pro 2009-06-04 16:41:27.000000000 +0000 ++++ liblastfm-0.3.0/src/fingerprint/fingerprint.pro 2009-09-20 10:18:18.000000000 +0000 +@@ -26,4 +26,4 @@ + } + + INSTALLS = target +-target.path = /lib ++target.path = / ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
