[libclastfm] Final fixes from the review

Christoph Wickert cwickert at fedoraproject.org
Sun Dec 18 22:34:49 UTC 2011


commit 0feb21276d036260e3a3e8302cd8ce098124a86f
Author: Christoph Wickert <cwickert at fedoraproject.org>
Date:   Sun Dec 18 23:34:38 2011 +0100

    Final fixes from the review

 .gitignore      |    1 +
 libclastfm.spec |   95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..81aa68c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libclastfm-20111214gitcc78dde5.tar.bz2
diff --git a/libclastfm.spec b/libclastfm.spec
new file mode 100644
index 0000000..fc11e68
--- /dev/null
+++ b/libclastfm.spec
@@ -0,0 +1,95 @@
+# Review at https://bugzilla.redhat.com/show_bug.cgi?id=767838
+
+%global git_snapshot 1
+
+%if 0%{?git_snapshot}
+%global git_rev cc78dde57fe2fefcdb986f275c7adc01d0fc5eee
+%global git_date 20111214
+%global git_short %(echo %{git_rev} | cut -c-8)
+%global git_version %{git_date}git%{git_short}
+%endif
+
+# Source0 was generated as follows: 
+# git clone git://liblastfm.git.sourceforge.net/gitroot/liblastfm/liblastfm
+# cd %%{name}
+# git archive --format=tar --prefix=%{name}/ %%{git_short} | bzip2 > %%{name}-%%{?git_version}.tar.bz2
+
+Name:           libclastfm
+Version:        0.4
+Release:        0.1%{?git_version:.%{?git_version}}%{?dist}
+Summary:        Unofficial C-API for the Last.fm web service
+
+Group:          System Environment/Libraries
+License:        GPLv3+
+URL:            http://liblastfm.sourceforge.net/
+Source0:        %{name}-%{?git_version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  libtool
+BuildRequires:  libcurl-devel
+
+%description
+libclastfm is an unofficial C-API for the Last.fm web service written with
+libcurl. It was written because the official CBS Interactive Last.fm library
+requires Nokia QT, which is usually not desired when using Gnome based distros.
+
+This library supports much more than basic scrobble submission. You can send
+shouts, fetch Album covers and much more.
+
+Due to the naming conflict with the official last.fm library, this library will
+install as "libclastfm".
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -qn %{name}
+
+
+%build
+NOCONFIGURE=1 sh autogen.sh
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README
+%{_libdir}/%{name}.so.*
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+
+%changelog
+* Wed Dec 14 2011 Christoph Wickert <cwickert at fedoraproject.org> - 0.4-0.1.20111214gitcc78dde5
+- Update to latest git to fix curl issue on rawhide
+
+* Wed Jul 13 2011 Christoph Wickert <cwickert at fedoraproject.org> - 0.4-0.1.20110712gita4aaf771
+- Inital package
diff --git a/sources b/sources
index e69de29..6191f03 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9d6ba4b9f5209b42ab2170d37928a830  libclastfm-20111214gitcc78dde5.tar.bz2


More information about the scm-commits mailing list