]> git.pld-linux.org Git - packages/libclastfm.git/commitdiff
- updated to 0.5 release master auto/th/libclastfm-0.5-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 May 2017 16:41:41 +0000 (18:41 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 May 2017 16:41:41 +0000 (18:41 +0200)
libclastfm.spec

index 498c99d54d3542974913a9303cf7965ad11e3188..d66d8b8cca1215b5664910df7658a23e9db397b9 100644 (file)
@@ -1,38 +1,29 @@
-
-%define        git_snapshot 1
-
-%if 0%{?git_snapshot}
-%define        git_rev 968af0ab84e6f8b7658371c778fc8ad2714db68e
-%define        git_date 20120314
-%define        git_short %(echo %{git_rev} | cut -c-8)
-%define        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
+#
+# Conditional build:
+%bcond_without static_libs     # static library
 
 Summary:       Unofficial C-API for the Last.fm web service
+Summary(pl.UTF-8):     Nieoficjalne API C usługi WWW Last.fm
 Name:          libclastfm
 Version:       0.5
-Release:       0.1%{?git_version:.%{?git_version}}
+Release:       1
 License:       GPL v3+
 Group:         Libraries
+Source0:       http://downloads.sourceforge.net/liblastfm/%{name}-%{version}.tar.gz
+# Source0-md5: 0a71c485726a7e8970b970f520508a9b
 URL:           http://liblastfm.sourceforge.net/
-Source0:       %{name}-%{git_version}.tar.bz2
-# Source0-md5: 2e17a7981e2f16b9533994e543ed318a
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.64
 BuildRequires: automake
 BuildRequires: curl-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2
+BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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 GTK+ based distros.
+Last.fm library requires Qt, which is usually not desired when using
+GTK+ based distros.
 
 This library supports much more than basic scrobble submission. You
 can send shouts, fetch Album covers and much more.
@@ -40,26 +31,58 @@ 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".
 
+%description -l pl.UTF-8
+libclastfm to nieoficjalne API języka C do usługi WWW Last.fm,
+napisane z użyciem biblioteki libcurl. Powstało, ponieważ oficjalna
+biblioteka CBS Interactive Last.fm wymaga biblioteki Qt, która jest
+zwykle niepożądana w przypadku korzystania z dystrybucji opartych na
+GTK+.
+
+Biblioteka ta obsługuje dużo więcej, niż proste wysyłanie swoich
+preferencji (scrobble); można wysyłać okrzyki, pobierać okładki
+albumów itp.
+
+Ze względu na konflikt nazw z oficjalną biblioteką last.fm, ta jest
+instalowana pod nazwą "libclastfm".
+
 %package devel
-Summary:       Development files for %{name}
+Summary:       Development files for libclastfm
+Summary(pl.UTF-8):     Pliki programistyczne biblioteki libcflastfm
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+Requires:      curl-devel
 
 %description devel
-This package contains libraries and header files for developing
-applications that use %{name}.
+This package contains files for developing applications that use
+libclastfm.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki do tworzenia aplikacji wykorzystujących
+bibliotekę libclastfm.
+
+%package static
+Summary:       Static libclastfm library
+Summary(pl.UTF-8):     Statyczna biblioteka libclastfm
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libclastfm library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libclastfm.
 
 %prep
-%setup -qn %{name}
+%setup -q
 
 %build
-%{__aclocal}
 %{__libtoolize}
+%{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
-       --disable-static \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -68,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-find $RPM_BUILD_ROOT -name '*.la' | xargs rm -v
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libclastfm.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -78,12 +101,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog COPYING NEWS README
+%doc AUTHORS README
 %attr(755,root,root) %{_libdir}/libclastfm.so.*.*.*
-%ghost %{_libdir}/libclastfm.so.0
+%attr(755,root,root) %ghost %{_libdir}/libclastfm.so.0
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libclastfm.so
 %{_includedir}/clastfm.h
-%{_libdir}/%{name}.so
-%{_pkgconfigdir}/%{name}.pc
+%{_pkgconfigdir}/libclastfm.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libclastfm.a
+%endif
This page took 0.100408 seconds and 4 git commands to generate.