This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version number and update spec file to match Fedora version.
- Loading branch information
1 parent
69363f4
commit ba285b3
Showing
3 changed files
with
87 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters