Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Bump version number and update spec file to match Fedora version.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandyer committed Jun 5, 2017
1 parent 69363f4 commit ba285b3
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 43 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
124 changes: 84 additions & 40 deletions RPM/vocal.spec
Original file line number Diff line number Diff line change
@@ -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 <mail@nathandyer.me> 1.0-1
- Initial Release
* Sun May 28 2017 Fabio Valentini <decathorpe@gmail.com> - 2.0.19-1
- Initial package.

4 changes: 2 additions & 2 deletions src/config.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit ba285b3

Please sign in to comment.