From ba285b31471d5b57b91deef20c01a814258bc6db Mon Sep 17 00:00:00 2001 From: Nathan Dyer Date: Mon, 5 Jun 2017 17:20:39 -0400 Subject: [PATCH] Bump version number and update spec file to match Fedora version. --- CMakeLists.txt | 2 +- RPM/vocal.spec | 124 ++++++++++++++++++++++++++++++++---------------- src/config.vala | 4 +- 3 files changed, 87 insertions(+), 43 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8a03ac..171c833 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ set (DATADIR "${CMAKE_INSTALL_PREFIX}/share") set (PKGDATADIR "${DATADIR}/vocal") set (GETTEXT_PACKAGE "vocal") set (RELEASE_NAME "Landingham") -set (VERSION "2.0") +set (VERSION "2.0.1") set (VERSION_INFO "Release") set (EXEC_NAME "vocal") set (PREFIX ${CMAKE_INSTALL_PREFIX}) diff --git a/RPM/vocal.spec b/RPM/vocal.spec index a6abfb2..b5a9477 100755 --- a/RPM/vocal.spec +++ b/RPM/vocal.spec @@ -1,66 +1,110 @@ -Name: com.github.needle-and-thread.vocal -Version: 1.0 +%global appname com.github.needle-and-thread.vocal + +Name: vocal +Summary: Powerful, beautiful, and simple podcast client +Version: 2.0.19 Release: 1%{?dist} -Summary: A beautiful podcast client for the modern free desktop License: GPLv3 -URL: http://vocalproject.net -Source0: ~/nathan/vocal.tar.gz - -BuildRequires: cmake -BuildRequires: gtk3-devel >= 3.14 -BuildRequires: vala-devel -BuildRequires: intltool -BuildRequires: glib2-devel -BuildRequires: sqlite-devel -BuildRequires: libgee06-devel -BuildRequires: libnotify-devel -BuildRequires: clutter-gtk-devel -BuildRequires: clutter-devel -BuildRequires: gstreamer1-devel -BuildRequires: gstreamer1-plugins-base-devel -BuildRequires: desktop-file-utils + +URL: https://github.com/needle-and-thread/%{name} +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: intltool +BuildRequires: libappstream-glib +BuildRequires: vala >= 0.26.2 + +BuildRequires: pkgconfig(clutter-gst-3.0) +BuildRequires: pkgconfig(clutter-gtk-1.0) +BuildRequires: pkgconfig(glib-2.0) >= 2.32 +BuildRequires: pkgconfig(gdk-x11-3.0) +BuildRequires: pkgconfig(gee-0.8) +BuildRequires: pkgconfig(granite) +BuildRequires: pkgconfig(gstreamer-1.0) +BuildRequires: pkgconfig(gstreamer-pbutils-1.0) +BuildRequires: pkgconfig(gthread-2.0) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(json-glib-1.0) +BuildRequires: pkgconfig(libnotify) +BuildRequires: pkgconfig(libsoup-2.4) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(unity) +BuildRequires: pkgconfig(webkit2gtk-4.0) + %description -A beautiful podcast client for GNU/Linux that features -audio and video playback, smart library management, -automatic feed checking and downloads, and much more. +Vocal is a powerful, fast, and intuitive application that helps users +find new podcasts, manage their libraries, and enjoy the best that +independent audio and video publishing has to offer. Vocal features full +support for both episode downloading and streaming, native system +integration, iTunes store search and top 100 charts (with international +results support), iTunes link parsing, OPML importing and exporting, and +so much more. Plus, it has great smart features like automatically +keeping your library clean from old files, and the ability to set custom +skip intervals. + %prep -%setup -q +%autosetup + %build -cmake -DCMAKE_INSTALL_PREFIX=/usr -make %{?_smp_mflags} +# mark sources files and docs as NOT executable +for i in $(find -name "*.vala"); do chmod a-x $i; done +chmod a-x AUTHORS README.md COPYING + +mkdir build && pushd build +%cmake .. +%make_build +popd + %install +pushd build %make_install +popd + +%find_lang vocal + + +%check +desktop-file-validate \ + %{buildroot}/%{_datadir}/applications/%{appname}.desktop + +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/appdata/%{appname}.appdata.xml + %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : -/usr/bin/update-desktop-database &> /dev/null || : %postun if [ $1 -eq 0 ] ; then - /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - /usr/bin/update-desktop-database &> /dev/null || : fi %posttrans -/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -%files -%doc AUTHORS COPYING README.md -%{_bindir}/%{name} -%{_datadir}/%{name}/ -%{_datadir}/glib-2.0/schemas/net.launchpad.vocal.gschema.xml -%{_datadir}/appdata/%{name}.desktop.appdata.xml -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/*/* -%{_datadir}/locale-langpack/*/* + +%files -f vocal.lang +%doc AUTHORS README.md +%license COPYING + +%{_bindir}/vocal + +%{_datadir}/appdata/%{appname}.appdata.xml +%{_datadir}/applications/%{appname}.desktop +%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml +%{_datadir}/icons/hicolor/*/apps/%{appname}*.svg +%{_datadir}/vocal/ + %changelog -* Sun Apr 12 2015 Nathan Dyer 1.0-1 -- Initial Release +* Sun May 28 2017 Fabio Valentini - 2.0.19-1 +- Initial package. + diff --git a/src/config.vala b/src/config.vala index bd067e0..51c890e 100755 --- a/src/config.vala +++ b/src/config.vala @@ -3,8 +3,8 @@ namespace Constants { public const string PKGDATADIR = "/usr/share/vocal"; public const string GETTEXT_PACKAGE = "vocal"; public const string RELEASE_NAME = "Landingham"; - public const string VERSION = "2.0"; + public const string VERSION = "2.0.1"; public const string VERSION_INFO = "Release"; public const string CACHE_DIR = "~/.cache/vocal"; - public const string USER_AGENT = "vocal 2.0"; + public const string USER_AGENT = "vocal 2.0.1"; }